Firefox Tomorrow

web api interface

EncodedAudioChunk

View on MDN ↗

Available in workers

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

Constructor

Instance properties

  • type Read only
    • : Returns a string indicating whether this chunk of data is a key chunk.
  • timestamp Read only
    • : Returns an integer representing the timestamp of the audio in microseconds.
  • duration Read only
    • : Returns an integer representing the duration of the audio in microseconds.
  • byteLength Read 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.