code-kotis / qr-code-scanner

📠 A simple, fast and useful progressive web application
https://qrcodescan.in
MIT License
1.05k stars 291 forks source link

Configure Camera #107

Open orlandoGAero opened 4 years ago

orlandoGAero commented 4 years ago

Describe the bug

In which part of the code is it configured which camera to show?

select front camera or back camera

gokulkrishh commented 4 years ago

@orlandoGAero It always selects the back camera.

Code is https://github.com/code-kotis/qr-code-scanner/blob/master/app/js/vendor/qrscan.js#L84

orlandoGAero commented 4 years ago

on apple devices, open the front camera

gokulkrishh commented 4 years ago

@orlandoGAero Thanks for the information. Can you let me know which version of ios you are using? I have tested the app in ios13 and ios14 beta. Both versions open's back camera.

KrasnayaPloshchad commented 4 years ago

on apple devices, open the front camera

This is also happened to me. On Android 7, Firefox Nightly.