EncodedVideoChunk

Experimental: This is an experimental technology
Check the Browser compatibility table carefully before using this in production.

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

Constructor

EncodedVideoChunk() Experimental

Creates a new EncodedVideoChunk object.

Properties

EncodedVideoChunk.type Read only Experimental

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

EncodedVideoChunk.timestamp Read only Experimental

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

EncodedVideoChunk.duration Read only Experimental

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

EncodedVideoChunk.byteLength Read only Experimental

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

Methods

EncodedVideoChunk.copyTo() Experimental

Copies the encoded video data.

Specifications

Specification
WebCodecs
# encodedvideochunk-interface

Browser compatibility

BCD tables only load in the browser