Optional
Document used to create the offscreen video and canvas. Defaults to the global document.
document
JPEG/WebP quality 0–1. Defaults to 0.95.
0.95
Maximum time to wait for the first decoded frame. Defaults to SNAPSHOT_FRAME_TIMEOUT_MS.
Image MIME type. Defaults to 'image/jpeg'.
'image/jpeg'
Document used to create the offscreen video and canvas. Defaults to the global
document.