EncodedVideoChunk

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

Constructor

EncodedVideoChunk()

Creates a new EncodedVideoChunk object.

Properties

EncodedVideoChunk.typeRead only

Returns a string indicating whether this chunk of data is a key chunk.

EncodedVideoChunk.timestampRead only

Returns an integer representing the timestamp of the video in microseconds.

EncodedVideoChunk.durationRead only

Returns an integer representing the duration of the video in microseconds.

EncodedVideoChunk.byteLengthRead only

Returns an integer representing the length of the video in bytes.

Methods

EncodedVideoChunk.copyTo()

Copies the encoded video data.

Specifications

Specification
WebCodecs
# encodedvideochunk-interface

Browser compatibility

BCD tables only load in the browser