:right-sidebar: True TimedValueControlSource =================================================================== .. currentmodule:: gi.repository.GstController .. class:: TimedValueControlSource(**properties: ~typing.Any) :no-contents-entry: Superclasses: :class:`~gi.repository.Gst.ControlSource`, :class:`~gi.repository.Gst.Object`, :class:`~gi.repository.GObject.InitiallyUnowned`, :class:`~gi.repository.GObject.Object` Subclasses: :class:`~gi.repository.GstController.InterpolationControlSource`, :class:`~gi.repository.GstController.TriggerControlSource` Base class for :obj:`~gi.repository.Gst.ControlSource` that use time-stamped values. When overriding bind, chain up first to give this bind implementation a chance to setup things. All functions are MT-safe. Methods ------- .. rst-class:: interim-class .. class:: TimedValueControlSource :no-index: .. method:: find_control_point_iter(timestamp: int) -> ~gi.repository.GLib.SequenceIter | None 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, :const:`None` is returned. For use in control source implementations. :param timestamp: the search key .. method:: get_all() -> list[~gi.repository.Gst.TimedValue] Returns a read-only copy of the list of :obj:`~gi.repository.Gst.TimedValue` for the given property. Free the list after done with it. .. method:: get_count() -> int Get the number of control points that are set. .. method:: set(timestamp: int, value: float) -> bool Set the value of given controller-handled property at a certain time. :param timestamp: the time the control-change is scheduled for :param value: the control-value .. method:: set_from_list(timedvalues: list[~gi.repository.Gst.TimedValue]) -> bool Sets multiple timed values at once. :param timedvalues: a list with :obj:`~gi.repository.Gst.TimedValue` items .. method:: unset(timestamp: int) -> bool Used to remove the value of given controller-handled property at a certain time. :param timestamp: the time the control-change should be removed from .. method:: unset_all() -> None Used to remove all time-stamped values of given controller-handled property Signals ------- .. rst-class:: interim-class .. class:: TimedValueControlSource.signals :no-index: .. method:: value_added(timed_value: ~gi.repository.GstController.ControlPoint) -> None The type of the None singleton. .. versionadded:: 1.6 :param timed_value: The newly added :obj:`~gi.repository.Gst.TimedValue` .. method:: value_changed(timed_value: ~gi.repository.GstController.ControlPoint) -> None The type of the None singleton. .. versionadded:: 1.6 :param timed_value: The :obj:`~gi.repository.Gst.TimedValue` where the value changed .. method:: value_removed(timed_value: ~gi.repository.GstController.ControlPoint) -> None The type of the None singleton. .. versionadded:: 1.6 :param timed_value: The removed :obj:`~gi.repository.Gst.TimedValue` Fields ------ .. rst-class:: interim-class .. class:: TimedValueControlSource :no-index: .. attribute:: lock .. attribute:: nvalues .. attribute:: parent .. attribute:: priv .. attribute:: valid_cache .. attribute:: values