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