copyTo method

JSPromise<JSArray<PlaneLayout>> copyTo(
  1. AllowSharedBufferSource destination, [
  2. VideoFrameCopyToOptions options
])

@AvailableInWorkers("window_and_dedicated")

The copyTo() method of the VideoFrame interface copies the contents of the VideoFrame to an ArrayBuffer.

Implementation

external JSPromise<JSArray<PlaneLayout>> copyTo(
  AllowSharedBufferSource destination, [
  VideoFrameCopyToOptions options,
]);