pub struct TimelineRunner { /* private fields */ }Expand description
Implementations§
Source§impl TimelineRunner
impl TimelineRunner
Sourcepub fn run(self) -> Result<(), PreviewError>
pub fn run(self) -> Result<(), PreviewError>
A/V sync presentation loop.
Plays all clips in the primary video track from start to finish (or until
a PlayerCommand::Stop is received).
Emits PlayerEvent::SeekCompleted after each successful seek,
PlayerEvent::PositionUpdate after each presented video frame,
PlayerEvent::Error on non-fatal decode errors, and
PlayerEvent::Eof before returning.
§Errors
Returns PreviewError::SeekOutOfRange if a seek command targets a
timestamp that falls outside all clips on the timeline.
Trait Implementations§
Source§impl Drop for TimelineRunner
impl Drop for TimelineRunner
Auto Trait Implementations§
impl !RefUnwindSafe for TimelineRunner
impl !Sync for TimelineRunner
impl !UnwindSafe for TimelineRunner
impl Freeze for TimelineRunner
impl Send for TimelineRunner
impl Unpin for TimelineRunner
impl UnsafeUnpin for TimelineRunner
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more