zxing-js / ngx-scanner

Angular QR code, Barcode, DataMatrix, scanner component using ZXing.
https://zxing-js.github.io/ngx-scanner/
MIT License
636 stars 224 forks source link

[Firefox-android] Permission issue #540

Open stefbeysdiekeure opened 10 months ago

stefbeysdiekeure commented 10 months ago

Describe the bug Unable to request for permissions: alongside the error log: @zxing/ngx-scanner Error when asking for permission. DOMException: Starting videoinput failed

the error in the console (replaced url because it was hosted by ngrok): log.txt

To Reproduce Steps to reproduce the behavior:

  1. Go to the demo on https://zxing-js.github.io/ngx-scanner/
  2. Approve the permission request
  3. See error "Couldn't check for devices"

Expected behavior Expect the camera to show up

Screenshots image

Smartphone (please complete the following information):

I also use version: 3.9.0 since our angular project is angular 15 atm (it works on my xiaomi 11T pro with android 13 and the same browser though)

stefbeysdiekeure commented 10 months ago

I think it has to do something that firefox doesn't support all my camera's (I tried some stuff with the native camera code and didn't seem to get 2 out of 4 cameras working