Gst.DeviceProviderFactory¶
- Subclasses:
None
Methods¶
- Inherited:
Gst.PluginFeature (10), Gst.Object (27), GObject.Object (37)
- Structs:
class |
|
class |
|
class |
|
|
|
|
|
|
|
|
Virtual Methods¶
- Inherited:
Properties¶
- Inherited:
Signals¶
- Inherited:
Fields¶
- Inherited:
Class Details¶
- class Gst.DeviceProviderFactory(**kwargs)¶
- Bases:
- Abstract:
No
- Structure:
Gst.DeviceProviderFactory
is used to create instances of device providers. A GstDeviceProviderfactory can be added to aGst.Plugin
as it is also aGst.PluginFeature
.Use the
Gst.DeviceProviderFactory.find
() andGst.DeviceProviderFactory.get
() functions to create device provider instances or useGst.DeviceProviderFactory.get_by_name
() as a convenient shortcut.New in version 1.4.
- classmethod find(name)[source]¶
- Parameters:
name (
str
) – name of factory to find- Returns:
Gst.DeviceProviderFactory
if found,None
otherwise- Return type:
Search for an device provider factory of the given name. Refs the returned device provider factory; caller is responsible for unreffing.
New in version 1.4.
- classmethod get_by_name(factoryname)[source]¶
- Parameters:
factoryname (
str
) – a named factory to instantiate- Returns:
a
Gst.DeviceProvider
orNone
if unable to create device provider- Return type:
Returns the device provider of the type defined by the given device provider factory.
New in version 1.4.
- classmethod list_get_device_providers(minrank)[source]¶
- Parameters:
minrank (
Gst.Rank
) – Minimum rank- Returns:
a
GLib.List
ofGst.DeviceProviderFactory
device providers. UseGst.PluginFeature.list_free
() after usage.- Return type:
Get a list of factories with a rank greater or equal to minrank. The list of factories is returned by decreasing rank.
New in version 1.4.
- get()[source]¶
- Returns:
the
Gst.DeviceProvider
orNone
if the device provider couldn’t be created- Return type:
Returns the device provider of the type defined by the given device providerfactory.
New in version 1.4.
- get_device_provider_type()[source]¶
- Returns:
the
GObject.GType
for device providers managed by this factory.- Return type:
Get the
GObject.GType
for device providers managed by this factory. The type can only be retrieved if the device provider factory is loaded, which can be assured withGst.PluginFeature.load
().New in version 1.4.
- get_metadata(key)[source]¶
- Parameters:
key (
str
) – a key- Returns:
the metadata with key on self or
None
when there was no metadata with the given key.- Return type:
Get the metadata on self with key.
New in version 1.4.
- get_metadata_keys()[source]¶
- Returns:
a
None
-terminated array of key strings, orNone
when there is no metadata. Free withGLib.strfreev
() when no longer needed.- Return type:
Get the available keys for the metadata on self.
New in version 1.4.