       }
        });
        const cameras = await captureViewer.getAllCameras();
        for (var i=0;i<cameras.length;i++)
        { 
            if(cameras[i].label.indexOf("OBS") != -1){ //for desktop testing
                captureViewer.selectCamera(cameras[i]);
                break;
            }
        }
        
        captureViewer.on("captured", async (e) => {
            // Stop video stream and hide capture viewer's container
            captureViewer.stop();
            document.getElementB