Note: This feature is available in Dedicated Web Workers.
The EncodedAudioChunk interface of the WebCodecs API represents a chunk of encoded audio data.
EncodedAudioChunk()Creates a new EncodedAudioChunk object.
EncodedAudioChunk.type Read onlyReturns a string indicating whether this chunk of data is a key chunk.
EncodedAudioChunk.timestamp Read onlyReturns an integer representing the timestamp of the audio in microseconds.
EncodedAudioChunk.duration Read onlyReturns an integer representing the duration of the audio in microseconds.
EncodedAudioChunk.byteLength Read onlyReturns an integer representing the length of the audio in bytes.
EncodedAudioChunk.copyTo()Copies the encoded audio data.