pub struct FlvTag<'a> {
pub timestamp_ms: u32,
pub stream_id: u32,
pub data: FlvTagData<'a>,
}
Expand description
An FLV Tag
Tags have different types and thus different data structures. To accommodate
this the FlvTagData
enum is used.
Defined by:
- Legacy FLV spec, Annex E.4.1
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.)
Fields§
§timestamp_ms: u32
The timestamp of this tag in milliseconds
stream_id: u32
The stream id of this tag
data: FlvTagData<'a>
The actual data of the tag
Implementations§
Trait Implementations§
impl<'a> StructuralPartialEq for FlvTag<'a>
Auto Trait Implementations§
impl<'a> !Freeze for FlvTag<'a>
impl<'a> RefUnwindSafe for FlvTag<'a>
impl<'a> Send for FlvTag<'a>
impl<'a> Sync for FlvTag<'a>
impl<'a> Unpin for FlvTag<'a>
impl<'a> UnwindSafe for FlvTag<'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