此页面由社区从英文翻译而来。了解更多并加入 MDN Web Docs 社区。

View in English Always switch to English

AudioDecoder:decodeQueueSize 属性

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

安全上下文: 此特性仅在一些支持的浏览器安全上下文(HTTPS)中可用。

备注: 此特性在专用 Web Worker 中可用。

AudioDecoder 接口的只读属性 decodeQueueSize 返回队列中待处理解码请求的数量。

包含请求数的整型。

示例

以下示例将队列的大小打印到控制台。

js
console.log(AudioDecoder.decodeQueueSize);

规范

Specification
WebCodecs
# dom-audiodecoder-decodequeuesize

浏览器兼容性