LSLStreamResolverByProp extension
A filtered stream resolver that resolves streams by properties. It is a subclass of LSLStreamResolver and allows you to filter streams by properties such as stream name, type, etc.
Methods
-
resolveByProperty(
{required LSLStreamProperty property, required String value, double waitTime = 5.0, int minStreamCount = 0}) → Future< List< LSLStreamInfo> > -
Available on LSLStreamResolver, provided by the LSLStreamResolverByProp extension
Resolves streams by a specific property. Theproperty
parameter is the property to filter by, such as name, type, channel count, etc. Thevalue
parameter is the value to filter by. ThewaitTime
parameter determines how long to wait for streams to resolve, if the value is 0, the default of forever will be used, and will only return when theminStreamCount
is met. TheminStreamCount
parameter is the minimum number of streams to resolve, it must be greater than 0. Returns a list of LSLStreamInfo objects that match the filter. Throws an LSLException if the resolver is not created or if there is an error resolving streams. You may get less streams than theminStreamCount
if there are not enough streams available AND you have set awaitTime
> 0.