RTCCodecStats: payloadType property
WebRTC
WebRTC
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.
## Value
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](https://www.rfc-editor.org/info/rfc3551/#section-6) of RFC3551.
## Specifications
## Browser compatibility
## See also
- `payloadType` returned by [`RTCEncodedAudioFrame.getMetadata()`](/docs/Web/API/RTCEncodedAudioFrame/getMetadata#payloadtype)
- `payloadType` returned by [`RTCEncodedVideoFrame.getMetadata()`](/docs/Web/API/RTCEncodedVideoFrame/getMetadata#payloadtype)
- `codecs.payloadType` option in parameter passed to [`RTCRtpSender.setParameters()`](/docs/Web/API/RTCRtpSender/setParameters#payloadtype).
- `codecs.payloadType` in object returned by [`RTCRtpSender.getParameters()`](/docs/Web/API/RTCRtpSender/getParameters#payloadtype) and [`RTCRtpReceiver.getParameters()`](/docs/Web/API/RTCRtpReceiver/getParameters#payloadtype).
Cite this
"RTCCodecStats: payloadType property". MDN Web Docs. CC BY-SA 2.5 (MDN). https://developer.mozilla.org/en-US/docs/Web/API/RTCCodecStats/payloadType JSON record · API collection · BibTeX · RIS · CSL-JSON · citation policy