Top | ![]() |
![]() |
![]() |
![]() |
GObject ╰── GInitiallyUnowned ╰── GstObject ╰── GstPluginFeature ╰── GstDeviceMonitorFactory
GstDeviceMonitorFactory is used to create instances of device monitors. A GstDeviceMonitorfactory can be added to a GstPlugin as it is also a GstPluginFeature.
Use the gst_device_monitor_factory_find()
and gst_device_monitor_factory_create()
functions to create device monitor instances or use gst_device_monitor_factory_make()
as a
convenient shortcut.
#define GST_DEVICE_MONITOR_FACTORY_CAST(obj) ((GstDeviceMonitorFactory *)(obj))
#define GST_TYPE_DEVICE_MONITOR_FACTORY (gst_device_monitor_factory_get_type())
GstDeviceMonitorFactory *
gst_device_monitor_factory_find (const gchar *name
);
Search for an device monitor factory of the given name. Refs the returned device monitor factory; caller is responsible for unreffing.
Since 1.4
GstDeviceMonitor *
gst_device_monitor_factory_get (GstDeviceMonitorFactory *factory
);
Returns the device monitor of the type defined by the given device monitorfactory.
Since 1.4
GstDeviceMonitor *
gst_device_monitor_factory_get_by_name
(const gchar *factoryname
);
Returns the device monitor of the type defined by the given device monitor factory.
Since 1.4
GType
gst_device_monitor_factory_get_device_monitor_type
(GstDeviceMonitorFactory *factory
);
Get the GType for device monitors managed by this factory. The type can
only be retrieved if the device monitor factory is loaded, which can be
assured with gst_plugin_feature_load()
.
Since 1.4
const gchar * gst_device_monitor_factory_get_metadata (GstDeviceMonitorFactory *factory
,const gchar *key
);
Get the metadata on factory
with key
.
Since 1.4
gchar **
gst_device_monitor_factory_get_metadata_keys
(GstDeviceMonitorFactory *factory
);
Get the available keys for the metadata on factory
.
a NULL
-terminated array of key strings, or NULL
when there is no
metadata. Free with g_strfreev()
when no longer needed.
[transfer full][element-type utf8][array zero-terminated=1]
Since 1.4
gboolean gst_device_monitor_factory_has_classes (GstDeviceMonitorFactory *factory
,const gchar *classes
);
Check if factory
matches all of the given classes
factory |
||
classes |
a "/" separate list of klasses to match, only match if all classes are matched |
Since 1.4
gboolean gst_device_monitor_factory_has_classesv (GstDeviceMonitorFactory *factory
,gchar **classes
);
Check if factory
matches all of the given classes
factory |
||
classes |
a |
Since 1.4
GList * gst_device_monitor_factory_list_get_device_monitors (const gchar *types
,GstRank minrank
);
Get a list of factories that match all of the given classes
. Only
device monitors with a rank greater or equal to minrank
will be
returned. The list of factories is returned by decreasing rank.
classes |
a "/" separate list of klasses to match, only match if all classes are matched |
|
minrank |
Minimum rank |
a GList of
GstDeviceMonitorFactory device monitors. Use gst_plugin_feature_list_free()
after
usage.
[transfer full][element-type Gst.DeviceMonitorFactory]
Since 1.4
typedef struct _GstDeviceMonitorFactory GstDeviceMonitorFactory;
The opaque GstDeviceMonitorFactory data structure.
Since 1.4