Class: GstController::TimedValueControlSource

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

Instance Method Summary collapse

Methods inherited from Gst::ControlSource

#control_source_get_value, #control_source_get_value_array

Methods inherited from Gst::Object

#add_control_binding, check_uniqueness, #control_bindings_disabled=, #control_rate, #control_rate=, default_deep_notify, #default_error, #get_control_binding, #get_g_value_array, #get_value, #get_value_array, #has_active_control_bindings, #has_ancestor, #has_as_ancestor, #has_as_parent, #name, #name=, #parent, #parent=, #path_string, #ref, ref_sink, #remove_control_binding, replace, #set_control_binding_disabled, #suggest_next_sync, #sync_values, #unparent, #unref

Instance Method Details

#allGLib::List<Gst::TimedValue>

Returns a read-only copy of the list of Gst::TimedValue 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<Gst::TimedValue>)

    a copy

#countInteger

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.

#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_allnil

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

Returns:

  • (nil)