densen2014 / ZXingBlazor

Using ZXing Scan barcode/QR code in blazor
Apache License 2.0
102 stars 41 forks source link

Doesn't open camera stream on iOS #6

Closed mehowq closed 2 years ago

mehowq commented 3 years ago

Tried it on IPhone7 safari, chrome, firefox, edge and opera. None of the browsers open the video stream. Any chance to fix this?

densen2014 commented 3 years ago

only work in https and safari

mehowq commented 3 years ago

Thanks for the reply. Just tested it and I'm still getting black screen initially, even in https: 20210512_063854

But I found if I press the power button at this stage to turn the screen off and press it again to turn the screen on, I can see the video stream and scan. But after a successful scan, the stream goes to black screen again and I need to press power again to make it work.

Any ideas?

densen2014 commented 3 years ago

try my Demo

ssr https://zxingblazor.app1.es

wasm https://densen2014.github.io/

mehowq commented 3 years ago

Thanks, unfortunately still the same: IMG_4318 IMG_4319

densen2014 commented 3 years ago

yes, something wrong when run in new ios, we will fix it as soon as possible, thank you for report issues.

Lanticee commented 3 years ago

I got same problem, but I found if you open camera,then use change app to others app..then switch back browser...camera .it will works....hope it can be fixed...

densen2014 commented 3 years ago

ok

pradeep-w commented 3 years ago

Same here. Tried on iOS 14.5.1. (iPhone 11) - the camera preview is blank - but the component is working and detecting the barcode. So the problem is with the rendering of the preview. Also as @Lanticee noted, if you keep the any other camera app open in the background and switch to this component, the live preview appears correctly.

Great component btw ! Please try to fix the issue. Thanks !

Pant76 commented 3 years ago

Same problem here....any solution?

FrankMuessner commented 3 years ago

Hi there, have the problem too. Will there be an exam?

densen2014 commented 2 years ago

i was Upgrade to js isolated version, add image browser Viewer component, and upgrade demo project to net6 format