mebjas / html5-qrcode

A cross platform HTML5 QR code reader. See end to end implementation at: https://scanapp.org
https://qrcode.minhazav.dev
Apache License 2.0
4.7k stars 935 forks source link

cannot change camera #411

Open juergenroesch opened 2 years ago

juergenroesch commented 2 years ago

I'am using the simple code but on the example-page the change of the camera to backside is available. If I copy the code, I see the "select Camera (2)" but there is no dropdown

To Reproduce

<div id="qr-reader" style="width:100%"></div>
<div id="qr-reader-results"></div>

<script src="https://unpkg.com/html5-qrcode" type="text/javascript"></script>

function onScanSuccess(decodedText, decodedResult) {
    $("#qr-reader-result").text("Code: " + decodedText);
}
var html5QrcodeScanner = new Html5QrcodeScanner(
    "qr-reader", { fps: 10, qrbox: 250 });
html5QrcodeScanner.render(onScanSuccess);

Smartphone (please complete the following information): iPhone different phones

mebjas commented 2 years ago

I cannot reproduce this issue on the Iphone 13 - chrome or safari. Can you check if following links work for you

On similar environment.

juergenroesch commented 2 years ago

If found the cause... it is related it MaterializeCSS is used, then the select disappears...