Closed bhavenjain closed 4 years ago
Had to change the startVideo function to just make the webcam start working on the html file
function startVideo(){ navigator.mediaDevices.getUserMedia( { video: {} }) .then(function (stream) { video.srcObject = stream; }) err => console.error(err) }
The Faceapi is not working. What can I do to make it work? I'm getting this error. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource
Had to change the startVideo function to just make the webcam start working on the html file
function startVideo(){ navigator.mediaDevices.getUserMedia( { video: {} }) .then(function (stream) { video.srcObject = stream; }) err => console.error(err) }
The Faceapi is not working. What can I do to make it work? I'm getting this error. Cross-Origin Request Blocked: The Same Origin Policy disallows reading the remote resource