From caf539212be6d6f3b77453d5b8c9515f44aa15a4 Mon Sep 17 00:00:00 2001 From: kumailraza Date: Wed, 17 Mar 2021 15:27:08 +0500 Subject: [PATCH] fix issue #16, navigator.getUserMedia is not working --- main.js | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/main.js b/main.js index 2e645b9..252dd55 100644 --- a/main.js +++ b/main.js @@ -42,10 +42,7 @@ window.onload = function() { // Attempt to get audio input try { // monkeypatch getUserMedia - navigator.getUserMedia = - navigator.getUserMedia || - navigator.webkitGetUserMedia || - navigator.mozGetUserMedia; + navigator.getUserMedia = navigator.mediaDevices.getUserMedia; // ask for an audio input navigator.getUserMedia(