RTCCodecStats:mimeType 属性
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since 2022年3月.
RTCCodecStats 字典的 mimeType 属性是一个包含编解码器的 MIME 类型和子类型的字符串。
它的格式为 "type/subtype"(如 "video/VP8" 或 "audio/opus"),就如 IANA 有效 MIME 类型注册表中定义的那样。
值
指示编解码器的 MIME 类型/子类型的字符串。
规范
| Specification |
|---|
| Identifiers for WebRTC's Statistics API> # dom-rtccodecstats-mimetype> |
浏览器兼容性
参见
codecs.mimeType选项,作为传递给RTCRtpTransceiver.setCodecPreferences()和RTCRtpSender.setParameters()的参数。codecs.mimeType,作为RTCRtpSender.getParameters()和RTCRtpReceiver.getParameters()返回的对象中的属性。