html5-qrcode icon indicating copy to clipboard operation
html5-qrcode copied to clipboard

Camera doesn't work in chrome, Scanner doesn't work in other cases

Open slemrmartin opened this issue 9 years ago • 4 comments

Chrome on Linux, Chrome on Android cannot use camera. Firefox knows how to use camera, but none of tried codes wasn't recognized (URL/Text/SMS/Geo Location).

So I didn't find anythink which work..?!

slemrmartin avatar Feb 23 '16 11:02 slemrmartin

Tried this codes (printed) http://qrcode.meetheed.com/qrcode_examples.php

slemrmartin avatar Feb 23 '16 11:02 slemrmartin

Having the same issue.

DMalone87 avatar Mar 31 '16 05:03 DMalone87

Hi, this problem is due to Chrome itself. It has restricted the accessibility to the media features. Firstly, your site has to be running under https and secondly you have to configurate your web server content policy so it can load the media blob. Since I could meet this requirements, I didn't investigate further wheter this restrictions could be deactivated in some way. Hope this helps

ChmlGr avatar Apr 10 '16 22:04 ChmlGr

also another workaround for chrome to work locally without https is using 127.0.0.1 instead of a dummy domain name for local access.

mohammadrafigh avatar Oct 09 '16 22:10 mohammadrafigh