EncodedAudioChunk

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

MDN Reference

Constructors

Link copied to clipboard
constructor(init: EncodedAudioChunkInit)

Properties

Link copied to clipboard

The byteLength read-only property of the EncodedAudioChunk interface returns the length in bytes of the encoded audio data.

Link copied to clipboard

The duration read-only property of the EncodedAudioChunk interface returns an integer indicating the duration of the audio in microseconds.

Link copied to clipboard

The timestamp read-only property of the EncodedAudioChunk interface returns an integer indicating the timestamp of the audio in microseconds.

Link copied to clipboard

The type read-only property of the EncodedAudioChunk interface returns a value indicating whether the audio chunk is a key chunk, which does not relying on other frames for decoding.

Functions

Link copied to clipboard

The copyTo() method of the EncodedAudioChunk interface copies the encoded chunk of audio data.