Skip to main content

VideoPlayerHandle

Trait VideoPlayerHandle 

Source
pub trait VideoPlayerHandle: Send + Sync {
    // Required method
    fn dispatch(&self, command: VideoPlayerCommand) -> Result<(), PlatformError>;
}
Expand description

Handle to a native component video player instance. Commands go through this handle without needing to re-specify the component ID. Note: Native component lifecycle is owned by the UI layer, not Rust.

Required Methods§

Source

fn dispatch(&self, command: VideoPlayerCommand) -> Result<(), PlatformError>

Dispatch a control command to this player.

Implementors§