Class: Gst::Device

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Overview

The class structure for a Gst::Device object.

Instance Method Summary collapse

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

Instance Method Details

#capsGst::Caps

Returns caps.

Returns:

#caps=(caps) ⇒ Gst::Caps

Parameters:

Returns:

#create_element(name) ⇒ Gst::Element

Creates the element with all of the required parameters set to use this device. create a unique name. this device

Parameters:

  • name (String)

    name of new element, or nil to automatically

Returns:

#device_classString

Returns device-class.

Returns:

  • (String)

    device-class

#device_class=(device_class) ⇒ String

Parameters:

  • device_class (String)

Returns:

  • (String)

    device-class

  • (String)

    device-class

#display_nameString

Returns display-name.

Returns:

  • (String)

    display-name

#display_name=(display_name) ⇒ String

Parameters:

  • display_name (String)

Returns:

  • (String)

    display-name

  • (String)

    display-name

#has_classes(classes) ⇒ Boolean

Check if device matches all of the given classes

Parameters:

  • classes (String)

    a "/"-separated list of device classes to match, only match if all classes are matched

Returns:

  • (Boolean)

    true if device matches.

#has_classesv(classes) ⇒ Boolean

Check if factory matches all of the given classes

Parameters:

  • classes (Array<String>)

    a nil terminated array of classes to match, only match if all classes are matched

Returns:

  • (Boolean)

    true if device matches.

#propertiesGst::Structure

Returns properties.

Returns:

#properties=(properties) ⇒ Gst::Structure

Parameters:

Returns:

#reconfigure_element(element) ⇒ Boolean

Tries to reconfigure an existing element to use the device. If this function fails, then one must destroy the element and create a new one using gst_device_create_element().

Note: This should only be implemented for elements can change their device in the PLAYING state. false otherwise.

Parameters:

Returns:

  • (Boolean)

    true if the element could be reconfigured to use this device,