pub struct FlvTag {
pub timestamp_ms: u32,
pub stream_id: u32,
pub data: FlvTagData,
}Expand description
An FLV Tag
Tags have different types and thus different data structures. To accommodate
this the FlvTagData enum is used.
Defined by:
- video_file_format_spec_v10.pdf (Chapter 1 - The FLV File Format - FLV tags)
- video_file_format_spec_v10_1.pdf (Annex E.4.1 - FLV Tag)
The v10.1 spec adds some additional fields to the tag to accomodate encryption. We dont support this because it is not needed for our use case. (and I suspect it is not used anywhere anymore.)
However if the Tag is encrypted the tag_type will be a larger number (one we
dont support), and therefore the FlvTagData::Unknown variant will be
used.
Fields§
§timestamp_ms: u32A timestamp in milliseconds
stream_id: u32A stream id
data: FlvTagDataImplementations§
Trait Implementations§
impl StructuralPartialEq for FlvTag
Auto Trait Implementations§
impl !Freeze for FlvTag
impl RefUnwindSafe for FlvTag
impl Send for FlvTag
impl Sync for FlvTag
impl Unpin for FlvTag
impl UnwindSafe for FlvTag
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