RTCCodecStats: channels 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 channels của từ điển RTCCodecStats là một số dương chứa số kênh được hỗ trợ bởi codec.
Với codec âm thanh, giá trị 1 cho biết âm thanh mono, còn giá trị 2 cho biết âm thanh stereo.
Giá trị
Một số dương cho biết số kênh.
Thông số kỹ thuật
| Specification |
|---|
| Identifiers for WebRTC's Statistics API> # dom-rtccodecstats-channels> |
Tương thích trình duyệt
Xem thêm
- Tùy chọn
codecs.channelstrong tham số truyền vàoRTCRtpTransceiver.setCodecPreferences()vàRTCRtpSender.setParameters(). - Thuộc tính
codecs.channelstrong đối tượng trả về bởiRTCRtpSender.getParameters()vàRTCRtpReceiver.getParameters().