I learn about web-rtc, it says that you can capture video-cam , i used demo , well this worked on chrome only..
when i open it on firefox i get mess
Since Safari 11 is out, this works everywhere (tested on recent versions of Chrome, Firefox and Safari 11):
var constraints = {audio: false, video: true};
var video = document.querySelector("video");
function successCallback(stream) {
video.srcObject = stream;
video.play();
}
function errorCallback(error) {
console.log("navigator.getUserMedia error: ", error);
}
navigator.mediaDevices.getUserMedia(constraints)
.then(successCallback)
.catch(errorCallback);