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§
Sourcefn dispatch(&self, command: VideoPlayerCommand) -> Result<(), PlatformError>
fn dispatch(&self, command: VideoPlayerCommand) -> Result<(), PlatformError>
Dispatch a control command to this player.