Have an issue where I can't choose right webcam in Google Chrome 70. Chrome detects my webcams correctly, but I can't chose one of them from list because it has disabled state. Chrome always choosing Facetime HD Camera instead default webcam that was selected in Options.
Screenshot: https://tppr.me/WC94p
Website where I have tested: https://chatruletka.com / https://ruletka.chat
How can I solve that issue? Thank you.
chrome://settings/content/camera
The quick select is currently disabled in Chrome. You need to type the above into the URL bar in chrome to pick which webcam you want to use. I have had chrome "bug" a few times where I have had to kill chrome in task manager and restart the app to successfully swap the camera. You might need to do the above and refresh a few times.
Also if you ask for a resolution which isn't supported by your main camera it will attempt to get it from another source. I have encountered this a few times on Android when asking for a 720x1280 feed. Instead of the front camera being used the browser decided to use the back camera.
To truly solve this problem you should allow the user to select which webcam they want to use. Below is the official cross-platform example from the webrtc GitHub repo which achieves this. It also forces a specific camera to be used via the deviceId
https://webrtc.github.io/samples/src/content/devices/input-output/