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 inDedicated Web Workers.
TheEncodedVideoChunk interface of theWebCodecs API represents a chunk of encoded video data.
In this article
Constructor
EncodedVideoChunk()Creates a new
EncodedVideoChunkobject.
Instance properties
EncodedVideoChunk.typeRead onlyReturns a string indicating whether this chunk of data is a key chunk.
EncodedVideoChunk.timestampRead onlyReturns an integer representing the timestamp of the video in microseconds.
EncodedVideoChunk.durationRead onlyReturns an integer representing the duration of the video in microseconds.
EncodedVideoChunk.byteLengthRead onlyReturns an integer representing the length of the video in bytes.
Instance methods
EncodedVideoChunk.copyTo()Copies the encoded video data.
Specifications
| Specification |
|---|
| WebCodecs> # encodedvideochunk-interface> |