EncodedVideoChunk

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

MDN Reference

Constructors

Link copied to clipboard
constructor(init: EncodedVideoChunkInit)

Properties

Link copied to clipboard

The byteLength read-only property of the EncodedVideoChunk interface returns the length in bytes of the encoded video data.

Link copied to clipboard

The duration read-only property of the EncodedVideoChunk interface returns an integer indicating the duration of the video in microseconds.

Link copied to clipboard

The timestamp read-only property of the EncodedVideoChunk interface returns an integer indicating the timestamp of the video in microseconds.

Link copied to clipboard

The type read-only property of the EncodedVideoChunk interface returns a value indicating whether the video chunk is a key chunk, which does not rely on other frames for decoding.

Functions

Link copied to clipboard

The copyTo() method of the EncodedVideoChunk interface copies the encoded chunk of video data.