From dfdd3da94b5953aee781fb4a1f6d8150f9890e80 Mon Sep 17 00:00:00 2001 From: YoniW Date: Tue, 19 May 2020 15:10:34 +0300 Subject: [PATCH] update the jquery cdn and fixed the video.src to srcObject --- app.html | 2 +- js/app.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/app.html b/app.html index 898875d..95332c8 100644 --- a/app.html +++ b/app.html @@ -70,7 +70,7 @@ - + diff --git a/js/app.js b/js/app.js index fe80532..d8b0eba 100644 --- a/js/app.js +++ b/js/app.js @@ -70,7 +70,7 @@ if (navigator.getUserMedia) { navigator.getUserMedia({audio: true, video: true}, function (stream) { - video.src = stream; + video.srcObject = stream; initialize(); }, webcamError); } else if (navigator.webkitGetUserMedia) {