pub enum VideoTagBody<'a> {
Legacy(LegacyVideoTagBody),
Enhanced(ExVideoTagBody<'a>),
}
Expand description
FLV VideoTagBody
This only describes the video tag body, see VideoData
for the full video data container.
Defined by:
- Legacy FLV spec, Annex E.4.3.1
- Enhanced RTMP spec, page 27-31, Enhanced Video
Variants§
Legacy(LegacyVideoTagBody)
Legacy video tag body.
Enhanced(ExVideoTagBody<'a>)
Enhanced video tag body.
Implementations§
Source§impl VideoTagBody<'_>
impl VideoTagBody<'_>
Sourcepub fn demux(
header: &VideoTagHeader,
reader: &mut Cursor<Bytes>,
) -> Result<Self, FlvError>
pub fn demux( header: &VideoTagHeader, reader: &mut Cursor<Bytes>, ) -> Result<Self, FlvError>
Demux the video tag body from the given reader.
If you want to demux the full video data tag, use VideoData::demux
instead.
This function will automatically determine whether the given data represents a legacy or an enhanced video tag body
and demux it accordingly.
The reader will be entirely consumed.
Trait Implementations§
Source§impl<'a> Clone for VideoTagBody<'a>
impl<'a> Clone for VideoTagBody<'a>
Source§fn clone(&self) -> VideoTagBody<'a>
fn clone(&self) -> VideoTagBody<'a>
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<'a> Debug for VideoTagBody<'a>
impl<'a> Debug for VideoTagBody<'a>
Source§impl<'a> PartialEq for VideoTagBody<'a>
impl<'a> PartialEq for VideoTagBody<'a>
impl<'a> StructuralPartialEq for VideoTagBody<'a>
Auto Trait Implementations§
impl<'a> !Freeze for VideoTagBody<'a>
impl<'a> RefUnwindSafe for VideoTagBody<'a>
impl<'a> Send for VideoTagBody<'a>
impl<'a> Sync for VideoTagBody<'a>
impl<'a> Unpin for VideoTagBody<'a>
impl<'a> UnwindSafe for VideoTagBody<'a>
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