pub struct RtcMediaSourceStats {
pub track_identifier: Option<String>,
pub kind: MediaSourceKind,
}Expand description
Statistics of a track that is currently attached to one or more senders.
It contains information about media sources such as frame rate and
resolution prior to encoding. This is the media passed from the
MediaStreamTrack to the RTCRtpSenders. This is in contrast to
RtcOutboundRtpStreamStats whose members describe metrics as measured
after the encoding step. For example, a track may be captured from a
high-resolution camera, its frames downscaled due to track constraints and
then further downscaled by the encoders due to CPU and network conditions.
This dictionary reflects the video frames or audio samples passed out from
the track - after track constraints have been applied but before any
encoding or further downsampling occurs.
Fields§
§track_identifier: Option<String>id attribute value of the MediaStreamTrack.
kind: MediaSourceKindFields which should be in the RtcStat based on its kind.
Trait Implementations§
Source§impl Clone for RtcMediaSourceStats
impl Clone for RtcMediaSourceStats
Source§fn clone(&self) -> RtcMediaSourceStats
fn clone(&self) -> RtcMediaSourceStats
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more