pub struct RtpContributingSourceStats {
pub contributor_ssrc: Option<u32>,
pub inbound_rtp_stream_id: Option<String>,
pub packets_contributed_to: Option<u64>,
pub audio_level: Option<Float>,
}Expand description
Statistics for a contributing source (CSRC) that contributed to an inbound RTP stream.
RtcStatsType::Csrc variant.
Fields§
§contributor_ssrc: Option<u32>SSRC identifier of the contributing source represented by the stats object, as defined by RFC 3550. It is a 32-bit unsigned integer that appears in the CSRC list of any packets the relevant source contributed to.
inbound_rtp_stream_id: Option<String>ID of the RTCInboundRtpStreamStats object representing the inbound RTP stream that this contributing source is contributing to.
packets_contributed_to: Option<u64>Total number of RTP packets that this contributing source contributed to.
This value is incremented each time a packet is counted by
RTCInboundRtpStreamStats.packetsReceived, and the packet’s CSRC
list (as defined by Section 5.1 in RFC 3550) contains the SSRC
identifier of this contributing source, contributorSsrc.
audio_level: Option<Float>Present if the last received RTP packet that this source contributed to contained an RFC 6465 mixer-to-client audio level header extension.
The value of audioLevel is between 0..1 (linear), where 1.0
represents 0 dBov, 0 represents silence, and 0.5 represents
approximately 6 dBSPL change in the sound pressure level from 0
dBov. The RFC 6465 header extension contains values in the range
0..127, in units of -dBov, where 127 represents silence. To
convert these values to the linear 0..1 range of audioLevel, a
value of 127 is converted to 0, and all other values are
converted using the equation:
f(rfc6465_level) = 10^(-rfc6465_level/20)
Trait Implementations§
source§impl Clone for RtpContributingSourceStats
impl Clone for RtpContributingSourceStats
source§fn clone(&self) -> RtpContributingSourceStats
fn clone(&self) -> RtpContributingSourceStats
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for RtpContributingSourceStats
impl Debug for RtpContributingSourceStats
source§impl<'de> Deserialize<'de> for RtpContributingSourceStats
impl<'de> Deserialize<'de> for RtpContributingSourceStats
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 RtpContributingSourceStats
impl Hash for RtpContributingSourceStats
impl StructuralPartialEq for RtpContributingSourceStats
Auto Trait Implementations§
impl Freeze for RtpContributingSourceStats
impl RefUnwindSafe for RtpContributingSourceStats
impl Send for RtpContributingSourceStats
impl Sync for RtpContributingSourceStats
impl Unpin for RtpContributingSourceStats
impl UnwindSafe for RtpContributingSourceStats
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
source§default unsafe fn clone_to_uninit(&self, dst: *mut T)
default unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit)