The channels
property of the RTCCodecStats
dictionary is a positive number containing the number of channels supported by the codec.
For audio codecs, a value of 1 specifies monaural sound while 2 indicates stereo.
The channels
property of the RTCCodecStats
dictionary is a positive number containing the number of channels supported by the codec.
For audio codecs, a value of 1 specifies monaural sound while 2 indicates stereo.
A positive number indicating the number of channels.
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | ||
channels |
83 | 83 | 98 | 69 | 14.1 | 83 | 98 | 59 | 14.5 | 13.0 | 83 |
codecs.channels
option in parameter passed to RTCRtpTransceiver.setCodecPreferences()
and RTCRtpSender.setParameters()
.codecs.channels
in object returned by RTCRtpSender.getParameters()
and RTCRtpReceiver.getParameters()
.
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/RTCCodecStats/channels