pub struct FlvHeader {
pub version: u8,
pub has_audio: bool,
pub has_video: 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: u8The version of the FLV file.
has_audio: boolWhether the FLV file has audio.
has_video: boolWhether the FLV file has video.
extra: BytesThe extra data in the FLV file. Since the header provides a data offset, this is the bytes between the end of the header and the start of the data.
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