pub trait VideoBackend: Send + Sync {
// Required methods
fn create_player(
&self,
source: &str,
audio: &VideoAudioOptions,
) -> Box<dyn VideoPlayer>;
fn present_surfaces(&self, frames: &[VideoSurfaceFrame]);
}Required Methods§
fn create_player( &self, source: &str, audio: &VideoAudioOptions, ) -> Box<dyn VideoPlayer>
fn present_surfaces(&self, frames: &[VideoSurfaceFrame])
Dyn Compatibility§
This trait is dyn compatible.
In older versions of Rust, dyn compatibility was called "object safety".