copyTo

inline suspend fun VideoFrame.copyTo(    destination: AllowSharedBufferSource,     options: VideoFrameCopyToOptions): ReadonlyArray<PlaneLayout>(source)

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

MDN Reference