Note: This feature is available in Dedicated Web Workers.
The EncodedVideoChunk interface of the WebCodecs API represents a chunk of encoded video data.
EncodedVideoChunk()Creates a new EncodedVideoChunk object.
EncodedVideoChunk.type Read onlyReturns a string indicating whether this chunk of data is a key chunk.
EncodedVideoChunk.timestamp Read onlyReturns an integer representing the timestamp of the video in microseconds.
EncodedVideoChunk.duration Read onlyReturns an integer representing the duration of the video in microseconds.
EncodedVideoChunk.byteLength Read onlyReturns an integer representing the length of the video in bytes.
EncodedVideoChunk.copyTo()Copies the encoded video data.