This feature tracks adding a single event named "dequeue" and event handler to the audio and video encoder and decoder interfaces (e.g. AudioDecoder.ondequeue).
Authors initially queue up encoding or decoding work by calling encode() or decode() respectively. The new "dequeue" event is fired to indicate when the underlying codec has ingested some/all of the queued work. The decrease in the queue size is already reflected by a lower value of encoder.encodeQueueSize and decoder.decodeQueueSize attributes. The new event eliminates the need for authors to setTimeout() poll to determine when the queue has decreased (i.e. when they should queue up more work).
See mentions of "dequeue" in the WebCodecs specification https://w3c.github.io/webcodecs/#audiodecoder-event-summary
Low risk. At present Chromium is the only implementer of WebCodecs generally. This is a minor addition to WebCodecs APIs that should be straightforward for future implementers to incorporate. The spec change to add this event was approved by representatives from Edge and Firefox. https://github.com/w3c/webcodecs/pull/439
No risks
No risks
No risks
No risks.
The event may be debugged in typical fashion by setting breakpoints or logging in the event handler.
No dependencies.
105
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CALG6eSrkzPiW8tconoPnduyaY%3DZSPHSFE6djL6kcDWHsk%3DtnrA%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAARdPYeFcMV%3D2MQeCipAvYmZJZgg2nNk1Ytpavyks0qrPjKYWQ%40mail.gmail.com.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/CAKXHy%3DfeuHseTot1D8_qt7_M7iFPtL9yNKELb3vVHfAdZqhLhQ%40mail.gmail.com.
--
You received this message because you are subscribed to the Google Groups "blink-dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email to blink-dev+...@chromium.org.
To view this discussion on the web visit https://groups.google.com/a/chromium.org/d/msgid/blink-dev/fb3bfe38-f41a-49c2-af31-e17de1a1ca86n%40chromium.org.