diff --git a/script.js b/script.js index 2f06043..ab04fed 100644 --- a/script.js +++ b/script.js @@ -216,6 +216,8 @@ function enableCam(event) { webcamCanvas.height = video.videoHeight; videoRenderCanvas.width = video.videoWidth; videoRenderCanvas.height = video.videoHeight; + let webcamCanvasCtx = webcamCanvas.getContext('2d'); + webcamCanvasCtx.drawImage(video, 0, 0); }); video.srcObject = stream;