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.03k stars 330 forks source link

Disable capture property on QRCodeCapture #404

Closed paulwer closed 5 months ago

paulwer commented 5 months ago

Hey everyone, we want to force this component (QRCodeCapture) to open file manager on mobile, because we combine it with the stream-component in the app itself. As of the capture property is there by default, mobile phones open the camera everytime.

Any suggestions to implement this?

Thank you very much.

gruhn commented 5 months ago

You can overwrite it. Something like this:

<qrcode-capture :capture="null" />

See: https://vue-qrcode-reader.netlify.app/api/QrcodeCapture.html#props

paulwer commented 5 months ago

worked great. thank you very much.