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:
parent
92d61fdd53
commit
1142e7ac47
|
@ -233,11 +233,7 @@ function createSocket(address, name) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function umSuccess(stream) {
|
function umSuccess(stream) {
|
||||||
if (vid.mozCaptureStream) {
|
|
||||||
vid.mozSrcObject = stream;
|
|
||||||
} else {
|
|
||||||
vid.srcObject = stream;
|
vid.srcObject = stream;
|
||||||
}
|
|
||||||
vid.play();
|
vid.play();
|
||||||
vidReady = true;
|
vidReady = true;
|
||||||
sendFrameLoop();
|
sendFrameLoop();
|
||||||
|
|
Loading…
Reference in New Issue