From 3120db9624b9ed32ad5bf013e68fb67d86cc2893 Mon Sep 17 00:00:00 2001 From: lukas Date: Wed, 29 Jan 2025 15:45:58 +0100 Subject: [PATCH] remove js to prepare camera toggeling --- observe_nema.html | 20 +------------------- 1 file changed, 1 insertion(+), 19 deletions(-) diff --git a/observe_nema.html b/observe_nema.html index 1bc7404..7959453 100644 --- a/observe_nema.html +++ b/observe_nema.html @@ -505,25 +505,7 @@ // width of FoV -- will be supplied by FLASK microscope setup. var real_width_FoV = 255; - // init video switching get IDs of video inputs - - var deviceIDs = []; - - navigator.mediaDevices - .enumerateDevices() - .then((devices) => { - devices.forEach((device) => { - if (device.kind=="videoinput"){ - deviceIDs.push(device.deviceId); - } - console.log(`${device.kind}: ${device.label} id = ${device.deviceId}`); - }); - }) - .catch((err) => { - console.error(`${err.name}: ${err.message}`); - }); - - // toggle between cameras + // init drawing