use bytes::Bytes;
use rml_amf0::Amf0Value;
use sessions::StreamMetadata;
use time::RtmpTimestamp;
#[derive(PartialEq, Debug)]
pub enum ClientSessionEvent {
ConnectionRequestAccepted,
ConnectionRequestRejected { description: String },
PlaybackRequestAccepted,
PublishRequestAccepted,
StreamMetadataReceived { metadata: StreamMetadata },
VideoDataReceived {
timestamp: RtmpTimestamp,
data: Bytes,
},
AudioDataReceived {
timestamp: RtmpTimestamp,
data: Bytes,
},
UnhandleableAmf0Command {
command_name: String,
transaction_id: f64,
command_object: Amf0Value,
additional_values: Vec<Amf0Value>,
},
UnknownTransactionResultReceived {
transaction_id: f64,
command_object: Amf0Value,
additional_values: Vec<Amf0Value>,
},
UnhandleableOnStatusCode { code: String },
AcknowledgementReceived { bytes_received: u32 },
PingResponseReceived { timestamp: RtmpTimestamp },
}