From 6b2eaa1054e614350aac14bf3ee597422c4a660a Mon Sep 17 00:00:00 2001 From: atlasan Date: Tue, 5 Jan 2021 21:43:45 +0100 Subject: [PATCH] webcamnode --- src/nodes/graphics.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/nodes/graphics.js b/src/nodes/graphics.js index 5fc05b823..5e31b6ba9 100755 --- a/src/nodes/graphics.js +++ b/src/nodes/graphics.js @@ -734,7 +734,7 @@ // Texture Webcam ***************************************** function ImageWebcam() { this.addOutput("Webcam", "image"); - this.properties = { filterFacingMode: false, facingMode: "user" }; // atlasan edit + this.properties = { filterFacingMode: false, facingMode: "user" }; this.boxcolor = "black"; this.frame = 0; } @@ -754,7 +754,7 @@ // Not showing vendor prefixes. var constraints = { audio: false, - video: !this.properties.filterFacingMode ? true : { facingMode: this.properties.facingMode } // atlasan edit + video: !this.properties.filterFacingMode ? true : { facingMode: this.properties.facingMode } }; navigator.mediaDevices .getUserMedia(constraints)