Note: This feature is available in Dedicated Web Workers.
The EncodedVideoChunk
interface of the WebCodecs API represents a chunk of encoded video data.
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.
EncodedVideoChunk()
Creates a new EncodedVideoChunk
object.
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.
EncodedVideoChunk.copyTo()
Copies the encoded video data.
Specification |
---|
WebCodecs # encodedvideochunk-interface |
Desktop | Mobile | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|
Chrome | Edge | Firefox | Opera | Safari | Chrome Android | Firefox for Android | Opera Android | Safari on IOS | Samsung Internet | WebView Android | ||
EncodedVideoChunk |
94 | 94 | previewOnly supported on Linux, see bug 1749047. |
80 | 16.4 | 94 | NoOnly supported on Linux, see bug 1749047. |
66 | 16.4 | 17.0 | 94 | |
EncodedVideoChunk |
94 | 94 | previewOnly supported on Linux, see bug 1749047. |
80 | 16.4 | 94 | NoOnly supported on Linux, see bug 1749047. |
66 | 16.4 | 17.0 | 94 | |
byteLength |
94 | 94 | previewOnly supported on Linux, see bug 1749047. |
80 | 16.4 | 94 | NoOnly supported on Linux, see bug 1749047. |
66 | 16.4 | 17.0 | 94 | |
copyTo |
94 | 94 | previewOnly supported on Linux, see bug 1749047. |
80 | 16.4 | 94 | NoOnly supported on Linux, see bug 1749047. |
66 | 16.4 | 17.0 | 94 | |
duration |
94 | 94 | previewOnly supported on Linux, see bug 1749047. |
80 | 16.4 | 94 | NoOnly supported on Linux, see bug 1749047. |
66 | 16.4 | 17.0 | 94 | |
timestamp |
94 | 94 | previewOnly supported on Linux, see bug 1749047. |
80 | 16.4 | 94 | NoOnly supported on Linux, see bug 1749047. |
66 | 16.4 | 17.0 | 94 | |
type |
94 | 94 | previewOnly supported on Linux, see bug 1749047. |
80 | 16.4 | 94 | NoOnly supported on Linux, see bug 1749047. |
66 | 16.4 | 17.0 | 94 |
© 2005–2023 MDN contributors.
Licensed under the Creative Commons Attribution-ShareAlike License v2.5 or later.
https://developer.mozilla.org/en-US/docs/Web/API/EncodedVideoChunk