RTCStats
The RTCStats dictionary is the basic statistics object used by WebRTC's statistics monitoring model, providing the properties required of all statistics data objects.
Specific classes of statistic are defined as dictionaries based on RTCStats. For example, statistics about a received RTP stream are represented by RTCReceivedRtpStreamStats.
Properties
id-
A
DOMStringwhich uniquely identifies the object which was inspected to produce this object based onRTCStats. timestamp-
A
DOMHighResTimeStampobject indicating the time at which the sample was taken for this statistics object. type-
A
DOMStringindicating the type of statistics the object contains, taken from the enum typeRTCStatsType.
The statistics type hierarchy
The various dictionaries that are used to define the contents of the objects that contain each of the various types of statistics for WebRTC are structured in such a way that they build upon the core RTCStats dictionary, each layer adding more relevant information.
-
RTCStatsis the foundation of all WebRTC statistics objects-
RTCRtpStreamStatsadds toRTCStatsinformation that applies to all RTP endpoints (that is, both local and remote endpoints, and regardless of whether the endpoint is a sender or a receiver)-
RTCReceivedRtpStreamStatsfurther adds statistics measured at the receiving end of an RTP stream, regardless of whether it's local or remote.-
RTCInboundRtpStreamStatscontains statistics that can only be measured on a receiver at the local end of the RTP connection. -
RTCOutboundRtpStreamStatscontains statistics related to the receiver at the remote end of the RTP stream.
-
-
RTCSentRtpStreamStatsoffers statistics related to the sending end of an RTP stream.-
RTCOutboundRtpStreamStatscontains statistics about the local sending endpoint of an RTP stream. -
RTCRemoteOutboundRtpStreamStatsholds statistics related to the remote sending end an RTP stream.
-
-
-
Specifications
No specification data found for api.RTCStats.
Check for problems with this page or contribute a missing spec_url to mdn/browser-compat-data. Also make sure the specification is included in w3c/browser-specs.
Browser compatibility
No compatibility data found for api.RTCStats.
Check for problems with this page or contribute missing data to mdn/browser-compat-data.
© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCStats