oa::media::MediaPlayerConfig

Two local tracks whose presentation timestamps share a zero-based epoch. Audio currently uses the incremental WAV/FLAC/MP3 source boundary of AudioPlayer. An audio track embedded in MP4 or Matroska is not yet extracted by OA; callers must provide a separately decodable audio file.

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

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
No public source comment is attached to this declaration.