export function capture({ video, canvas, }: { video: HTMLVideoElement; canvas: HTMLCanvasElement; }) { canvas .getContext("2d") ?.drawImage(video, 0, 0, video.videoWidth, video.videoHeight); }