pub struct VideoTagHeader {
pub frame_type: VideoFrameType,
pub data: VideoTagHeaderData,
}
Expand description
FLV VideoTagHeader
This only describes the video tag header, see VideoData
for the full video data container.
Defined by:
- Legacy FLV spec, Annex E.4.3.1
- Enhanced RTMP spec, page 26-28, Enhanced Video
Fields§
§frame_type: VideoFrameType
The frame type of the video data.
data: VideoTagHeaderData
The data of the video tag header.
Implementations§
Source§impl VideoTagHeader
impl VideoTagHeader
Sourcepub fn demux(reader: &mut Cursor<Bytes>) -> Result<Self, FlvError>
pub fn demux(reader: &mut Cursor<Bytes>) -> Result<Self, FlvError>
Demux the video tag header 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 header
and demux it accordingly.
Trait Implementations§
Source§impl Clone for VideoTagHeader
impl Clone for VideoTagHeader
Source§fn clone(&self) -> VideoTagHeader
fn clone(&self) -> VideoTagHeader
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 VideoTagHeader
impl Debug for VideoTagHeader
Source§impl PartialEq for VideoTagHeader
impl PartialEq for VideoTagHeader
impl StructuralPartialEq for VideoTagHeader
Auto Trait Implementations§
impl Freeze for VideoTagHeader
impl RefUnwindSafe for VideoTagHeader
impl Send for VideoTagHeader
impl Sync for VideoTagHeader
impl Unpin for VideoTagHeader
impl UnwindSafe for VideoTagHeader
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