pub enum StreamPacket {
Audio {
timestamp: u32,
tag: AudioTag,
},
Video {
timestamp: u32,
tag: VideoTag,
},
Metadata(Amf0Value),
}Expand description
One media-layer event reported to the caller.
Variants§
Audio
Video
Metadata(Amf0Value)
@setDataFrame("onMetaData", <amf0>). The AMF0 value is the
metadata object (usually width, height, codec ids, framerate,
bitrate, audiodatarate, …).
Trait Implementations§
Source§impl Clone for StreamPacket
impl Clone for StreamPacket
Source§fn clone(&self) -> StreamPacket
fn clone(&self) -> StreamPacket
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreAuto Trait Implementations§
impl Freeze for StreamPacket
impl RefUnwindSafe for StreamPacket
impl Send for StreamPacket
impl Sync for StreamPacket
impl Unpin for StreamPacket
impl UnsafeUnpin for StreamPacket
impl UnwindSafe for StreamPacket
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