DeviceMonitor.addFilter

Adds a filter for which gstreamer.Device will be monitored, any device that matches all these classes and the gstreamer.Caps will be returned.

If this function is called multiple times to add more filters, each will be matched independently. That is, adding more filters will not further restrict what devices are matched.

The gstreamer.Caps supported by the device as returned by Device.getCaps are not intersected with caps filters added using this function.

Filters must be added before the gstreamer.DeviceMonitor is started.

class DeviceMonitor
uint
addFilter
(
string classes
,)

Parameters

classes string

device classes to use as filter or NULL for any class

caps Caps

the gstreamer.Caps to filter or NULL for ANY

Return Value

Type: uint

The id of the new filter or 0 if no provider matched the filter's classes.

Meta