pub enum ServerSessionEvent {
ClientChunkSizeChanged {
new_chunk_size: u32,
},
ConnectionRequested {
request_id: u32,
app_name: String,
},
ReleaseStreamRequested {
request_id: u32,
app_name: String,
stream_key: String,
},
PublishStreamRequested {
request_id: u32,
app_name: String,
stream_key: String,
mode: PublishMode,
},
PublishStreamFinished {
app_name: String,
stream_key: String,
},
StreamMetadataChanged {
app_name: String,
stream_key: String,
metadata: StreamMetadata,
},
AudioDataReceived {
app_name: String,
stream_key: String,
data: Bytes,
timestamp: RtmpTimestamp,
},
VideoDataReceived {
app_name: String,
stream_key: String,
data: Bytes,
timestamp: RtmpTimestamp,
},
UnhandleableAmf0Command {
command_name: String,
transaction_id: f64,
command_object: Amf0Value,
additional_values: Vec<Amf0Value>,
},
PlayStreamRequested {
request_id: u32,
app_name: String,
stream_key: String,
start_at: PlayStartValue,
duration: Option<u32>,
reset: bool,
stream_id: u32,
},
PlayStreamFinished {
app_name: String,
stream_key: String,
},
AcknowledgementReceived {
bytes_received: u32,
},
PingResponseReceived {
timestamp: RtmpTimestamp,
},
}
An event that a server session can raise
The client is changing the maximum size of the RTMP chunks they will be sending
Fields of ClientChunkSizeChanged
The client is requesting a connection on the specified RTMP application name
Fields of ConnectionRequested
The client is requesting a stream key be released for use.
Fields of ReleaseStreamRequested
The client is requesting the ability to publish on the specified stream key,
Fields of PublishStreamRequested
The client is finished publishing on the specified stream key
Fields of PublishStreamFinished
The client is changing metadata properties of the stream being published
Fields of StreamMetadataChanged
Audio data was received from the client
Fields of AudioDataReceived
Video data received from the client
Fields of VideoDataReceived
UnhandleableAmf0Command
The client sent an Amf0 command that was not able to be handled
Fields of UnhandleableAmf0Command
The client is requesting playback of the specified stream
Fields of PlayStreamRequested
The client is finished with playback of the specified stream
Fields of PlayStreamFinished
The client has sent an acknowledgement that they have received the specified number of bytes
Fields of AcknowledgementReceived
The client has responded to a ping request
Fields of PingResponseReceived
This method tests for self
and other
values to be equal, and is used by ==
. Read more
This method tests for !=
.
Performs copy-assignment from source
. Read more
Formats the value using the given formatter. Read more
Creates owned data from borrowed data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (toowned_clone_into
)
recently added
Uses borrowed data to replace owned data, usually by cloning. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
Immutably borrows from an owned value. Read more
Mutably borrows from an owned value. Read more
🔬 This is a nightly-only experimental API. (try_from
)
The type returned in the event of a conversion error.
🔬 This is a nightly-only experimental API. (try_from
)
🔬 This is a nightly-only experimental API. (get_type_id
)
this method will likely be replaced by an associated static