this is the code that calls the user"s camera:
//
function getUserMedia(constraints, success, error) {
if(navigator.mediaDevices.getUserMedia) {
//API
navigator.mediaDevices.getUserMedia(constraints).then(success).catch(error);
} else if(navigator.webkitGetUserMedia) {
//webkit
navigator.webkitGetUserMedia(constraints, success, error)
} else if(navigator.mozGetUserMedia) {
//firfox
navigator.mozGetUserMedia(constraints, success, error);
} else if(navigator.getUserMedia) {
//API
navigator.getUserMedia(constraints, success, error);
}
}
this is an error reported by the front console:
what should the seniors do about it?