Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can't choose right webcam in Google Chrome [closed]

I can't choose right webcam in Google Chrome. Chrome detects my webcams correctly, but I am unable to chose one of them from list because it is in a disabled state where Chrome is always choosing Facetime HD Camera instead of the default webcam that was selected in Options.

Screenshot: https://tppr.me/WC94p

Website where I have tested: https://chatruletka.com / https://ruletka.chat

like image 405
Alex Goncharov Avatar asked Oct 27 '18 11:10

Alex Goncharov


Video Answer


1 Answers

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/

like image 98
Marcus Avatar answered Sep 24 '22 14:09

Marcus