web api instance method
AudioDecoder: decode() method
Secure contextAvailable in workers
The decode() method of the AudioDecoder interface enqueues a control message to decode a given chunk of audio.
Syntax
decode(chunk)
Parameters
chunk- : An
EncodedAudioChunkobject representing a chunk of encoded audio.
- : An
Return value
None (undefined).
Exceptions
InvalidStateErrorDOMException- : Thrown if the
stateis not"configured".
- : Thrown if the
DataErrorDOMException- : Thrown if the
chunkis unable to be decoded due to relying on other frames for decoding.
- : Thrown if the
Specifications
SpecificationsStandards references are available on the canonical MDN page.
Browser compatibility
Browser compatibilityCompatibility data is available on the canonical MDN page.