I have the following code to display the available Camera & Mic list on the web page. But unfortunately "*Logitech C920 HD Pro Webcam - 1080p" Camera is not listed with the below code but the Microphone of the "Logitech" device is showing.
navigator.mediaDevices.enumerateDevices().then(function (devices) {
for (var i = 0; i < devices.length; i++) {
if (devices[i].kind == "videoinput") {
console.log("Video Device is : "+devices[i].label);
}else if( devices[i].kind === "audioinput" ) {
console.log("Audio Device is : "+devices[i].label);
}
}
});
I am testing in Mac OS and In Mac OS privacy settings Camera is enabled for the Chrome browser. But when we verify in Zoom, the Camera is listed properly.
Please let me know if I am missing anything.