pub struct SceneRunner { /* private fields */ }Expand description
Implementations§
Source§impl SceneRunner
impl SceneRunner
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 SceneRunner
impl Drop for SceneRunner
Auto Trait Implementations§
impl !RefUnwindSafe for SceneRunner
impl !Sync for SceneRunner
impl !UnwindSafe for SceneRunner
impl Freeze for SceneRunner
impl Send for SceneRunner
impl Unpin for SceneRunner
impl UnsafeUnpin for SceneRunner
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