pub enum AudioTagHeader {
Legacy(LegacyAudioTagHeader),
Enhanced(ExAudioTagHeader),
}
Expand description
FLV AudioTagHeader
This only describes the audio tag header, see AudioData
for the full audio data container.
Defined by:
- Legacy FLV spec, Annex E.4.2.1
- Enhanced RTMP spec, page 19, Enhanced Audio
Variants§
Legacy(LegacyAudioTagHeader)
Legacy audio tag header.
Enhanced(ExAudioTagHeader)
Enhanced audio tag header.
Implementations§
Source§impl AudioTagHeader
impl AudioTagHeader
Sourcepub fn demux(reader: &mut Cursor<Bytes>) -> Result<Self, FlvError>
pub fn demux(reader: &mut Cursor<Bytes>) -> Result<Self, FlvError>
Demux the audio tag header from the given reader.
If you want to demux the full audio data tag, use AudioData::demux
instead.
This function will automatically determine whether the given data represents a legacy or an enhanced audio tag header
and demux it accordingly.
Trait Implementations§
Source§impl Clone for AudioTagHeader
impl Clone for AudioTagHeader
Source§fn clone(&self) -> AudioTagHeader
fn clone(&self) -> AudioTagHeader
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source
. Read moreSource§impl Debug for AudioTagHeader
impl Debug for AudioTagHeader
Source§impl PartialEq for AudioTagHeader
impl PartialEq for AudioTagHeader
impl StructuralPartialEq for AudioTagHeader
Auto Trait Implementations§
impl Freeze for AudioTagHeader
impl RefUnwindSafe for AudioTagHeader
impl Send for AudioTagHeader
impl Sync for AudioTagHeader
impl Unpin for AudioTagHeader
impl UnwindSafe for AudioTagHeader
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