gruhn / vue-qrcode-reader

A set of Vue.js components for detecting and decoding QR codes.
https://gruhn.github.io/vue-qrcode-reader
MIT License
2.1k stars 335 forks source link

iOS 15 cannot preview imge from camera but it still using camera #266

Closed Pixmann closed 2 years ago

Pixmann commented 3 years ago

I have problem on iOS when I upgrade iOS version to iOS 15.

The camera still open but cannot preview image from camera.

It can preview image from camera when I go out from web page and come to web page again.

i don't know when i open your web demo it still working but my web page is not.

My Current installed version of vue-qr-code-reader is 3.0.3 and version of vue cli is 4.5.13 (ฺBuild Vue2)

potados99 commented 3 years ago

Same problem here :(

uaru commented 3 years ago

I have the same problem.

I think the problems is the same as in https://github.com/gruhn/vue-qrcode-reader/issues/264.

uaru commented 3 years ago

Another workaround is to change the orientation of the device, eg. from vertical to horizontal, and back - this is probably the quickest way to force the browser to repaint the camera area without reloading.

st4nny commented 3 years ago

At this moment i have put in onInit method an alert() with custom message, after close, the camera will appear correctly.

gruhn commented 2 years ago

Ok, I have a theory. Can you guys confirm that this demo reproduces the problem?

mnordstr commented 2 years ago

Ok, I have a theory. Can you guys confirm that this demo reproduces the problem?

Reproduces for me on iOS 15.0.1 (iPhone 11 Pro).

gruhn commented 2 years ago

Also, does the issue still occur here (pick any demo): https://gruhn.github.io/select-camera-demo/dist/

Otherwise I have a fix.

vivetech commented 2 years ago

@gruhn is there a known work-around or one to try in the meantime?

mnordstr commented 2 years ago

Also, does the issue still occur here (pick any demo): https://gruhn.github.io/select-camera-demo/dist/

Otherwise I have a fix.

Here it works immediately.

gruhn commented 2 years ago

Fix is out: https://github.com/gruhn/vue-qrcode-reader/releases/tag/v3.0.4

I'll close this. Make a noise if the issue still occurs.

rtybanana commented 2 years ago

This is still happening for me on an iPad Air 2 running iOS 15.1.