This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2022.
The type property of the RTCCodecStats dictionary is a string with the value "codec".
Different statistics are obtained by iterating the RTCStatsReport object returned by a call to RTCPeerConnection.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 in RTCCodecStats.
A string with the value "codec".
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
type |
80 | 80 | 98 | 67 | 13.1 | 80 | 98 | 57 | 13.4 | 13.0 | 80 | 13.4 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCCodecStats/type