TriggerControlSource

#GstTriggerControlSource is a #GstControlSource, that returns values from user-given control points. It allows for a tolerance on the time-stamps.

To use #GstTriggerControlSource get a new instance by calling gstcontroller.trigger_control_source.TriggerControlSource.new_, bind it to a #GParamSpec and set some control points by calling gstcontroller.timed_value_control_source.TimedValueControlSource.set.

All functions are MT-safe.

Constructors

this
this(void* ptr, Flag!"Take" take)
this
this()

This returns a new, unbound #GstTriggerControlSource.

Members

Functions

self
TriggerControlSource self()

Returns this, for use in with statements.

Properties

_gType
GType _gType [@property getter]
tolerance
long tolerance [@property getter]
tolerance
long tolerance [@property setter]

Static functions

_getGType
GType _getGType()

Inherited Members

From TimedValueControlSource

_getGType
GType _getGType()
_gType
GType _gType [@property getter]
self
TimedValueControlSource self()

Returns this, for use in with statements.

findControlPointIter
glib.sequence_iter.SequenceIter findControlPointIter(gst.types.ClockTime timestamp)

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, null is returned.

getAll
gst.types.TimedValue[] getAll()

Returns a read-only copy of the list of #GstTimedValue for the given property. Free the list after done with it.

getCount
int getCount()

Get the number of control points that are set.

set
bool set(gst.types.ClockTime timestamp, double value)

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

setFromList
bool setFromList(gst.types.TimedValue[] timedvalues)

Sets multiple timed values at once.

unset
bool unset(gst.types.ClockTime timestamp)

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

unsetAll
void unsetAll()

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

connectValueAdded
ulong connectValueAdded(T callback, Flag!"After" after)

Connect to ValueAdded signal.

connectValueChanged
ulong connectValueChanged(T callback, Flag!"After" after)

Connect to ValueChanged signal.

connectValueRemoved
ulong connectValueRemoved(T callback, Flag!"After" after)

Connect to ValueRemoved signal.