Is there a way, a command that allows me to change the zoom of the WebCam? In this code below is where I create my WebCam canvas for Snapshot on the site.
I want to apply - zoom, ie increase the coverage area of the Cam. Is it possible?
/* ACTIVE WEBCAM */
if(!webCamActive)
{
webCamActive = true;
navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia || navigator.msGetUserMedia || navigator.oGetUserMedia;
var vgacontraint = {
video: {
mandatory: {
maxWidth: 650,
maxHeight: 435
}
}
};
if(navigator.getUserMedia){
navigator.getUserMedia(vgacontraint, function(stream){
webCamVideo.src = window.URL.createObjectURL(stream);
webCamVideo.play();
}, function(e){
console.log(e);
});
}
}