AudioEncoder:state 属性
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
备注: 此特性在专用 Web Worker 中可用。
AudioEncoder 接口的只读属性 state 返回底层编解码器的当前状态。
值
包含以下值之一的字符串:
"unconfigured"-
编解码器未配置为解码。
"configured"-
编解码器具有有效配置且已准备就绪。
"closed"-
编解码器不再可用,系统资源已被释放。
示例
以下示例将 AudioEncoder 的状态打印到控制台。
js
console.log(AudioEncoder.state);
规范
| Specification |
|---|
| WebCodecs> # dom-audioencoder-state> |
浏览器兼容性
Loading…