EncodedAudioChunk
The EncodedAudioChunk interface of the WebCodecs API represents a chunk of encoded audio data.
Constructor
EncodedAudioChunk()-
Creates a new
EncodedAudioChunkobject.
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
| Specification |
|---|
| WebCodecs # encodedaudiochunk-interface |
Browser compatibility
BCD tables only load in the browser