pub enum ClientEvent {
Connected,
Metadata(HashMap<String, AmfValue>),
VideoFrame {
timestamp: u32,
data: H264Data,
},
AudioFrame {
timestamp: u32,
data: AacData,
},
VideoTag(FlvTag),
AudioTag(FlvTag),
StreamEnd,
Error(String),
Disconnected,
}Expand description
Events from the RTMP puller
Variants§
Connected
Connected to server
Metadata(HashMap<String, AmfValue>)
Stream metadata received
VideoFrame
Video frame received
AudioFrame
Audio frame received
VideoTag(FlvTag)
Raw video tag (if configured)
AudioTag(FlvTag)
Raw audio tag (if configured)
StreamEnd
Stream ended
Error(String)
Error occurred
Disconnected
Disconnected
Trait Implementations§
Auto Trait Implementations§
impl !Freeze for ClientEvent
impl RefUnwindSafe for ClientEvent
impl Send for ClientEvent
impl Sync for ClientEvent
impl Unpin for ClientEvent
impl UnwindSafe for ClientEvent
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