Enum mmids_core::workflows::MediaNotificationContent
source ·
[−]pub enum MediaNotificationContent {
NewIncomingStream {
stream_name: String,
},
StreamDisconnected,
Video {
codec: VideoCodec,
is_sequence_header: bool,
is_keyframe: bool,
data: Bytes,
timestamp: Duration,
},
Audio {
codec: AudioCodec,
is_sequence_header: bool,
data: Bytes,
timestamp: Duration,
},
Metadata {
data: HashMap<String, String>,
},
}Expand description
The detailed information contained within a media notification
Variants
NewIncomingStream
Fields
stream_name: StringThe name for the stream that’s being published
Announces that this stream has now connected, and steps that receive this notification should prepare for media data to start coming through
StreamDisconnected
Announces that this stream’s source has disconnected and will no longer be sending any
new notifications down. Steps that receive this message can use this to clean up any
information they are tracking about this stream, as no new media will arrive without
a new NewIncomingStream announcement.
Video
Video content
Audio
Audio content
Metadata
New stream metadata
Implementations
Creates an RTMP representation of the media data from the specified media content
Trait Implementations
This method tests for self and other values to be equal, and is used
by ==. Read more
This method tests for !=.
Auto Trait Implementations
impl RefUnwindSafe for MediaNotificationContent
impl Send for MediaNotificationContent
impl Sync for MediaNotificationContent
impl Unpin for MediaNotificationContent
impl UnwindSafe for MediaNotificationContent
Blanket Implementations
Mutably borrows from an owned value. Read more
Convert Box<dyn Trait> (where Trait: Downcast) to Box<dyn Any>. Box<dyn Any> can
then be further downcast into Box<ConcreteType> where ConcreteType implements Trait. Read more
Convert Rc<Trait> (where Trait: Downcast) to Rc<Any>. Rc<Any> can then be
further downcast into Rc<ConcreteType> where ConcreteType implements Trait. Read more
Convert &Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &Any’s vtable from &Trait’s. Read more
Convert &mut Trait (where Trait: Downcast) to &Any. This is needed since Rust cannot
generate &mut Any’s vtable from &mut Trait’s. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber to this type, returning a
WithDispatch wrapper. Read more
Attaches the current default Subscriber to this type, returning a
WithDispatch wrapper. Read more
