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§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for RtcMediaSourceStats
impl Debug for RtcMediaSourceStats
Source§impl<'de> Deserialize<'de> for RtcMediaSourceStats
impl<'de> Deserialize<'de> for RtcMediaSourceStats
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 RtcMediaSourceStats
impl Hash for RtcMediaSourceStats
Source§impl PartialEq for RtcMediaSourceStats
impl PartialEq for RtcMediaSourceStats
Source§impl Serialize for RtcMediaSourceStats
impl Serialize for RtcMediaSourceStats
impl StructuralPartialEq for RtcMediaSourceStats
Auto Trait Implementations§
impl Freeze for RtcMediaSourceStats
impl RefUnwindSafe for RtcMediaSourceStats
impl Send for RtcMediaSourceStats
impl Sync for RtcMediaSourceStats
impl Unpin for RtcMediaSourceStats
impl UnwindSafe for RtcMediaSourceStats
Blanket Implementations§
§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
§unsafe fn clone_to_uninit(&self, dest: *mut u8)
unsafe fn clone_to_uninit(&self, dest: *mut u8)
clone_to_uninit)