Enum medea_client_api_proto::stats::MediaKind[][src]

pub enum MediaKind {
    Video {
        width: Option<u32>,
        height: Option<u32>,
        frames_per_second: Option<u32>,
    },
    Audio {
        audio_level: Option<Float>,
        total_audio_energy: Option<Float>,
        total_samples_duration: Option<Float>,
    },
}

RtcStat fields of RtcStatsType::MediaSource type based on its kind.

Variants

Video

Fields when kind is video.

Fields of Video

width: Option<u32>

Width (in pixels) of the last frame originating from the source. Before a frame has been produced this attribute is missing.

height: Option<u32>

Height (in pixels) of the last frame originating from the source. Before a frame has been produced this attribute is missing.

frames_per_second: Option<u32>

Number of frames originating from the source, measured during the last second. For the first second of this object’s lifetime this attribute is missing.

Audio

Fields when kind is audio.

Fields of Audio

audio_level: Option<Float>

Audio level of the media source.

total_audio_energy: Option<Float>

Audio energy of the media source.

total_samples_duration: Option<Float>

Audio duration of the media source.

Trait Implementations

impl Clone for MediaKind[src]

impl Debug for MediaKind[src]

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

impl Hash for MediaKind[src]

impl PartialEq<MediaKind> for MediaKind[src]

impl Serialize for MediaKind[src]

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