pub enum VideoPlayerCommand {
Play,
Pause,
Stop,
NotifyEnded,
Seek {
position: f64,
},
SetDuration {
duration: f64,
},
EnterFullscreen,
ExitFullscreen,
}Variants§
Play
Pause
Stop
Stop playback and release decoder resources immediately if possible.
NotifyEnded
Notify the native player that the current media/segment has ended.
This is used by stream providers (Rust-side) to surface an authoritative end-of-stream signal to the native player/controls, even when the decoder pipeline has no reliable duration-based ended detection.
Seek
Seek to a specific time in seconds.
SetDuration
Provide an external duration for stream/piped playback (seconds).
Use 0 to clear.
EnterFullscreen
ExitFullscreen
Trait Implementations§
Source§impl Clone for VideoPlayerCommand
impl Clone for VideoPlayerCommand
Source§fn clone(&self) -> VideoPlayerCommand
fn clone(&self) -> VideoPlayerCommand
Returns a duplicate of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for VideoPlayerCommand
impl Debug for VideoPlayerCommand
Source§impl PartialEq for VideoPlayerCommand
impl PartialEq for VideoPlayerCommand
impl StructuralPartialEq for VideoPlayerCommand
Auto Trait Implementations§
impl Freeze for VideoPlayerCommand
impl RefUnwindSafe for VideoPlayerCommand
impl Send for VideoPlayerCommand
impl Sync for VideoPlayerCommand
impl Unpin for VideoPlayerCommand
impl UnsafeUnpin for VideoPlayerCommand
impl UnwindSafe for VideoPlayerCommand
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