Limited availability
Note: This feature is available in Dedicated Web Workers.
The copyTo()
method of the EncodedVideoChunk
interface copies the encoded chunk of video data.
destination
An ArrayBuffer
, a TypedArray
, or a DataView
that the data can be copied to.
None (undefined
).
In the following example an EncodedVideoChunk
is created then copied.
const init = {
type: "key",
data: videoBuffer,
timestamp: 23000000,
duration: 2000000,
};
const chunk = new EncodedVideoChunk(init);
chunk.copyTo(newBuffer);
Specifications Browser compatibility
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4