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.
EncodedAudioChunk()Creates a new EncodedAudioChunk object.
EncodedAudioChunk.type Read only
Returns a string indicating whether this chunk of data is a key chunk.
EncodedAudioChunk.timestamp Read only
Returns an integer representing the timestamp of the audio in microseconds.
EncodedAudioChunk.duration Read only
Returns an integer representing the duration of the audio in microseconds.
EncodedAudioChunk.byteLength Read only
Returns an integer representing the length of the audio in bytes.
EncodedAudioChunk.copyTo()Copies the encoded audio data.
| Specification |
|---|
| WebCodecs> # encodedaudiochunk-interface> |
| Desktop | Mobile | |||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|
| Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | WebView on iOS | |
EncodedAudioChunk |
94 | 94 | 130 | 80 | 26 | 94 | No | 66 | 26 | 17.0 | 94 | 26 |
EncodedAudioChunk |
94 | 94 | 130 | 80 | 26 | 94 | No | 66 | 26 | 17.0 | 94 | 26 |
byteLength |
94 | 94 | 130 | 80 | 26 | 94 | No | 66 | 26 | 17.0 | 94 | 26 |
copyTo |
94 | 94 | 130 | 80 | 26 | 94 | No | 66 | 26 | 17.0 | 94 | 26 |
duration |
94 | 94 | 130 | 80 | 26 | 94 | No | 66 | 26 | 17.0 | 94 | 26 |
timestamp |
94 | 94 | 130 | 80 | 26 | 94 | No | 66 | 26 | 17.0 | 94 | 26 |
type |
94 | 94 | 130 | 80 | 26 | 94 | No | 66 | 26 | 17.0 | 94 | 26 |
© 2005–2025 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk