AudioEncoder
The AudioEncoder
interface of the WebCodecs API encodes AudioData objects. Available only in secure contexts.
Properties
The encodeQueueSize
read-only property of the AudioEncoder interface returns the number of pending encode requests in the queue.
The state
read-only property of the AudioEncoder interface returns the current state of the underlying codec.
Functions
The configure()
method of the AudioEncoder interface enqueues a control message to configure the audio encoder for encoding chunks.
The flush()
method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed.
The flush()
method of the AudioEncoder interface returns a Promise that resolves once all pending messages in the queue have been completed.