pub struct MpaReader { /* private fields */ }Expand description
MPEG1 and MPEG2 audio elementary stream reader.
MpaReader implements a demuxer for the MPEG1 and MPEG2 audio elementary stream.
Trait Implementations§
Source§impl FormatReader for MpaReader
impl FormatReader for MpaReader
Source§fn try_new(
source: MediaSourceStream,
options: &FormatOptions,
) -> Result<MpaReader, Error>
fn try_new( source: MediaSourceStream, options: &FormatOptions, ) -> Result<MpaReader, Error>
Attempt to instantiate a
FormatReader using the provided FormatOptions and
MediaSourceStream. The reader will probe the container to verify format support, determine
the number of tracks, and read any initial metadata.Source§fn next_packet(&mut self) -> Result<Packet, Error>
fn next_packet(&mut self) -> Result<Packet, Error>
Get the next packet from the container. Read more
Source§fn seek(&mut self, mode: SeekMode, to: SeekTo) -> Result<SeekedTo, Error>
fn seek(&mut self, mode: SeekMode, to: SeekTo) -> Result<SeekedTo, Error>
Seek, as precisely as possible depending on the mode, to the
Time or track TimeStamp
requested. Returns the requested and actual TimeStamps seeked to, as well as the Track. Read moreSource§fn into_inner(self: Box<MpaReader>) -> MediaSourceStream
fn into_inner(self: Box<MpaReader>) -> MediaSourceStream
Destroys the
FormatReader and returns the underlying media source streamSource§fn default_track(&self) -> Option<&Track>
fn default_track(&self) -> Option<&Track>
Gets the default track. If the
FormatReader has a method of determining the default track,
this function should return it. Otherwise, the first track is returned. If no tracks are
present then None is returned.Source§impl QueryDescriptor for MpaReader
impl QueryDescriptor for MpaReader
Auto Trait Implementations§
impl Freeze for MpaReader
impl !RefUnwindSafe for MpaReader
impl Send for MpaReader
impl Sync for MpaReader
impl Unpin for MpaReader
impl !UnwindSafe for MpaReader
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more