Gst.Device¶
- Subclasses:
- None 
Methods¶
- Inherited:
- Structs:
| 
 | |
| 
 | |
| 
 | |
| 
 | |
| 
 | 
Virtual Methods¶
- Inherited:
| 
 | |
| 
 | 
Properties¶
- Inherited:
| Name | Type | Flags | Short Description | 
|---|---|---|---|
| r/w/co | The possible caps of a device | ||
| r/w/co | The Class of the device | ||
| r/w/co | The user-friendly name of the device | ||
| r/w/co | The extra properties of the device | 
Signals¶
- Inherited:
| Name | Short Description | 
|---|---|
Fields¶
- Inherited:
| Name | Type | Access | Description | 
|---|---|---|---|
| parent | r | The parent  | 
Class Details¶
- class Gst.Device(**kwargs)¶
- Bases:
- Abstract:
- Yes 
- Structure:
 - Gst.Deviceare objects representing a device, they contain relevant metadata about the device, such as its class and the- Gst.Capsrepresenting the media types it can produce or handle.- Gst.Deviceare created by- Gst.DeviceProviderobjects which can be aggregated by- Gst.DeviceMonitorobjects.- New in version 1.4. - create_element(name)[source]¶
- Parameters:
- name ( - stror- None) – name of new element, or- Noneto automatically create a unique name.
- Returns:
- a new - Gst.Elementconfigured to use this device
- Return type:
- Gst.Elementor- None
 - Creates the element with all of the required parameters set to use this device. - New in version 1.4. 
 - get_caps()[source]¶
- Returns:
- The - Gst.Capssupported by this device. Unref with gst_caps_unref() when done.
- Return type:
 - Getter for the - Gst.Capsthat this device supports.- New in version 1.4. 
 - get_device_class()[source]¶
- 
Gets the “class” of a device. This is a “/” separated list of classes that represent this device. They are a subset of the classes of the Gst.DeviceProviderthat produced this device.New in version 1.4. 
 - get_properties()[source]¶
- Returns:
- The extra properties or - Nonewhen there are none. Free with- Gst.Structure.free() after use.
- Return type:
 - Gets the extra properties of a device. - New in version 1.6. 
 - has_classes(classes)[source]¶
- Parameters:
- classes ( - str) – a “/”-separated list of device classes to match, only match if all classes are matched
- Returns:
- Trueif self matches.
- Return type:
 - Check if self matches all of the given classes - New in version 1.4. 
 - has_classesv(classes)[source]¶
- Parameters:
- classes ([ - str]) – a- Noneterminated array of classes to match, only match if all classes are matched
- Returns:
- Trueif self matches.
- Return type:
 - Check if factory matches all of the given classes - New in version 1.4. 
 - reconfigure_element(element)[source]¶
- Parameters:
- element ( - Gst.Element) – a- Gst.Element
- Returns:
- Trueif the element could be reconfigured to use this device,- Falseotherwise.
- Return type:
 - 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. - New in version 1.4. 
 - do_create_element(name) virtual¶
- Parameters:
- name ( - stror- None) – name of new element, or- Noneto automatically create a unique name.
- Returns:
- a new - Gst.Elementconfigured to use this device
- Return type:
- Gst.Elementor- None
 - Creates the element with all of the required parameters set to use this device. - New in version 1.4. 
 - do_reconfigure_element(element) virtual¶
- Parameters:
- element ( - Gst.Element) – a- Gst.Element
- Returns:
- Trueif the element could be reconfigured to use this device,- Falseotherwise.
- Return type:
 - 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. - New in version 1.4. 
 
Signal Details¶
- Gst.Device.signals.removed(device)¶
- Signal Name:
- removed
- Flags:
- Parameters:
- device ( - Gst.Device) – The object which received the signal
 
Property Details¶
- Gst.Device.props.caps¶
- Name:
- caps
- Type:
- Default Value:
- Flags:
 - The possible caps of a device 
- Gst.Device.props.device_class¶
- Name:
- device-class
- Type:
- Default Value:
- ''
- Flags:
 - The Class of the device 
- Gst.Device.props.display_name¶
- Name:
- display-name
- Type:
- Default Value:
- ''
- Flags:
 - The user-friendly name of the device 
- Gst.Device.props.properties¶
- Name:
- properties
- Type:
- Default Value:
- Flags:
 - The extra properties of the device