DeviceProviderFactory#
Added in version 1.4.
Superclasses: PluginFeature, Object, InitiallyUnowned, Object
DeviceProviderFactory is used to create instances of device providers. A
GstDeviceProviderfactory can be added to a Plugin as it is also a
PluginFeature.
Use the find() and
get() functions to create device
provider instances or use get_by_name() as a
convenient shortcut.
Methods#
- class DeviceProviderFactory
- classmethod find() DeviceProviderFactory | None#
Search for an device provider factory of the given name. Refs the returned device provider factory; caller is responsible for unreffing.
Added in version 1.4.
- get() DeviceProvider | None#
Returns the device provider of the type defined by the given device providerfactory.
Added in version 1.4.
- classmethod get_by_name() DeviceProvider | None#
Returns the device provider of the type defined by the given device provider factory.
Added in version 1.4.
- get_device_provider_type() GType#
Get the
Typefor device providers managed by this factory. The type can only be retrieved if the device provider factory is loaded, which can be assured withload().Added in version 1.4.
- get_metadata(key: str) str | None#
Get the metadata on
factorywithkey.Added in version 1.4.
- Parameters:
key – a key
- get_metadata_keys() list[str] | None#
Get the available keys for the metadata on
factory.Added in version 1.4.
- has_classes(classes: str | None = None) bool#
Check if
factorymatches all of the givenclassesAdded in version 1.4.
- Parameters:
classes – a “/” separate list of classes to match, only match if all classes are matched
- has_classesv(classes: list[str] | None = None) bool#
Check if
factorymatches all of the given classesAdded in version 1.4.
- Parameters:
classes – a
Noneterminated array of classes to match, only match if all classes are matched
- classmethod list_get_device_providers() list[DeviceProviderFactory]#
Get a list of factories with a rank greater or equal to
minrank. The list of factories is returned by decreasing rank.Added in version 1.4.