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.Device
are objects representing a device, they contain relevant metadata about the device, such as its class and theGst.Caps
representing the media types it can produce or handle.Gst.Device
are created byGst.DeviceProvider
objects which can be aggregated byGst.DeviceMonitor
objects.New in version 1.4.
- create_element(name)[source]¶
- Parameters:
name (
str
orNone
) – name of new element, orNone
to automatically create a unique name.- Returns:
a new
Gst.Element
configured to use this device- Return type:
Gst.Element
orNone
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.Caps
supported by this device. Unref with gst_caps_unref() when done.- Return type:
Getter for the
Gst.Caps
that 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.DeviceProvider
that produced this device.New in version 1.4.
- get_properties()[source]¶
- Returns:
The extra properties or
None
when there are none. Free withGst.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:
True
if 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
]) – aNone
terminated array of classes to match, only match if all classes are matched- Returns:
True
if 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
) – aGst.Element
- Returns:
True
if the element could be reconfigured to use this device,False
otherwise.- 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 (
str
orNone
) – name of new element, orNone
to automatically create a unique name.- Returns:
a new
Gst.Element
configured to use this device- Return type:
Gst.Element
orNone
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
) – aGst.Element
- Returns:
True
if the element could be reconfigured to use this device,False
otherwise.- 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