Enum medea_client_api_proto::stats::RtcInboundRtpStreamMediaType[][src]

pub enum RtcInboundRtpStreamMediaType {
    Audio {
        voice_activity_flag: Option<bool>,
        total_samples_received: Option<u64>,
        concealed_samples: Option<u64>,
        silent_concealed_samples: Option<u64>,
        audio_level: Option<Float>,
        total_audio_energy: Option<Float>,
        total_samples_duration: Option<HighResTimeStamp>,
    },
    Video {
        frames_decoded: Option<u64>,
        key_frames_decoded: Option<u64>,
        frame_width: Option<u64>,
        frame_height: Option<u64>,
        total_inter_frame_delay: Option<Float>,
        frames_per_second: Option<u64>,
        frame_bit_depth: Option<u64>,
        fir_count: Option<u64>,
        pli_count: Option<u64>,
        sli_count: Option<u64>,
        concealment_events: Option<u64>,
        frames_received: Option<u64>,
    },
}

Fields of RtcStatsType::InboundRtp variant.

Variants

Audio

Fields when mediaType is audio.

Fields of Audio

voice_activity_flag: Option<bool>

Indicator whether the last RTP packet whose frame was delivered to the RTCRtpReceiver’s MediaStreamTrack for playout contained voice activity or not based on the presence of the V bit in the extension header, as defined in RFC 6464.

total_samples_received: Option<u64>

Total number of samples that have been received on this RTP stream. This includes concealedSamples.

concealed_samples: Option<u64>

Total number of samples that are concealed samples.

A concealed sample is a sample that was replaced with synthesized samples generated locally before being played out. Examples of samples that have to be concealed are samples from lost packets (reported in packetsLost) or samples from packets that arrive too late to be played out (reported in packetsDiscarded).

silent_concealed_samples: Option<u64>

Total number of concealed samples inserted that are “silent”.

Playing out silent samples results in silence or comfort noise. This is a subset of concealedSamples.

audio_level: Option<Float>

Audio level of the receiving track.

total_audio_energy: Option<Float>

Audio energy of the receiving track.

total_samples_duration: Option<HighResTimeStamp>

Audio duration of the receiving track.

For audio durations of tracks attached locally, see RTCAudioSourceStats instead.

Video

Fields when mediaType is video.

Fields of Video

frames_decoded: Option<u64>

Total number of frames correctly decoded for this RTP stream, i.e. frames that would be displayed if no frames are dropped.

key_frames_decoded: Option<u64>

Total number of key frames, such as key frames in VP8 RFC 6386 or IDR-frames in H.264 RFC 6184, successfully decoded for this RTP media stream.

This is a subset of framesDecoded. framesDecoded - keyFramesDecoded gives you the number of delta frames decoded.

frame_width: Option<u64>

Width of the last decoded frame.

Before the first frame is decoded this attribute is missing.

frame_height: Option<u64>

Height of the last decoded frame.

Before the first frame is decoded this attribute is missing.

total_inter_frame_delay: Option<Float>

Sum of the interframe delays in seconds between consecutively decoded frames, recorded just after a frame has been decoded.

frames_per_second: Option<u64>

Number of decoded frames in the last second.

frame_bit_depth: Option<u64>

Bit depth per pixel of the last decoded frame.

Typical values are 24, 30, or 36 bits. Before the first frame is decoded this attribute is missing.

fir_count: Option<u64>

Total number of Full Intra Request (FIR) packets sent by this receiver.

pli_count: Option<u64>

Total number of Picture Loss Indication (PLI) packets sent by this receiver.

sli_count: Option<u64>

Total number of Slice Loss Indication (SLI) packets sent by this receiver.

concealment_events: Option<u64>

Number of concealment events.

This counter increases every time a concealed sample is synthesized after a non-concealed sample. That is, multiple consecutive concealed samples will increase the concealedSamples count multiple times but is a single concealment event.

frames_received: Option<u64>

Total number of complete frames received on this RTP stream.

This metric is incremented when the complete frame is received.

Trait Implementations

impl Clone for RtcInboundRtpStreamMediaType[src]

impl Debug for RtcInboundRtpStreamMediaType[src]

impl<'de> Deserialize<'de> for RtcInboundRtpStreamMediaType[src]

impl Hash for RtcInboundRtpStreamMediaType[src]

impl PartialEq<RtcInboundRtpStreamMediaType> for RtcInboundRtpStreamMediaType[src]

impl Serialize for RtcInboundRtpStreamMediaType[src]

impl StructuralPartialEq for RtcInboundRtpStreamMediaType[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.