RTCCodecStats: type property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2022.
Thetype property of theRTCCodecStats dictionary is a string with the value"codec".
Different statistics are obtained by iterating theRTCStatsReport object returned by a call toRTCPeerConnection.getStats().The type indicates the set of statistics available through the object in a particular iteration step.A value of"codec" indicates that the statistics available in the current step are those defined inRTCCodecStats.
In this article
Value
A string with the value"codec".
Specifications
| Specification |
|---|
| Identifiers for WebRTC's Statistics API> # dom-rtcstats-type> |