WebCodecs APIwindow_and_dedicated
The VideoDecoder interface of the WebCodecs API decodes chunks of video.
Constructor
- VideoDecoder.VideoDecoder
- : Creates a new
VideoDecoderobject.
- : Creates a new
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 decoder. Possible values are:
"unconfigured""configured""closed"
- : Indicates the current state of decoder. Possible values are:
Static methods
- VideoDecoder.isConfigSupported_static
- : Returns a promise indicating whether the provided
VideoDecoderConfigis supported.
- : Returns a promise indicating whether the provided
Instance methods
Inherits methods from its parent, EventTarget.
- VideoDecoder.configure()
- : Enqueues a control message to configure the video decoder for decoding chunks.
- VideoDecoder.decode()
- : Enqueues a control message to decode a given chunk of video.
- VideoDecoder.flush()
- : Returns a promise that resolves once all pending messages in the queue have been completed.
- VideoDecoder.reset()
- : Resets all states including configuration, control messages in the control message queue, and all pending callbacks.
- VideoDecoder.close()
- : Ends all pending work and releases system resources.
Events
- VideoDecoder.dequeue_event
- : Fires to signal a decrease in VideoDecoder.decodeQueueSize.
Specifications
Browser compatibility
See also
来源:MDN Web Docs / Mozilla 贡献者 · 作者与贡献记录 · CC BY-SA 2.5。离线整理了版式、链接和媒体显示。
