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

black screen ios15.3.1 & ios15.6.1 when using html5QrCode.start

Open samyH opened this issue 2 years ago • 2 comments

Hi, great script you have here by the way.

Having issues on ios15.3.1 & ios15.6.1 when using html5QrCode.start

In my app the camera is already started and being used, so the 'reader' is hidden

<div style="width: 100%; height: 100%; visibility: hidden;" id="reader"></div>

I start the scanner as stated in your doc

// If you want to prefer back camera // html5QrCode.start({ facingMode: "environment" }, config, qrCodeSuccessCallback);

This is when the screen goes black - scanner still works though - as above only seen it happen on ios (Safari), works as expected on Android and laptop (chrome).

Maybe I have to pass in the already started camera id?

Any help is much appreciated.

samyH avatar Sep 23 '22 16:09 samyH

How can I prevent the video tag being created as I already have a video up and running?

image

samyH avatar Sep 26 '22 09:09 samyH

@samyH I have the same issue. Did you have solutions for this?

dattm97 avatar Dec 06 '23 02:12 dattm97