pub struct RtcOutboundRtpStreamStats {
pub track_id: Option<String>,
pub media_type: RtcOutboundRtpStreamMediaType,
pub bytes_sent: Option<u64>,
pub packets_sent: Option<u64>,
pub media_source_id: Option<String>,
}Expand description
Statistics for an outbound RTP stream that is currently sent with this RTCPeerConnection object.
When there are multiple RTP streams connected to the same sender, such
as when using simulcast or RTX, there will be one
RtcOutboundRtpStreamStats per RTP stream, with distinct values of
the ssrc attribute, and all these senders will have a reference to
the same “sender” object (of type RTCAudioSenderStats or
RTCVideoSenderStats) and “track” object (of type
RTCSenderAudioTrackAttachmentStats or
RTCSenderVideoTrackAttachmentStats).
RtcStatsType::OutboundRtp variant.
Fields§
§track_id: Option<String>ID of the stats object representing the current track attachment to the sender of this stream.
media_type: RtcOutboundRtpStreamMediaTypeFields which should be in the RtcStat based on its kind.
bytes_sent: Option<u64>Total number of bytes sent for this SSRC.
packets_sent: Option<u64>Total number of RTP packets sent for this SSRC.
media_source_id: Option<String>ID of the stats object representing the track currently attached to the sender of this stream.
Trait Implementations§
Source§impl Clone for RtcOutboundRtpStreamStats
impl Clone for RtcOutboundRtpStreamStats
Source§fn clone(&self) -> RtcOutboundRtpStreamStats
fn clone(&self) -> RtcOutboundRtpStreamStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more