GstDirectControlBinding
A value mapping object that attaches control sources to gobject properties. It will map the control values directly to the target property range. If a non-absolute direct control binding is used, the value range [0.0 ... 1.0] is mapped to full target property range, and all values outside the range will be clipped. An absolute control binding will not do any value transformations.
GstController.DirectControlBinding
GObject.Object ╰──GObject.InitiallyUnowned ╰──Gst.Object ╰──Gst.ControlBinding ╰──GstController.DirectControlBinding
The instance structure of GstController.DirectControlBinding.
Members
parent
(Gst.ControlBinding)
–
Constructors
GstController.DirectControlBinding.prototype.new
function GstController.DirectControlBinding.prototype.new(object: Gst.Object, property_name: String, cs: Gst.ControlSource): {
// javascript wrapper for 'gst_direct_control_binding_new'
}
Create a new control-binding that attaches the Gst.ControlSource to the GObject.Object property. It will map the control source range [0.0 ... 1.0] to the full target property range, and clip all values outside this range.
Parameters:
the object of the property
the property-name to attach the control source
the control source
GstController.DirectControlBinding.prototype.new_absolute
function GstController.DirectControlBinding.prototype.new_absolute(object: Gst.Object, property_name: String, cs: Gst.ControlSource): {
// javascript wrapper for 'gst_direct_control_binding_new_absolute'
}
Create a new control-binding that attaches the Gst.ControlSource to the GObject.Object property. It will directly map the control source values to the target property range without any transformations.
Parameters:
the object of the property
the property-name to attach the control source
the control source
Since : 1.6
Properties
Constants
Callbacks
GstController.DirectControlBindingConvertGValue
function GstController.DirectControlBindingConvertGValue(self: GstController.DirectControlBinding, src_value: Number, dest_value: GObject.Value): {
// javascript wrapper for 'GstDirectControlBindingConvertGValue'
}
Function to map a control-value to the target GValue.
Parameters:
the GstController.DirectControlBinding instance
the value returned by the cotnrol source
the target GValue
GstController.DirectControlBindingConvertValue
function GstController.DirectControlBindingConvertValue(self: GstController.DirectControlBinding, src_value: Number, dest_value: Object): {
// javascript wrapper for 'GstDirectControlBindingConvertValue'
}
Function to map a control-value to the target plain data type.
Parameters:
the GstController.DirectControlBinding instance
the value returned by the cotnrol source
the target location
The results of the search are