pub struct RtcInboundRtpStreamStats {
pub track_id: Option<String>,
pub media_specific_stats: RtcInboundRtpStreamMediaType,
pub bytes_received: u64,
pub packets_received: u64,
pub packets_lost: Option<i64>,
pub jitter: Option<Float>,
pub total_decode_time: Option<HighResTimeStamp>,
pub jitter_buffer_emitted_count: Option<u64>,
}Expand description
Representation of the measurement metrics for the incoming RTP media stream. The timestamp reported in the statistics object is the time at which the data was sampled.
RtcStatsType::InboundRtp variant.
Fields§
§track_id: Option<String>ID of the stats object representing the receiving track.
media_specific_stats: RtcInboundRtpStreamMediaTypeFields which should be in the RtcStat based on its kind.
bytes_received: u64Total number of bytes received for this SSRC.
packets_received: u64Total number of RTP data packets received for this SSRC.
packets_lost: Option<i64>Total number of RTP data packets for this SSRC that have been lost since the beginning of reception.
This number is defined to be the number of packets expected less the number of packets actually received, where the number of packets received includes any which are late or duplicates. Thus, packets that arrive late are not counted as lost, and the loss may be negative if there are duplicates.
jitter: Option<Float>Packet jitter measured in seconds for this SSRC.
total_decode_time: Option<HighResTimeStamp>Total number of seconds that have been spent decoding the
framesDecoded frames of this stream.
The average decode time can be calculated by dividing this value with
framesDecoded. The time it takes to decode one frame is the time
passed between feeding the decoder a frame and the decoder returning
decoded data for that frame.
jitter_buffer_emitted_count: Option<u64>Total number of audio samples or video frames that have come out of the
jitter buffer (increasing jitterBufferDelay).
Trait Implementations§
Source§impl Clone for RtcInboundRtpStreamStats
impl Clone for RtcInboundRtpStreamStats
Source§fn clone(&self) -> RtcInboundRtpStreamStats
fn clone(&self) -> RtcInboundRtpStreamStats
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more