Trait gstreamer::prelude::ClockExtManual
source · pub trait ClockExtManual: 'static {
fn new_periodic_id(
&self,
start_time: ClockTime,
interval: ClockTime
) -> PeriodicClockId;
fn periodic_id_reinit(
&self,
id: &PeriodicClockId,
start_time: ClockTime,
interval: ClockTime
) -> Result<(), BoolError>;
fn new_single_shot_id(&self, time: ClockTime) -> SingleShotClockId;
fn single_shot_id_reinit(
&self,
id: &SingleShotClockId,
time: ClockTime
) -> Result<(), BoolError>;
fn set_clock_flags(&self, flags: ClockFlags);
fn unset_clock_flags(&self, flags: ClockFlags);
fn clock_flags(&self) -> ClockFlags;
}
Required Methods
sourcefn new_periodic_id(
&self,
start_time: ClockTime,
interval: ClockTime
) -> PeriodicClockId
fn new_periodic_id(
&self,
start_time: ClockTime,
interval: ClockTime
) -> PeriodicClockId
Gets an ID from self
to trigger a periodic notification.
The periodic notifications will start at time start_time
and
will then be fired with the given interval
.
start_time
the requested start time
interval
the requested interval
Returns
a GstClockID
that can be used to request the
time notification.