Back to Content

AudioDecoder: decodeQueueSize property

files/en-us/web/api/audiodecoder/decodequeuesize/index.md

latest517 B
Original Source

{{securecontext_header}}{{APIRef("WebCodecs API")}}{{AvailableInWorkers("window_and_dedicated")}}

The decodeQueueSize read-only property of the {{domxref("AudioDecoder")}} interface returns the number of pending decode requests in the queue.

Value

An integer containing the number of requests.

Examples

The following example prints the size of the queue to the console.

js
console.log(AudioDecoder.decodeQueueSize);

Specifications

{{Specifications}}

Browser compatibility

{{Compat}}