DeviceProviderFactory

#GstDeviceProviderFactory is used to create instances of device providers. A GstDeviceProviderfactory can be added to a #GstPlugin as it is also a #GstPluginFeature.

Use the gst.device_provider_factory.DeviceProviderFactory.find and gst.device_provider_factory.DeviceProviderFactory.get functions to create device provider instances or use gst.device_provider_factory.DeviceProviderFactory.getByName as a convenient shortcut.

Members

Functions

get
gst.device_provider.DeviceProvider get()

Returns the device provider of the type defined by the given device providerfactory.

getDeviceProviderType
gobject.types.GType getDeviceProviderType()

Get the #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.plugin_feature.PluginFeature.load.

getMetadata
string getMetadata(string key)

Get the metadata on factory with key.

getMetadataKeys
string[] getMetadataKeys()

Get the available keys for the metadata on factory.

hasClasses
bool hasClasses(string classes)

Check if factory matches all of the given classes

hasClassesv
bool hasClassesv(string[] classes)

Check if factory matches all of the given classes

Static functions

find
gst.device_provider_factory.DeviceProviderFactory find(string name)

Search for an device provider factory of the given name. Refs the returned device provider factory; caller is responsible for unreffing.

getByName
gst.device_provider.DeviceProvider getByName(string factoryname)

Returns the device provider of the type defined by the given device provider factory.

listGetDeviceProviders
gst.device_provider_factory.DeviceProviderFactory[] listGetDeviceProviders(gst.types.Rank minrank)

Get a list of factories with a rank greater or equal to minrank. The list of factories is returned by decreasing rank.

Inherited Members

From PluginFeature

listCopy
gst.plugin_feature.PluginFeature[] listCopy(gst.plugin_feature.PluginFeature[] list)

Copies the list of features. Caller should call gst_plugin_feature_list_free when done with the list.

listDebug
void listDebug(gst.plugin_feature.PluginFeature[] list)

Debug the plugin feature names in list.

rankCompareFunc
int rankCompareFunc(const(void)* p1, const(void)* p2)

Compares the two given #GstPluginFeature instances. This function can be used as a #GCompareFunc when sorting by rank and then by name.

checkVersion
bool checkVersion(uint minMajor, uint minMinor, uint minMicro)

Checks whether the given plugin feature is at least the required version.

getPlugin
gst.plugin.Plugin getPlugin()

Get the plugin that provides this feature.

getPluginName
string getPluginName()

Get the name of the plugin that provides this feature.

getRank
uint getRank()

Gets the rank of a plugin feature.

load
gst.plugin_feature.PluginFeature load()

Loads the plugin containing feature if it's not already loaded. feature is unaffected; use the return value instead.

setRank
void setRank(uint rank)

Specifies a rank for a plugin feature, so that autoplugging uses the most appropriate feature.