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: RtcOutboundRtpStreamMediaType
Fields which should be in the RtcStat
based on mediaType
.
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 moresource§impl Debug for RtcOutboundRtpStreamStats
impl Debug for RtcOutboundRtpStreamStats
source§impl<'de> Deserialize<'de> for RtcOutboundRtpStreamStats
impl<'de> Deserialize<'de> for RtcOutboundRtpStreamStats
source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where __D: Deserializer<'de>,
source§impl Hash for RtcOutboundRtpStreamStats
impl Hash for RtcOutboundRtpStreamStats
source§impl PartialEq<RtcOutboundRtpStreamStats> for RtcOutboundRtpStreamStats
impl PartialEq<RtcOutboundRtpStreamStats> for RtcOutboundRtpStreamStats
source§fn eq(&self, other: &RtcOutboundRtpStreamStats) -> bool
fn eq(&self, other: &RtcOutboundRtpStreamStats) -> bool
self
and other
values to be equal, and is used
by ==
.