pub enum MessageData<'a> {
Show 16 variants
SetChunkSize(ProtocolControlMessageSetChunkSize),
Abort,
Acknowledgement,
UserControlEvent,
SetAcknowledgementWindowSize(ProtocolControlMessageWindowAcknowledgementSize),
SetPeerBandwidth,
AudioData {
data: Bytes,
},
VideoData {
data: Bytes,
},
DataAmf3,
SharedObjAmf3,
CommandAmf3,
DataAmf0 {
data: Bytes,
},
SharedObjAmf0,
Amf0Command(Command<'a>),
Aggregate,
Unknown(UnknownMessage),
}
Expand description
Different types of messages that can be sent or received.
Defined by:
- Legacy RTMP spec, 5.4
Variants§
SetChunkSize(ProtocolControlMessageSetChunkSize)
Set Chunk Size message
Abort
Abort message
Not implemented.
Acknowledgement
Acknowledgement message
Read not implemented.
UserControlEvent
User Control Event message
Not implemented.
SetAcknowledgementWindowSize(ProtocolControlMessageWindowAcknowledgementSize)
Set Acknowledgement Window Size message
SetPeerBandwidth
Set Peer Bandwidth message
Read not implemented.
AudioData
Audio message
The client or the server sends this message to send audio data to the peer.
Usually contains FLV AUDIODATA.
Fields
data: Bytes
The audio data.
VideoData
Video message
The client or the server sends this message to send video data to the peer.
Usually contains FLV VIDEODATA.
Fields
data: Bytes
The video data.
DataAmf3
Amf3 metadata message
Not implemented.
Amf3 shared object message
Not implemented.
CommandAmf3
Amf3 command message
Not implemented.
DataAmf0
Amf0 metadata message
The client or the server sends this message to send Metadata or any user data to the peer. Metadata includes details about the data(audio, video etc.) like creation time, duration, theme and so on.
Fields
data: Bytes
The metadata.
Amf0 shared object message
Not implemented.
Amf0Command(Command<'a>)
Amf0 command message
Command messages carry the AMF-encoded commands between the client and the server.
Aggregate
Aggregate message
Not implemented.
Unknown(UnknownMessage)
Any other undefined messages.