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() static nothrowGet builder for [gst.device.Device] Returns: New builder objectgst.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 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.Fluent builder implementation template for gst.device.Device
Methods
T caps(gst.caps.Caps propval) nothrowT deviceClass(string propval) nothrowT displayName(string propval) nothrowT properties(gst.structure.Structure propval) nothrowFluent builder for gst.device.Device