-
-
Notifications
You must be signed in to change notification settings - Fork 302
Description
First Check
- This is not a feature request
- I added a very descriptive title to this issue.
- I used the GitHub search to find a similar issue and didn't find it.
- I searched the documentation, with the integrated search.
- I already read the docs and didn't find an answer.
- I can replicate the issue inside the Demo install.
Homebox Version
0.22.3
What is the issue you are experiencing?
My phone has multiple cameras, of those the back facing ones are camera "0" and "2".
These are the labels as they appear in different browsers (respectively for 2):
Chrome Android: "camera 0, facing back"
Firefox Android: "Facing back:0"
It seems Homebox chooses the last one in the list, and in Firefox camera 2 is the last, while in Chrome camera 0.
For some non-obvious reason, camera 0 works (in Chrome it works by default, in Firefox I need to switch to it, as Homebox in FF defaults to camera 2).
For testing, In Chrome, selecting camera 2 works too (though I'm perfectly fine with 0). In the demo.homebox.software, with FF, with enough clicking on random Allow/Disallow camera dialogs, I could somehow manage for it to make camera 0 the default, but I couldn't reproduce with the current release (maybe it was something very random).
TLDR it would be nice if Homebox remembered the label of the last camera to successfully capture a code, and use that the next time. This would probably avoid choosing the "wrong" back camera (though no idea why camera 2 doesn't work in FF... maybe something with the permission model, by that time I needed to click 3 allow buttons, maybe it caps out after some limit.. though if I just blanket allow camera for the site, it doesn't help either).
How can the maintainer reproduce the issue?
Take a phone with multiple back cameras, try to scan using them in Android FF and Chrome, observe differences. (If you have the per-site camera allow already on, you might want to clear it first).
Deployment
Other
Database Type
SQLite
OS Architechture
x86_64 (AMD, Intel)
Deployment Details
FreeBSD, both from package manager (older version), but also manually using the 0.22.3 release.