Trait gstreamer::prelude::ControlBindingExt[][src]

pub trait ControlBindingExt: 'static {
    fn value(&self, timestamp: ClockTime) -> Option<Value>;
fn is_disabled(&self) -> bool;
fn set_disabled(&self, disabled: bool);
fn sync_values<P: IsA<Object>>(
        &self,
        object: &P,
        timestamp: ClockTime,
        last_sync: impl Into<Option<ClockTime>>
    ) -> bool;
fn object(&self) -> Option<Object>; }
Expand description

Trait containing all ControlBinding methods.

Implementors

ControlBinding

Required methods

Gets the value for the given controlled property at the requested time.

timestamp

the time the control-change should be read from

Returns

the GValue of the property at the given time, or None if the property isn’t controlled.

Checks if the control binding is disabled.

Returns

true if the binding is inactive

This function is used to disable a control binding for some time, i.e. GstObjectExt::sync_values() will do nothing.

disabled

boolean that specifies whether to disable the controller or not.

Sets the property of the object, according to the GstControlSources that handles it and for the given timestamp.

If this function fails, it is most likely the application developers fault. Most probably the control sources are not setup correctly.

object

the object that has controlled properties

timestamp

the time that should be processed

last_sync

the last time this was called

Returns

true if the controller value could be applied to the object property, false otherwise

Implementors