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
Required methods
fn is_disabled(&self) -> bool
[src]
fn is_disabled(&self) -> bool
[src]fn set_disabled(&self, disabled: bool)
[src]
fn set_disabled(&self, disabled: bool)
[src]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