From 3f83f74c3e029e108776b932ee13b2e74c3c1b12 Mon Sep 17 00:00:00 2001 From: Jason Mayes Date: Tue, 18 Feb 2020 21:34:56 -0800 Subject: [PATCH] Initial population render bug fix --- script.js | 2 ++ 1 file changed, 2 insertions(+) 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;