diff --git a/modules/v4d/samples/example_v4d_beauty-demo.html b/modules/v4d/samples/example_v4d_beauty-demo.html index 46940bae7..bf886918b 100644 --- a/modules/v4d/samples/example_v4d_beauty-demo.html +++ b/modules/v4d/samples/example_v4d_beauty-demo.html @@ -105,9 +105,7 @@ - - - +
Downloading...
@@ -125,19 +123,18 @@ var fsButton = document.querySelector("#fullscreenBtn"); var captureBtn = document.querySelector("#captureBtn"); var videoElement = document.querySelector("#v4dVideoElement"); - var cameraCanvas = document.querySelector("#cameraCanvas"); function fixCanvasSize() { Module.canvas.style.width = ((960) / window.devicePixelRatio)+ "px"; - Module.canvas.style.height = ((540) / window.devicePixelRatio) + "px"; + Module.canvas.style.height = ((960) / window.devicePixelRatio) + "px"; Module.canvas.width = 960; - Module.canvas.height = 540; + Module.canvas.height = 960; } var Module = { onRuntimeInitialized: function() { fixCanvasSize(); - Module._v4dInitCapture(960, 540); + Module._v4dInitCapture(960,960); }, preRun: [], postRun: [], @@ -209,7 +206,7 @@ } captureBtn.addEventListener('click', async function() { - let stream = await navigator.mediaDevices.getUserMedia({ video: { width: 960, height: 540 } , audio: false }); + let stream = await navigator.mediaDevices.getUserMedia({ video: { width: 960, height: 960 } , audio: false }); videoElement.addEventListener( "playing", () => { @@ -245,7 +242,7 @@ window.addEventListener('fullscreenchange', function (event) { if (document.fullscreenElement) { - console.log(`Element: ${document.fullscreenElement.id} entered fullscreen mode.`); + console.log("Element: " + document.fullscreenElement.id + " entered fullscreen mode."); } else { console.log('Leaving fullscreen mode.'); } diff --git a/modules/v4d/samples/example_v4d_cube-demo.html b/modules/v4d/samples/example_v4d_cube-demo.html index 0e1feb85f..d79fd2f35 100644 --- a/modules/v4d/samples/example_v4d_cube-demo.html +++ b/modules/v4d/samples/example_v4d_cube-demo.html @@ -16,11 +16,6 @@ /* the canvas *must not* have any border or padding, or mouse coords will be wrong */ canvas.emscripten { border: 0px none; background-color: black; } - #emscripten_logo { - display: inline-block; - margin: 0; - } - .spinner { height: 30px; width: 30px; @@ -98,7 +93,6 @@ -
Downloading...
@@ -114,16 +108,15 @@ function fixCanvasSize() { Module.canvas.style.width = ((960) / window.devicePixelRatio)+ "px"; - Module.canvas.style.height = ((540) / window.devicePixelRatio) + "px"; + Module.canvas.style.height = ((960) / window.devicePixelRatio) + "px"; Module.canvas.width = 960; - Module.canvas.height = 540; + Module.canvas.height = 960; console.log("fixed canvas size"); } var Module = { onRuntimeInitialized: function() { fixCanvasSize(); - Module._v4dInitCapture(960, 540); }, preRun: [], postRun: [], @@ -201,7 +194,7 @@ window.addEventListener('fullscreenchange', function (event) { if (document.fullscreenElement) { - console.log(`Element: ${document.fullscreenElement.id} entered fullscreen mode.`); + console.log("Element: " + document.fullscreenElement.id + " entered fullscreen mode."); } else { console.log('Leaving fullscreen mode.'); } diff --git a/modules/v4d/samples/example_v4d_custom_source_and_sink.html b/modules/v4d/samples/example_v4d_custom_source_and_sink.html index ed4a6a4d7..e4bd8e0c4 100644 --- a/modules/v4d/samples/example_v4d_custom_source_and_sink.html +++ b/modules/v4d/samples/example_v4d_custom_source_and_sink.html @@ -16,11 +16,6 @@ /* the canvas *must not* have any border or padding, or mouse coords will be wrong */ canvas.emscripten { border: 0px none; background-color: black; } - #emscripten_logo { - display: inline-block; - margin: 0; - } - .spinner { height: 30px; width: 30px; @@ -98,7 +93,6 @@ -
Downloading...
@@ -114,16 +108,15 @@ function fixCanvasSize() { Module.canvas.style.width = ((960) / window.devicePixelRatio)+ "px"; - Module.canvas.style.height = ((540) / window.devicePixelRatio) + "px"; + Module.canvas.style.height = ((960) / window.devicePixelRatio) + "px"; Module.canvas.width = 960; - Module.canvas.height = 540; + Module.canvas.height = 960; console.log("fixed canvas size"); } var Module = { onRuntimeInitialized: function() { fixCanvasSize(); - Module._v4dInitCapture(960, 540); }, preRun: [], postRun: [], @@ -201,7 +194,7 @@ window.addEventListener('fullscreenchange', function (event) { if (document.fullscreenElement) { - console.log(`Element: ${document.fullscreenElement.id} entered fullscreen mode.`); + console.log("Element: " + document.fullscreenElement.id + " entered fullscreen mode."); } else { console.log('Leaving fullscreen mode.'); } diff --git a/modules/v4d/samples/example_v4d_display_image.html b/modules/v4d/samples/example_v4d_display_image.html index d2a0acf02..f00a2aa0b 100644 --- a/modules/v4d/samples/example_v4d_display_image.html +++ b/modules/v4d/samples/example_v4d_display_image.html @@ -1,7 +1,7 @@ - Display Image + Display an Image through the Video-Pipeline