MDN self-hosted library · e01.org

EncodedVideoChunk

WebCodecs APIwindowanddedicated

no runnable cells web-api-interface upstream source

WebCodecs APIwindow_and_dedicated

The EncodedVideoChunk interface of the represents a chunk of encoded video data.

Constructor

  • EncodedVideoChunk()
  • : Creates a new EncodedVideoChunk object.

Instance properties

  • EncodedVideoChunk.type
  • : Returns a string indicating whether this chunk of data is a key chunk.
  • EncodedVideoChunk.timestamp
  • : Returns an integer representing the timestamp of the video in microseconds.
  • EncodedVideoChunk.duration
  • : Returns an integer representing the duration of the video in microseconds.
  • EncodedVideoChunk.byteLength
  • : Returns an integer representing the length of the video in bytes.

Instance methods

  • EncodedVideoChunk.copyTo()
  • : Copies the encoded video data.

Specifications

Browser compatibility