gst.device

Module for [Device] class

Types 3

#GstDevice are objects representing a device, they contain relevant metadata about the device, such as its class and the #GstCaps representing the media types it can produce or handle.

#GstDevice are created by #GstDeviceProvider objects which can be aggregated by #GstDeviceMonitor objects.

Methods
GType _gType() @property
Device self()Returns `this`, for use in `with` statements.
DeviceGidBuilder builder()Get builder for [gst.device.Device] Returns: New builder object
gst.caps.Caps caps() @property
string deviceClass() @property
string displayName() @property
gst.element.Element createElement(string name = null)Creates the element with all of the required parameters set to use this device.
gst.caps.Caps getCaps()Getter for the #GstCaps that this device supports. Returns: The #GstCaps supported by this device. Unref with gstcapsunref() when done.
string getDeviceClass()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 #GstDeviceProvider that produced this device. Returns: The ...
string getDisplayName()Gets the user-friendly name of the device. Returns: The device name. Free with [glib.global.gfree] after use.
gst.structure.Structure getProperties()Gets the extra properties of a device. Returns: The extra properties or null when there are none. Free with [gst.structure.Structure.free] after use.
bool hasClasses(string classes)Check if device matches all of the given classes
bool hasClassesv(string[] classes)Check if factory matches all of the given classes
bool reconfigureElement(gst.element.Element element)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.Device.createElement].
gulong connectRemoved(T)(T callback, Flag!"After" after = No.After) if (isCallable!T && is(ReturnType!T == void) && (Parameters!T.length < 1 || (ParameterStorageClassTuple!T[0] == ParameterStorageClass.none && is(Parameters!T[0] : gst.device.Device))) && Parameters!T.length < 2)Connect to `Removed` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder for [gst.device.Device]

Methods