web api interface
EncodedAudioChunk
Available in workers
The EncodedAudioChunk interface of the WebCodecs API represents a chunk of encoded audio data.
Constructor
EncodedAudioChunk()- : Creates a new
EncodedAudioChunkobject.
- : Creates a new
Instance properties
typeRead only- : Returns a string indicating whether this chunk of data is a key chunk.
timestampRead only- : Returns an integer representing the timestamp of the audio in microseconds.
durationRead only- : Returns an integer representing the duration of the audio in microseconds.
byteLengthRead only- : Returns an integer representing the length of the audio in bytes.
Instance methods
copyTo()- : Copies the encoded audio data.
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.