ector("select.photoCamDevices");
                var device = deviceSelector.value;
                cam.device = device;
                cam.reload();
            }

            function populateDeviceMenu() {
                var photoCam = PF('pc');
                var deviceSelector = document.querySelector("select");
                var availableDevices = photoCam.getAvailableDevices();
                if (availableDevices) {
                    availableDevices.then(devices => devices.forEach(device => 