Class: Gst::DeviceMonitor
- Defined in:
- (unknown)
Overview
Opaque device monitor class structure.
Instance Method Summary collapse
-
#add_filter(classes, caps) ⇒ Integer
Adds a filter for which Gst::Device will be monitored, any device that matches all these classes and the Gst::Caps will be returned.
-
#bus ⇒ Gst::Bus
Gets the Gst::Bus of this #GstDeviceMonitor.
-
#devices ⇒ GLib::List<Gst::Device>
Gets a list of devices from all of the relevant monitors.
-
#initialize ⇒ Gst::DeviceMonitor
constructor
Create a new Gst::DeviceMonitor.
-
#providers ⇒ Array<String>
Get a list of the currently selected device provider factories.
-
#remove_filter(filter_id) ⇒ Boolean
Removes a filter from the Gst::DeviceMonitor using the id that was returned by gst_device_monitor_add_filter().
- #show_all=(show_all) ⇒ Boolean
-
#show_all? ⇒ Boolean
Show-all.
-
#show_all_devices ⇒ Boolean
Get if monitor is currently showing all devices, even those from hidden providers.
-
#show_all_devices=(show_all) ⇒ nil
Set if all devices should be visible, even those devices from hidden providers.
-
#start ⇒ Boolean
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.
-
#stop ⇒ nil
Stops monitoring the devices.
Methods inherited from Object
#add_control_binding, check_uniqueness, #control_bindings_disabled=, #control_rate, #control_rate=, default_deep_notify, #default_error, #get_control_binding, #get_g_value_array, #get_value, #get_value_array, #has_active_control_bindings, #has_ancestor, #has_as_ancestor, #has_as_parent, #name, #name=, #parent, #parent=, #path_string, #ref, ref_sink, #remove_control_binding, replace, #set_control_binding_disabled, #suggest_next_sync, #sync_values, #unparent, #unref
Constructor Details
#initialize ⇒ Gst::DeviceMonitor
Create a new Gst::DeviceMonitor
Instance Method Details
#add_filter(classes, caps) ⇒ Integer
Adds a filter for which Gst::Device will be monitored, any device that matches all these classes and the Gst::Caps will be returned.
If this function is called multiple times to add more filters, each will be matched independently. That is, adding more filters will not further restrict what devices are matched.
The Gst::Caps supported by the device as returned by gst_device_get_caps() are not intersected with caps filters added using this function.
Filters must be added before the Gst::DeviceMonitor is started.
#bus ⇒ Gst::Bus
Gets the Gst::Bus of this #GstDeviceMonitor
#devices ⇒ GLib::List<Gst::Device>
Gets a list of devices from all of the relevant monitors. This may actually probe the hardware if the monitor is not currently started.
#providers ⇒ Array<String>
Get a list of the currently selected device provider factories.
This
#remove_filter(filter_id) ⇒ Boolean
Removes a filter from the Gst::DeviceMonitor using the id that was returned by gst_device_monitor_add_filter().
#show_all=(show_all) ⇒ Boolean
#show_all? ⇒ Boolean
Returns show-all.
#show_all_devices ⇒ Boolean
Get if monitor is currently showing all devices, even those from hidden providers.
#show_all_devices=(show_all) ⇒ nil
Set if all devices should be visible, even those devices from hidden providers. Setting show_all to true might show some devices multiple times.
#start ⇒ Boolean
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.
#stop ⇒ nil
Stops monitoring the devices.