Skip to content

Commit

Permalink
Initial population render bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonmayes committed Feb 19, 2020
1 parent 4c0e530 commit 3f83f74
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions script.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 3f83f74

Please sign in to comment.