GO-Ve01
ServicesDevelopersBooksDictionaryPapersWikidataEncyclopediaSearchBabelCareersDeck

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 VideoDecoder: dequeue event.

Developer library 3

VideoDecoder

WebCodecs APIwindow_and_dedicated The **`VideoDecoder`** interface of the decodes chunks of video. ## Constructor - VideoDecoder() - : Creates a new `VideoDecoder` object. ## Instance properties _Inherits properties from its parent, EventTarget._ - VideoDecoder.decodeQueueSize - : An integer representing the number of queued decode requests. - VideoDecoder.state - : Indicates the current state of dec

MDN Web Docs mirror · CC BY-SA 2.5 (MDN) · https://developer.mozilla.org/en-US/docs/Web/API/VideoDecoder

VideoDecoder: dequeue event

WebCodecs APIwindow_and_dedicated The **`dequeue`** event of the VideoDecoder interface fires to signal a decrease in VideoDecoder.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 addEventListener(): ```js-nolint addEventListener("dequeue", (event) => { }) ``` Alternat

Using the WebCodecs API

and configure a new encoder } encoder.encode(frame, { keyFrame: true }); ``` ## Decoding video Likewise, for decoding video, you start by instantiating the VideoDecoder with the `output` and `error` callback functions, where the `output` callback receives `VideoFrame` objects returned by the decoder. ```js const decoder = new VideoDecoder({ output(frame) { // Do something with the VideoFrame }, error(e

JSON results · Services directory