pub enum ErtmpEvent {
CodecConfig {
track: ErtmpTrack,
chunk_stream_id: u32,
payload: Vec<u8>,
},
Frame {
track: ErtmpTrack,
chunk_stream_id: u32,
timestamp: u32,
composition_time_offset: i32,
coded_data: Vec<u8>,
},
Metadata {
track: ErtmpTrack,
chunk_stream_id: u32,
timestamp: u32,
name: String,
value: Vec<u8>,
},
Reconnect,
}Expand description
One caller-parsed E-RTMP event, in transmission order.
Variants§
CodecConfig
The payload of a SequenceStart packet (or equivalent legacy sequence header).
Fields
§
track: ErtmpTrackTrack carrying the configuration.
Frame
One coded-frame packet. Protocol, configuration, metadata and control bytes must not be included. Aggregate timestamps must already be normalized.
Fields
§
track: ErtmpTrackTrack carrying the frame. For a Multitrack message this is the selected packet.
Metadata
One native AMF3 ByteArray [name, value] pair from a Metadata message.
Fields
§
track: ErtmpTrackTrack on whose Metadata packet this pair arrived.
Reconnect
A transport reconnection. C2PA manifest, key and sequence state survives, but no logical segment may span this boundary.
Trait Implementations§
Source§impl Clone for ErtmpEvent
impl Clone for ErtmpEvent
Source§impl Debug for ErtmpEvent
impl Debug for ErtmpEvent
Source§impl<'de> Deserialize<'de> for ErtmpEvent
impl<'de> Deserialize<'de> for ErtmpEvent
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Auto Trait Implementations§
impl Freeze for ErtmpEvent
impl RefUnwindSafe for ErtmpEvent
impl Send for ErtmpEvent
impl Sync for ErtmpEvent
impl Unpin for ErtmpEvent
impl UnsafeUnpin for ErtmpEvent
impl UnwindSafe for ErtmpEvent
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