Search e01
One query across the encyclopedia, books, dictionary, papers, Wikidata and the developer library. Every hit carries its source.
3 results across 6 corpora for VideoEncoder: dequeue event.
Developer library 3
VideoEncoder
WebCodecs APIwindow_and_dedicated The **`VideoEncoder`** interface of the encodes VideoFrame objects into EncodedVideoChunks. ## Constructor - VideoEncoder() - : Creates a new `VideoEncoder` object. ## Instance properties _Inherits properties from its parent, EventTarget._ - VideoEncoder.encodeQueueSize - : An integer representing the number of encode queue requests. - VideoEncoder.state - : Represen
VideoEncoder: dequeue event
WebCodecs APIwindow_and_dedicated The **`dequeue`** event of the VideoEncoder interface fires to signal a decrease in VideoEncoder.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 addEventListener(): ```js-nolint addEventListener("dequeue", (event) => { }) ``` Alternat
Using the WebCodecs API
Codecs API, including how to encode and decode video and audio, as well as how to use VideoFrame and AudioData. ## Encoding video The basic usage pattern for VideoEncoder starts with instantiation, where you define the `output` and `error` callback functions. The `output` callback receives an `EncodedVideoChunk` and a `metadata` parameter — an `EncodedVideoChunkMetadata` dictionary which contains an optional [decod