remove js to prepare camera toggeling
This commit is contained in:
parent
77e4204ae0
commit
3120db9624
|
|
@ -505,25 +505,7 @@
|
||||||
// width of FoV -- will be supplied by FLASK microscope setup.
|
// width of FoV -- will be supplied by FLASK microscope setup.
|
||||||
var real_width_FoV = 255;
|
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
|
// init drawing
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue