ads3

// Allow accessing the camera var video = document.querySelector("#videoElement"); //mediaDevice and userMedia to navigate the access for camera if(navigator.mediaDevices.getUserMedia) { navigator.mediaDevices.getUserMedia({ video: true // after allowing the camera start the video stream }).then(function(stream) { video.srcObject = stream //play the video video.play(); }).catch(function(error) { console.log(error); }); } // capture Images var image = document.getElementById('image'), context = image.getContext('2d'); //setting for resolution of image document.getElementById('capture').addEventListener('click' , function() { // draw a image when the button clicked on the canvas context.drawImage(video , 0 , 0 , image.width , image.height); }); //Done.....!!
Read Me
Lorem ipsum dolor sit amet, consectetuer adipiscing elit, sed diam nonummy nibh euismod tincidunt ut laoreet dolore magna aliquam erat volutpat. Ut wisi enim ad minim veniam, quis nostrud exerci tation ullamcorper suscipit lobortis nisl ut aliquip ex ea commodo consequat.
close
...