AudioDecoder: dequeue event
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Note: This feature is available in Dedicated Web Workers.
The dequeue
event of the AudioDecoder
interface fires to signal a decrease in AudioDecoder.decodeQueueSize
.
This eliminates the need for developers to use a setTimeout()
poll to determine when the queue has decreased, and more work should be queued up.
Syntax
Use the event name in methods like addEventListener()
, or set an event handler property.
js
addEventListener("dequeue", (event) => {});
ondequeue = (event) => {};
Example
js
audioDecoder.addEventListener("dequeue", (event) => {
// Queue up more decoding work
});
Specifications
Specification |
---|
WebCodecs # eventdef-audiodecoder-dequeue |
Browser compatibility
Report problems with this compatibility data on GitHubdesktop | mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
dequeue event |
Legend
Tip: you can click/tap on a cell for more information.
- Full support
- Full support
- No support
- No support
The compatibility table on this page is generated from structured data. If you'd like to contribute to the data, please check out https://github.com/mdn/browser-compat-data and send us a pull request.