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 of RFC3551.
Specifications
Browser compatibility
See also
payloadTypereturned byRTCEncodedAudioFrame.getMetadata()payloadTypereturned byRTCEncodedVideoFrame.getMetadata()codecs.payloadTypeoption in parameter passed toRTCRtpSender.setParameters().codecs.payloadTypein object returned byRTCRtpSender.getParameters()andRTCRtpReceiver.getParameters().
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
