Class: GstController::TimedValueControlSource

Inherits:
Gst::ControlSource
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#all ⇒ GLib::List<GstController::ControlPoint>

Returns a read-only copy of the list of Gst::ControlPoint for the given property.
Free the list after done with it.
of the list, or nil if the property isn't handled by the controller

Returns:

  • (GLib::List<GstController::ControlPoint>) —

    a copy

#count ⇒ Integer

Get the number of control points that are set.

Returns:

  • (Integer) —

    the number of control points that are set.

#find_control_point_iter(timestamp) ⇒ GLib::SequenceIter

Find last value before given timestamp in control point list.
If all values in the control point list come after the given
timestamp or no values exist, nil is returned.

For use in control source implementations.

Parameters:

  • timestamp (Gst::ClockTime) —

    the search key

Returns:

  • (GLib::SequenceIter) —

    the found GSequence::Iter or nil

#from_list=(timedvalues) ⇒ Boolean

Sets multiple timed values at once.
with Gst::TimedValue items

Parameters:

  • timedvalues (GLib::SList<Gst::TimedValue>) —

    a list

Returns:

  • (Boolean) —

    FALSE if the values couldn't be set, TRUE otherwise.

#list_control_points(n_control_points) ⇒ Array<Gst::TimedValue>

Returns an array of Gst::TimedValue representing the control points
that have been set on this control source. To modify the value of a
control point, use #gst_timed_value_control_source_set.
control points, or nil if no control points are set.

Parameters:

  • n_control_points (Integer) —

    location to store the number of control points

Returns:

  • (Array<Gst::TimedValue>) —

    an array of

#set(timestamp, value) ⇒ Boolean

Set the value of given controller-handled property at a certain time.

Parameters:

  • timestamp (Gst::ClockTime) —

    the time the control-change is scheduled for

  • value (Float) —

    the control-value

Returns:

  • (Boolean) —

    FALSE if the values couldn't be set, TRUE otherwise.

#unset(timestamp) ⇒ Boolean

Used to remove the value of given controller-handled property at a certain
time.

Parameters:

  • timestamp (Gst::ClockTime) —

    the time the control-change should be removed from

Returns:

  • (Boolean) —

    FALSE if the value couldn't be unset (i.e. not found, TRUE otherwise.

#unset_all ⇒ nil

Used to remove all time-stamped values of given controller-handled property

Returns:

  • (nil)