copyTo method

@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,
]);