RTCCodecStats: mimeType property
Baseline
Widely available
This feature is well established and works across many devices and browser versions. It’s been available across browsers since March 2022.
Thuộc tính mimeType của từ điển RTCCodecStats là một chuỗi chứa MIME type và subtype của codec.
Chuỗi này có dạng "type/subtype", chẳng hạn như "video/VP8" hoặc "audio/opus", theo định nghĩa trong registry IANA của các MIME type hợp lệ.
Giá trị
Một chuỗi cho biết MIME type/subtype của codec.
Thông số kỹ thuật
| Specification |
|---|
| Identifiers for WebRTC's Statistics API> # dom-rtccodecstats-mimetype> |
Tương thích trình duyệt
Xem thêm
- Tùy chọn
codecs.mimeTypetrong tham số truyền vàoRTCRtpTransceiver.setCodecPreferences()vàRTCRtpSender.setParameters(). - Thuộc tính
codecs.mimeTypetrong đối tượng trả về bởiRTCRtpSender.getParameters()vàRTCRtpReceiver.getParameters().