EncodedAudioChunk

The EncodedAudioChunk interface of the WebCodecs API represents a chunk of encoded audio data.

Constructor

EncodedAudioChunk.EncodedAudioChunk()

Creates a new EncodedAudioChunk object.

Properties

EncodedAudioChunk.typeRead only

Returns a string indicating whether this chunk of data is a key chunk.

EncodedAudioChunk.timestampRead only

Returns an integer representing the timestamp of the audio in microseconds.

EncodedAudioChunk.durationRead only

Returns an integer representing the duration of the audio in microseconds.

EncodedAudioChunk.byteLengthRead only

Returns an integer representing the length of the audio in bytes.

Methods

EncodedAudioChunk.copyTo()

Copies the encoded audio data.

Specifications

Browser compatibility

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
No
No
No
EncodedAudioChunk
94
94
No
No
80
No
94
94
No
No
No
No
byteLength
94
94
No
No
80
No
94
94
No
No
No
No
copyTo
94
94
No
No
80
No
94
94
No
No
No
No
duration
94
94
No
No
80
No
94
94
No
No
No
No
timestamp
94
94
No
No
80
No
94
94
No
No
No
No
type
94
94
No
No
80
No
94
94
No
No
No
No

© 2005–2021 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/EncodedAudioChunk