pub enum LegacyVideoTagBody {
Command,
AvcVideoPacketSeqHdr(AVCDecoderConfigurationRecord),
Other {
data: Bytes,
},
}
Expand description
Legacy FLV VideoTagBody
This is a container for video data. This enum contains the data for the different types of video tags.
Defined by:
- video_file_format_spec_v10.pdf (Chapter 1 - The FLV File Format - Video tags)
- video_file_format_spec_v10_1.pdf (Annex E.4.3.1 - VIDEODATA)
Variants§
Command
Empty body because the header contains a VideoCommand
AvcVideoPacketSeqHdr(AVCDecoderConfigurationRecord)
AVC/H.264 configuration record
Other
Any other video data
Fields
§
data: Bytes
The video data
Implementations§
Source§impl LegacyVideoTagBody
impl LegacyVideoTagBody
Sourcepub fn demux(
header: &LegacyVideoTagHeader,
reader: &mut Cursor<Bytes>,
) -> Result<Self>
pub fn demux( header: &LegacyVideoTagHeader, reader: &mut Cursor<Bytes>, ) -> Result<Self>
Demux the video tag body from the given reader.
The reader will be consumed entirely.
Trait Implementations§
Source§impl Clone for LegacyVideoTagBody
impl Clone for LegacyVideoTagBody
Source§fn clone(&self) -> LegacyVideoTagBody
fn clone(&self) -> LegacyVideoTagBody
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 LegacyVideoTagBody
impl Debug for LegacyVideoTagBody
Source§impl PartialEq for LegacyVideoTagBody
impl PartialEq for LegacyVideoTagBody
impl StructuralPartialEq for LegacyVideoTagBody
Auto Trait Implementations§
impl !Freeze for LegacyVideoTagBody
impl RefUnwindSafe for LegacyVideoTagBody
impl Send for LegacyVideoTagBody
impl Sync for LegacyVideoTagBody
impl Unpin for LegacyVideoTagBody
impl UnwindSafe for LegacyVideoTagBody
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