Firefox Tomorrow

web api event

VideoDecoder: dequeue event

View on MDN ↗

Secure contextAvailable in workers

The dequeue event of the VideoDecoder 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

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

Specifications

SpecificationsStandards references are available on the canonical MDN page.

Browser compatibility

Browser compatibilityCompatibility data is available on the canonical MDN page.