var canvas = document.querySelector("canvas"); var ctx = canvas.getContext("2d"); var video = document.getElementById("video1"); ctx.drawImage(video, 0, 0, video.width, video.height, 0, 0, canvas.width, canvas.height);
Do