schmich / instascan

HTML5 QR code scanner using your webcam
https://schmich.github.io/instascan/
MIT License
2.97k stars 867 forks source link

Detect main camera #250

Open MartCube opened 4 years ago

MartCube commented 4 years ago

Many mobiles today have multiple cameras. Some of those are not good at all for scanning ( for ex. the telescope camera of huawei which is used for zooming ) Is there some way where we can we detect out of the given list of camera, which camera is the main camera ( best quality camera ) for using ?

HamidReazaNikoonia commented 4 years ago

exact problem ??

aprimio commented 4 years ago

Having a similar problem, component open camera and give no choice of choose with one.

On some new phones like Galaxy S20, it open the frontal camera, not the back camera as happens on others devices.

Is it possible to alternate between cameras?

pradeepngupta commented 4 years ago

seems this repo doesn't gave facingMode feature. & now this project is not maintained. It seems to me to fork and add the changes.

douglasisraelbonfim commented 3 years ago

I have the same error on the galaxy s20. Would anyone have a solution for the error?