Trait gstreamer::prelude::ControlBindingExt

source ·
pub trait ControlBindingExt: IsA<ControlBinding> + Sealed + 'static {
    // Provided methods
    fn value(&self, timestamp: ClockTime) -> Option<Value> { ... }
    fn is_disabled(&self) -> bool { ... }
    fn set_disabled(&self, disabled: bool) { ... }
    fn sync_values(
        &self,
        object: &impl IsA<Object>,
        timestamp: ClockTime,
        last_sync: impl Into<Option<ClockTime>>,
    ) -> bool { ... }
    fn object(&self) -> Option<Object> { ... }
}
Expand description

Trait containing all ControlBinding methods.

§Implementors

ControlBinding

Provided Methods§

source

fn value(&self, timestamp: ClockTime) -> Option<Value>

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.

source

fn is_disabled(&self) -> bool

Checks if the control binding is disabled.

§Returns

true if the binding is inactive

source

fn set_disabled(&self, disabled: bool)

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.

source

fn sync_values( &self, object: &impl IsA<Object>, timestamp: ClockTime, last_sync: impl Into<Option<ClockTime>>, ) -> bool

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

source

fn object(&self) -> Option<Object>

Object Safety§

This trait is not object safe.

Implementors§