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
This commit is contained in:
Adrian Pascu 2019-09-28 13:20:04 +03:00 committed by Brandon Amos
parent 92d61fdd53
commit 1142e7ac47
1 changed files with 1 additions and 5 deletions

View File

@ -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();