Enum medea_client_api_proto::stats::RtcOutboundRtpStreamMediaType[][src]

pub enum RtcOutboundRtpStreamMediaType {
    Audio {
        total_samples_sent: Option<u64>,
        voice_activity_flag: Option<bool>,
    },
    Video {
        frame_width: Option<u64>,
        frame_height: Option<u64>,
        frames_per_second: Option<u64>,
    },
}

RtcStat fields of RtcStatsType::OutboundRtp type based on mediaType.

Variants

Audio

Fields when mediaType is audio.

Fields of Audio

total_samples_sent: Option<u64>

Total number of samples that have been sent over this RTP stream.

voice_activity_flag: Option<bool>

Whether the last RTP packet sent contained voice activity or not based on the presence of the V bit in the extension header.

Video

Fields when mediaType is video.

Fields of Video

frame_width: Option<u64>

Width of the last encoded frame.

The resolution of the encoded frame may be lower than the media source (see RTCVideoSourceStats.width).

Before the first frame is encoded this attribute is missing.

frame_height: Option<u64>

Height of the last encoded frame.

The resolution of the encoded frame may be lower than the media source (see RTCVideoSourceStats.height).

Before the first frame is encoded this attribute is missing.

frames_per_second: Option<u64>

Number of encoded frames during the last second.

This may be lower than the media source frame rate (see RTCVideoSourceStats.framesPerSecond).

Trait Implementations

impl Clone for RtcOutboundRtpStreamMediaType[src]

impl Copy for RtcOutboundRtpStreamMediaType[src]

impl Debug for RtcOutboundRtpStreamMediaType[src]

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

impl Eq for RtcOutboundRtpStreamMediaType[src]

impl Hash for RtcOutboundRtpStreamMediaType[src]

impl PartialEq<RtcOutboundRtpStreamMediaType> for RtcOutboundRtpStreamMediaType[src]

impl Serialize for RtcOutboundRtpStreamMediaType[src]

impl StructuralEq for RtcOutboundRtpStreamMediaType[src]

impl StructuralPartialEq for RtcOutboundRtpStreamMediaType[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.