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 _getGType() static nothrow
GType _gType() @property nothrow
Device self() nothrowReturns `this`, for use in `with` statements.
DeviceGidBuilder builder() static nothrowGet builder for [gst.device.Device] Returns: New builder object
gst.caps.Caps caps() @property nothrow
string deviceClass() @property nothrow
string displayName() @property nothrow
gst.element.Element createElement(string name = null) nothrowCreates the element with all of the required parameters set to use this device.
gst.caps.Caps getCaps() nothrowGetter for the #GstCaps that this device supports. Returns: The #GstCaps supported by this device. Unref with gst_caps_unref() when done.
string getDeviceClass() nothrowGets 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() nothrowGets the user-friendly name of the device. Returns: The device name. Free with [glib.global.gfree] after use.
gst.structure.Structure getProperties() nothrowGets 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) nothrowCheck if device matches all of the given classes
bool hasClassesv(string[] classes) nothrowCheck if factory matches all of the given classes
bool reconfigureElement(gst.element.Element element) nothrowTries 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) nothrowConnect to `Removed` signal.
Constructors
this(void * ptr, Flag!"Take" take)

Fluent builder implementation template for gst.device.Device

Methods
T caps(gst.caps.Caps propval) nothrow
T deviceClass(string propval) nothrow
T displayName(string propval) nothrow

Fluent builder for gst.device.Device

Methods
Device build() nothrowCreate object from builder. Returns: New object