jbialobr / JsQRScanner

JavaScript QR Code scanner for HTML5 supporting browsers
Apache License 2.0
305 stars 116 forks source link

Problem remembering selection #36

Open Bricobit opened 3 years ago

Bricobit commented 3 years ago

I have a scenario in which on a tablet with windws 10 and with firefox I am allowed to remember the selection. The situation is as follows, I open the address, at that moment I am asked permission to use the camera and what camera I want to use, I select the front camera and press the checkbox to remember this decision and I give it to allow, then everything works fine , until you press f5 to reload the page and then it no longer asks for your permissions but instead of capturing the video from the front camera, it changes to the back camera, therefore you have to remove the camera's permissions to refresh the page and reselect the front camera.

Is there a way through the JsQRScanner API to solve this, or maybe an example? I need to remember the selected camera or, failing that, a drop-down that can switch between the front or rear camera when the privileges are already granted

jbialobr commented 3 years ago

Please read about "Providing a video stream in a custom way". I think it is a good place for saving data for a future use.