Get to know MDN better
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Note: This feature is available in Dedicated Web Workers.
The EncodedAudioChunk interface of the WebCodecs API represents a chunk of encoded audio data.
Creates a new EncodedAudioChunk object.
Returns 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.
Copies the encoded audio data.
| WebCodecs # encodedaudiochunk-interface |
Enable JavaScript to view this browser compatibility table.
This page was last modified on Sep 11, 2024 by MDN contributors.
Your blueprint for a better internet.
Visit Mozilla Corporation’s not-for-profit parent, the Mozilla Foundation.
Portions of this content are ©1998–2026 by individual mozilla.org contributors. Content available under a Creative Commons license.