Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The EncodedAudioChunk
interface of the WebCodecs API represents a chunk of encoded audio data.
Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.
The EncodedAudioChunk
interface of the WebCodecs API represents a chunk of encoded audio data.
EncodedAudioChunk()
Experimental
Creates a new EncodedAudioChunk
object.
EncodedAudioChunk.type
Read only Experimental
Returns a string indicating whether this chunk of data is a key chunk.
EncodedAudioChunk.timestamp
Read only Experimental
Returns an integer representing the timestamp of the audio in microseconds.
EncodedAudioChunk.duration
Read only Experimental
Returns an integer representing the duration of the audio in microseconds.
EncodedAudioChunk.byteLength
Read only Experimental
Returns an integer representing the length of the audio in bytes.
EncodedAudioChunk.copyTo()
Experimental
Copies the encoded audio data.
Specification |
---|
WebCodecs # encodedaudiochunk-interface |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Internet Explorer | Opera | Safari | WebView Android | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | |
EncodedAudioChunk |
94 | 94 | No | No | 80 | No | 94 | 94 | No | 66 | No | 17.0 |
EncodedAudioChunk |
94 | 94 | No | No | 80 | No | 94 | 94 | No | 66 | No | 17.0 |
byteLength |
94 | 94 | No | No | 80 | No | 94 | 94 | No | 66 | No | 17.0 |
copyTo |
94 | 94 | No | No | 80 | No | 94 | 94 | No | 66 | No | 17.0 |
duration |
94 | 94 | No | No | 80 | No | 94 | 94 | No | 66 | No | 17.0 |
timestamp |
94 | 94 | No | No | 80 | No | 94 | 94 | No | 66 | No | 17.0 |
type |
94 | 94 | No | No | 80 | No | 94 | 94 | No | 66 | No | 17.0 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk