Firefox Tomorrow

web api event

AudioDecoder: dequeue event

View on MDN ↗

Secure contextAvailable in workers

The dequeue event of the AudioDecoder interface fires to signal a decrease in 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.

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

ondequeue = (event) => { }

Example

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

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.