Gst.ControlSource

const Gst = imports.gi.Gst;

let control_source = new Gst.ControlSource();
  

The Gst.ControlSource is a base class for control value sources that could be used by #GstController to get timestamp-value pairs. A control source essentially is a function over time, returning gloat values between 0.0 and 1.0.

A Gst.ControlSource is used by first getting an instance of a specific control-source, creating a binding for the control-source to the target property of the element and then adding the binding to the element. The binding will convert the data types and value range to fit to the bound property.

For implementing a new Gst.ControlSource one has to implement Gst.ControlSourceGetValue and Gst.ControlSourceGetValueArray functions. These are then used by Gst.get_value and Gst.get_value_array to get values for specific timestamps.

Hierarchy

  • GObject.Object
    • GObject.InitiallyUnowned
      • Gst.Object
        • Gst.ControlSource