Skip to main content

VideoBackend

Trait VideoBackend 

Source
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§

Source

fn create_player( &self, source: &str, audio: &VideoAudioOptions, ) -> Box<dyn VideoPlayer>

Source

fn present_surfaces(&self, frames: &[VideoSurfaceFrame])

Dyn Compatibility§

This trait is dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety".

Implementors§