mozmorris / react-webcam

Webcam component
https://codepen.io/mozmorris/pen/JLZdoP
MIT License
1.65k stars 281 forks source link

Some Android device unable to capture the image clearly #341

Open renkaiheng opened 2 years ago

renkaiheng commented 2 years ago

The problem is on multiple rear camera devices like the Huawei P30 Pro or Samsung S10, it seem like will auto using telephoto lens instead of using the default stock rear camera. This can cause the live video and image is not focusing at all

taka204 commented 1 year ago

same issue, especially on samsung devices

mboonchai commented 8 months ago

Hi, you can use mediaDevices.enumerateDevices to get a different deviceId and use another camera instead. See Show all cameras by deviceId for reference.