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 January 2020.

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.

Values

A positive number indicating the number of channels.

Specifications

Specification
Identifiers for WebRTC's Statistics API
# dom-rtccodecstats-channels

Browser compatibility

desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
channels in 'codec' stats

See also