RTCCodecStats: payloadType property
Baseline Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since January 2020.
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 of RFC3551.
Specifications
Specification |
---|
Identifiers for WebRTC's Statistics API # dom-rtccodecstats-payloadtype |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
payloadType in 'codec' stats |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.
See also
payloadType
returned byRTCEncodedAudioFrame.getMetadata()
payloadType
returned byRTCEncodedVideoFrame.getMetadata()
codecs.payloadType
option in parameter passed toRTCRtpSender.setParameters()
.codecs.payloadType
in object returned byRTCRtpSender.getParameters()
andRTCRtpReceiver.getParameters()
.