Struct webrtc_media::io::ogg_reader::OggReader
source · pub struct OggReader<R: Read> { /* private fields */ }
Expand description
OggReader is used to read Ogg files and return page payloads
Implementations§
source§impl<R: Read> OggReader<R>
impl<R: Read> OggReader<R>
sourcepub fn new(
reader: R,
do_checksum: bool
) -> Result<(OggReader<R>, OggHeader), Error>
pub fn new( reader: R, do_checksum: bool ) -> Result<(OggReader<R>, OggHeader), Error>
new returns a new Ogg reader and Ogg header with an io.Reader input
pub fn parse_next_page(&mut self) -> Result<(BytesMut, OggPageHeader), Error>
sourcepub fn reset_reader(&mut self, reset: ResetFn<R>)
pub fn reset_reader(&mut self, reset: ResetFn<R>)
reset_reader resets the internal stream of OggReader. This is useful for live streams, where the end of the file might be read without the data being finished.
Auto Trait Implementations§
impl<R> RefUnwindSafe for OggReader<R>where R: RefUnwindSafe,
impl<R> Send for OggReader<R>where R: Send,
impl<R> Sync for OggReader<R>where R: Sync,
impl<R> Unpin for OggReader<R>where R: Unpin,
impl<R> UnwindSafe for OggReader<R>where R: UnwindSafe,
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