Goal: verify that a playing <video> can be rendered into a <canvas> (via drawImage(video, ...)), and that the resulting canvas output is capturable (via canvas.captureStream()).
Expected behavior:
<video> fed by canvas.captureStream()) shows the same moving content.SecurityError / “tainted canvas” when sampling pixels (if you use the default CORS-friendly source, the camera, or a local file).
Autoplay mode:
add ?autoplay=1 to attempt to start playback automatically (muted). Optionally also auto-start draw/capture with
&autodraw=1 and &autocapture=1.
Use 0/false to disable.
Scripted play mode (no autoplay):
add ?scriptplay=1 to call video.play() programmatically from user gestures (Load button / file picker / “Scripted play()”)
without doing any automatic play attempts on page load.
Auto camera mode:
add ?autocamera=1 to attempt starting the camera on page load (will prompt for permission; camera playback may still be blocked by playback policies).
Presets:
?autoplay=1,
?autoplay=1&autodraw=1&autocapture=1,
?scriptplay=1,
?scriptplay=1&autodraw=1&autocapture=1,
?scriptplay=1&scriptplaymute=1&autodraw=1&autocapture=1,
?autocamera=1&autodraw=1&autocapture=1