se elimina boton de volver a paso 1 en paso 3

parent e5757102
...@@ -32,7 +32,7 @@ ...@@ -32,7 +32,7 @@
if (!streaming) { if (!streaming) {
console.log(video.videoHeight); console.log(video.videoHeight);
if (video.videoHeight > width) { /*if (video.videoHeight > width) {
console.log("PORTRAIT"); console.log("PORTRAIT");
width = 0; width = 0;
height = 630; height = 630;
...@@ -50,7 +50,7 @@ ...@@ -50,7 +50,7 @@
streaming = true; streaming = true;
} else { }else {*/
console.log("LANDSCAPE"); console.log("LANDSCAPE");
height = video.videoHeight / (video.videoWidth / width); height = video.videoHeight / (video.videoWidth / width);
console.log(height); console.log(height);
...@@ -64,7 +64,7 @@ ...@@ -64,7 +64,7 @@
canvas.setAttribute('height', height); canvas.setAttribute('height', height);
streaming = true; streaming = true;
} }
} /*}*/
}, false); }, false);
startbutton.addEventListener('click', function (ev) { startbutton.addEventListener('click', function (ev) {
......
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