qr-code-scanner icon indicating copy to clipboard operation
qr-code-scanner copied to clipboard

DOMException on page reload

Open luke-z opened this issue 5 years ago • 0 comments

Hi there

I've been experimenting with your app and found an issue.

On reloading the page with my notebook, it returned an exception (DOMException: Could not start video source).

After trying a few things, I figured out the problem. On my notebook, it tried to access the IR camera and thus somehow couldn't free it up afterwards.

I solved it by adding && !device.label.includes('IR') to the if statement mentioned below.

Maybe there's another way to solve it.

Best regards Luke

https://github.com/code-kotis/qr-code-scanner/blob/ec539ff0ca4668802ac3f6dd4099ae424922c84a/app/js/vendor/qrscan.js#L78

luke-z avatar Jul 10 '20 15:07 luke-z