EncodedVideoChunk

Limited availability

This feature is not Baseline because it does not work in some of the most widely-used browsers.

Note: This feature is available in Dedicated Web Workers.

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

Constructor

EncodedVideoChunk()

Creates a new EncodedVideoChunk object.

Instance properties

EncodedVideoChunk.type Read only

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

EncodedVideoChunk.timestamp Read only

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

EncodedVideoChunk.duration Read only

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

EncodedVideoChunk.byteLength Read only

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

Instance methods

EncodedVideoChunk.copyTo()

Copies the encoded video data.

Specifications

Specification
WebCodecs
# encodedvideochunk-interface

Browser compatibility

Report problems with this compatibility data on GitHub
desktopmobile
Chrome
Edge
Firefox
Opera
Safari
Chrome Android
Firefox for Android
Opera Android
Safari on iOS
Samsung Internet
WebView Android
WebView on iOS
EncodedVideoChunk
EncodedVideoChunk() constructor
byteLength
copyTo
duration
timestamp
type

Legend

Tip: you can click/tap on a cell for more information.

Full support
Full support
No support
No support