From 1142e7ac47c61dc77eb1cd58697b0fb344688d10 Mon Sep 17 00:00:00 2001 From: Adrian Pascu <1521321+adipascu@users.noreply.github.com> Date: Sat, 28 Sep 2019 13:20:04 +0300 Subject: [PATCH] Remove usage of deprecated mozilla api This API is no longer working in the current Firefox version (69) There is also a similar discussion here: https://github.com/webrtc/samples/issues/302 --- demos/web/js/openface-demo.js | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/demos/web/js/openface-demo.js b/demos/web/js/openface-demo.js index f5bd862..6d03f26 100644 --- a/demos/web/js/openface-demo.js +++ b/demos/web/js/openface-demo.js @@ -233,11 +233,7 @@ function createSocket(address, name) { } function umSuccess(stream) { - if (vid.mozCaptureStream) { - vid.mozSrcObject = stream; - } else { - vid.srcObject = stream; - } + vid.srcObject = stream; vid.play(); vidReady = true; sendFrameLoop(); -- GitLab