Update openface-demo.js

This commit is contained in:
Thart310 2019-06-24 18:03:12 +07:00 committed by Brandon Amos
parent c2d3b2df05
commit cff4f882f2
1 changed files with 2 additions and 3 deletions

View File

@ -236,13 +236,12 @@ function umSuccess(stream) {
if (vid.mozCaptureStream) {
vid.mozSrcObject = stream;
} else {
vid.src = (window.URL && window.URL.createObjectURL(stream)) ||
stream;
vid.srcObject = stream;
}
vid.play();
vidReady = true;
sendFrameLoop();
}
}
function addPersonCallback(el) {
defaultPerson = people.length;