Gst.DeviceProviderFactory

g GObject.InitiallyUnowned GObject.InitiallyUnowned Gst.Object Gst.Object GObject.InitiallyUnowned->Gst.Object GObject.Object GObject.Object GObject.Object->GObject.InitiallyUnowned Gst.DeviceProviderFactory Gst.DeviceProviderFactory Gst.PluginFeature Gst.PluginFeature Gst.Object->Gst.PluginFeature Gst.PluginFeature->Gst.DeviceProviderFactory

Subclasses:

None

Methods

Inherited:

Gst.PluginFeature (10), Gst.Object (27), GObject.Object (37)

Structs:

GObject.ObjectClass (5)

class

find (name)

class

get_by_name (factoryname)

class

list_get_device_providers (minrank)

get ()

get_device_provider_type ()

get_metadata (key)

get_metadata_keys ()

has_classes (classes)

has_classesv (classes)

Virtual Methods

Inherited:

Gst.Object (1), GObject.Object (7)

Properties

Inherited:

Gst.Object (2)

Signals

Inherited:

Gst.Object (1), GObject.Object (1)

Fields

Inherited:

Gst.Object (1), GObject.Object (1)

Class Details

class Gst.DeviceProviderFactory(**kwargs)
Bases:

Gst.PluginFeature

Abstract:

No

Structure:

Gst.DeviceProviderFactoryClass

Gst.DeviceProviderFactory is used to create instances of device providers. A GstDeviceProviderfactory can be added to a Gst.Plugin as it is also a Gst.PluginFeature.

Use the Gst.DeviceProviderFactory.find() and Gst.DeviceProviderFactory.get() functions to create device provider instances or use Gst.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:

Gst.DeviceProviderFactory or None

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 or None if unable to create device provider

Return type:

Gst.DeviceProvider or None

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 of Gst.DeviceProviderFactory device providers. Use Gst.PluginFeature.list_free() after usage.

Return type:

[Gst.DeviceProviderFactory]

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 or None if the device provider couldn’t be created

Return type:

Gst.DeviceProvider or None

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:

GObject.GType

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 with Gst.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:

str or None

Get the metadata on self with key.

New in version 1.4.

get_metadata_keys()[source]
Returns:

a None-terminated array of key strings, or None when there is no metadata. Free with GLib.strfreev() when no longer needed.

Return type:

[str] or None

Get the available keys for the metadata on self.

New in version 1.4.

has_classes(classes)[source]
Parameters:

classes (str or None) – a “/” separate list of classes to match, only match if all classes are matched

Returns:

True if self matches or if classes is None.

Return type:

bool

Check if self matches all of the given classes

New in version 1.4.

has_classesv(classes)[source]
Parameters:

classes ([str] or None) – a None terminated array of classes to match, only match if all classes are matched

Returns:

True if self matches.

Return type:

bool

Check if self matches all of the given classes

New in version 1.4.