Realm

oa::media::MediaPlayerConfig

Struct published by the oa::media module.

StRust public API

Declaration

pub struct MediaPlayerConfig { pub video_path: PathBuf, pub audio_path: PathBuf, pub audio_ring_milliseconds: u32, }
Public Rust declaration.

Public Methods

fn clone(&self) -> MediaPlayerConfig
fn fmt(&self, f: &mut Formatter<'_>) -> Result

Associated Functions

pub fn new( video_path: impl Into<PathBuf>, audio_path: impl Into<PathBuf>, ) -> Self
pub fn embedded(path: impl Into<PathBuf>) -> Self

Public Data Members

video_pathPathBuffield
audio_pathPathBuffield
audio_ring_millisecondsu32field

Public Method Documentation

fn clone( &self ) -> MediaPlayerConfig
No public source comment is attached to this declaration.
fn fmt( &self, f: &mut Formatter<'_> ) -> Result
No public source comment is attached to this declaration.
pub fn new( video_path: impl Into<PathBuf>, audio_path: impl Into<PathBuf> ) -> Self
Play one container as both tracks: the video demuxer indexes its video track while AudioPlayer decodes the embedded audio track. The two decoders share the container’s own timestamp epoch.
pub fn embedded( path: impl Into<PathBuf> ) -> Self
No public source comment is attached to this declaration.