Firefox Tomorrow

web api event

VideoEncoder: dequeue event

View on MDN ↗

Secure contextAvailable in workers

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

videoEncoder.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.