AudioData:numberOfChannels 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
备注: 此特性在专用 Web Worker 中可用。
AudioData
接口的只读属性 numberOfChannels
返回 AudioData
对象中的通道数量。
值
整型。
示例
以下示例将 numberOfChannels
的值打印到控制台。
js
console.log(AudioData.numberOfChannels);
规范
Specification |
---|
WebCodecs> # dom-audiodata-numberofchannels> |
浏览器兼容性
Loading…