pub struct FlvHeader {
pub version: u8,
pub is_audio_present: bool,
pub is_video_present: bool,
pub extra: Bytes,
}
Expand description
The FLV header Whenever a FLV file is read these are the first 9 bytes of the file.
Defined by:
- video_file_format_spec_v10.pdf (Chapter 1 - The FLV Header - Page 8)
- video_file_format_spec_v10_1.pdf (Annex E.2 - The FLV Header)
Fields§
§version: u8
The version of the FLV file.
is_audio_present: bool
Whether the FLV file contains audio tags.
is_video_present: bool
Whether the FLV file contains video tags.
extra: Bytes
The extra data in the FLV header.
Since the header provides a data offset, this is the remaining bytes after the DataOffset field to the end of the header.
Implementations§
Trait Implementations§
impl StructuralPartialEq for FlvHeader
Auto Trait Implementations§
impl !Freeze for FlvHeader
impl RefUnwindSafe for FlvHeader
impl Send for FlvHeader
impl Sync for FlvHeader
impl Unpin for FlvHeader
impl UnwindSafe for FlvHeader
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