From 7490315099b55d72304cbc4583472abd88896b7c Mon Sep 17 00:00:00 2001 From: Loris Tissino Date: Sat, 26 Aug 2017 17:59:45 +0200 Subject: [PATCH] Fix: MediaStreamTrack.getSources() is deprecated; replaced with navigator.mediaDevices.enumerateDevices() --- threex.webcamgrabbing.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/threex.webcamgrabbing.js b/threex.webcamgrabbing.js index 7e8bc6a..1af58c8 100644 --- a/threex.webcamgrabbing.js +++ b/threex.webcamgrabbing.js @@ -77,7 +77,7 @@ THREEx.WebcamGrabbing = function(){ }, 500) // get the media sources - MediaStreamTrack.getSources(function(sourceInfos) { + navigator.mediaDevices.enumerateDevices().then(function(sourceInfos) { // define getUserMedia() constraints var constraints = { video: true,