EncodedAudioChunk
Limited availability
This feature is not Baseline because it does not work in some of the most widely-used browsers.
Note: This feature is available inDedicated Web Workers.
TheEncodedAudioChunk interface of theWebCodecs API represents a chunk of encoded audio data.
In this article
Constructor
EncodedAudioChunk()Creates a new
EncodedAudioChunkobject.
Instance properties
EncodedAudioChunk.typeRead onlyReturns a string indicating whether this chunk of data is a key chunk.
EncodedAudioChunk.timestampRead onlyReturns an integer representing the timestamp of the audio in microseconds.
EncodedAudioChunk.durationRead onlyReturns an integer representing the duration of the audio in microseconds.
EncodedAudioChunk.byteLengthRead onlyReturns an integer representing the length of the audio in bytes.
Instance methods
EncodedAudioChunk.copyTo()Copies the encoded audio data.
Specifications
| Specification |
|---|
| WebCodecs> # encodedaudiochunk-interface> |