gst.device
Module for [Device] class
Types 3
classDevice : gst.object.ObjectWrap
#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
DeviceGidBuilder builder()Get builder for [gst.device.Device] Returns: New builder objectgst.caps.Caps caps() @propertystring deviceClass() @propertystring displayName() @propertygst.structure.Structure properties() @propertygst.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 classesbool hasClassesv(string[] classes)Check if factory matches all of the given classesbool 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.Methods
T caps(gst.caps.Caps propval)T deviceClass(string propval)T displayName(string propval)T properties(gst.structure.Structure propval)