EncodedAudioChunk
MDN Web Docs · نسخهٔ df622a2a1c1e · CC BY-SA 2.5 و مجوز جداگانهٔ ناشر برای نمونهکد
{{APIRef("WebCodecs API")}}{{AvailableInWorkers("window_and_dedicated")}}
The **EncodedAudioChunk** interface of the {{domxref('WebCodecs API','','',' ')}} represents a chunk of encoded audio data.
Constructor
- {{domxref("EncodedAudioChunk.EncodedAudioChunk", "EncodedAudioChunk()")}}
- : Creates a new
EncodedAudioChunkobject.
Instance properties
- {{domxref("EncodedAudioChunk.type")}} {{ReadOnlyInline}}
- : Returns a string indicating whether this chunk of data is a key chunk.
- {{domxref("EncodedAudioChunk.timestamp")}} {{ReadOnlyInline}}
- : Returns an integer representing the timestamp of the audio in microseconds.
- {{domxref("EncodedAudioChunk.duration")}} {{ReadOnlyInline}}
- : Returns an integer representing the duration of the audio in microseconds.
- {{domxref("EncodedAudioChunk.byteLength")}} {{ReadOnlyInline}}
- : Returns an integer representing the length of the audio in bytes.
Instance methods
- {{domxref("EncodedAudioChunk.copyTo()")}}
- : Copies the encoded audio data.
Specifications
{{Specifications}}
Browser compatibility
{{Compat}}