Top | ![]() |
![]() |
![]() |
![]() |
Applications should create a GstGlobalDeviceMonitor when they want to probe, list and monitor devices of a specific type. The GstGlobalDeviceMonitor will create the appropriate GstDeviceMonitor objects and manage them. It will then post messages on its GstBus for devices that have been added and removed.
GstBus *
gst_global_device_monitor_get_bus (GstGlobalDeviceMonitor *monitor
);
Gets the GstBus of this GstGlobalDeviceMonitor
Since 1.4
GstCaps *
gst_global_device_monitor_get_caps_filter
(GstGlobalDeviceMonitor *monitor
);
Get the GstCaps filter set by gst_global_device_monitor_set_caps_filter()
.
Since 1.4
gchar *
gst_global_device_monitor_get_classes_filter
(GstGlobalDeviceMonitor *monitor
);
Return the type (device classes) filter active for device filtering.
Since 1.4
GList *
gst_global_device_monitor_get_devices (GstGlobalDeviceMonitor *monitor
);
Gets a list of devices from all of the relevant monitors. This may actually probe the hardware if the global monitor is not currently started.
Since 1.4
GstGlobalDeviceMonitor *
gst_global_device_monitor_new (void
);
Create a new GstGlobalDeviceMonitor
Since 1.4
void gst_global_device_monitor_set_caps_filter (GstGlobalDeviceMonitor *monitor
,GstCaps *caps
);
Set caps to use as filter for devices. By default ANY caps are used, meaning no caps filter is active.
Since 1.4
void gst_global_device_monitor_set_classes_filter (GstGlobalDeviceMonitor *monitor
,const gchar *classes
);
Filter devices monitored by device class, e.g. in case you are only interested in a certain type of device like audio devices or video sources.
Since 1.4
gboolean
gst_global_device_monitor_start (GstGlobalDeviceMonitor *monitor
);
Starts monitoring the devices, one this has succeeded, the
GST_MESSAGE_DEVICE_ADDED
and GST_MESSAGE_DEVICE_REMOVED
messages
will be emitted on the bus when the list of devices changes.
Since 1.4
void
gst_global_device_monitor_stop (GstGlobalDeviceMonitor *monitor
);
Stops monitoring the devices.
Since 1.4
struct GstGlobalDeviceMonitor { GstObject parent; };
Opaque global device monitor object structure.
Since 1.4