A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://developer.cdn.mozilla.net/en-US/docs/Web/API/EncodedVideoChunk/copyTo below:

EncodedVideoChunk: copyTo() method - Web APIs

EncodedVideoChunk: copyTo() method

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.

Syntax Parameters
destination

An ArrayBuffer, a TypedArray, or a DataView that the data can be copied to.

Return value

None (undefined).

Examples

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