W3cubDocs

/Web APIs

AudioEncoder: 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 AudioEncoder interface fires to signal a decrease in AudioEncoder.encodeQueueSize.

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.

addEventListener("dequeue", (event) => { })

ondequeue = (event) => { }

Example

audioEncoder.addEventListener("dequeue", (event) => {
  // Queue up more encoding work
});

Specifications

Browser compatibility

Desktop Mobile
Chrome Edge Firefox Opera Safari Chrome Android Firefox for Android Opera Android Safari on IOS Samsung Internet WebView Android WebView on iOS
dequeue_event 106 106 130 92 26 106 No 72 26 20.0 106 26

© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/AudioEncoder/dequeue_event