Actualizacion con cambios de miguel

parent ab49888b
......@@ -32,8 +32,8 @@
},
optional: [ ]
};
//navigator.mediaDevices.getUserMedia({video: true, audio: false})
navigator.mediaDevices.getUserMedia({video:video_constraints, audio: false})
navigator.mediaDevices.getUserMedia({video: true, audio: false})
//navigator.mediaDevices.getUserMedia({video:video_constraints, audio: false})
.then(function(stream) {
video.srcObject = stream;
video.play();
......@@ -94,7 +94,7 @@
if (width && height) {
canvas.width = width;
canvas.height = height;
context.drawImage(video, 0, 0, width, height);
context.drawImage(video, 0, 0, width, height / 4/3);
var data = canvas.toDataURL('image/png');
photo.setAttribute('src', data);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment