This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2022.
The payloadType property of the RTCCodecStats dictionary is a positive integer in the range from 0 to 127 that describes the format of the RTP payload used in RTP encoding or decoding.
A positive integer between 0 and 127.
The mappings of values to formats is defined in RFC3550, and more specifically in Section 6: Payload Type Definitions of RFC3551.
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
payloadType |
80 | 80 | 98 | 67 | 13.1 | 80 | 98 | 57 | 13.4 | 13.0 | 80 | 13.4 |
payloadType returned by RTCEncodedAudioFrame.getMetadata()
payloadType returned by RTCEncodedVideoFrame.getMetadata()
codecs.payloadType option in parameter passed to RTCRtpSender.setParameters().codecs.payloadType in object returned by RTCRtpSender.getParameters() and RTCRtpReceiver.getParameters().
© 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/payloadType