VideoDecoder
The VideoDecoder
interface of the WebCodecs API decodes chunks of video. Available only in secure contexts.
Properties
The decodeQueueSize
read-only property of the VideoDecoder interface returns the number of pending decode requests in the queue.
The state
property of the VideoDecoder interface returns the current state of the underlying codec.
Functions
The configure()
method of the VideoDecoder interface enqueues a control message to configure the video decoder for decoding chunks.
The decode()
method of the VideoDecoder interface enqueues a control message to decode a given chunk of video.
The flush()
method of the VideoDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
The flush()
method of the VideoDecoder interface returns a Promise that resolves once all pending messages in the queue have been completed.