Get to know MDN better
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Secure context: This feature is available only in secure contexts (HTTPS), in some or all supporting browsers.
Note: This feature is available in Dedicated Web Workers.
The VideoDecoder() constructor creates a new VideoDecoder object with the provided init.output callback assigned as the output callback, the provided init.error callback as the error callback, and the VideoDecoder.state set to "unconfigured".
An object containing two callbacks.
outputA callback which takes a VideoFrame object as its only argument.
errorA callback which takes an Error object as its only argument.
In the following example a VideoDecoder is created with the two required callback functions, one to deal with the decoded frame and the other to handle errors.
| WebCodecs # dom-videodecoder-videodecoder |
Enable JavaScript to view this browser compatibility table.
This page was last modified on May 8, 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.