vue-qrcode-reader icon indicating copy to clipboard operation
vue-qrcode-reader copied to clipboard

I can't use the rear camera

Open xiaxiao001 opened this issue 5 years ago • 6 comments

vue-qrcode-reader:2.0.4 web browser is: Chrome 70 on Android 8.1

Camera is auto ; using front camera Camera is front; display error OverconstrainedError: Unknown name of constraint detected Camera is rear; display error OverconstrainedError: Unknown name of constraint detected But I use my phone to open https://gruhn.github.io/vue-qrcode-reader/ . Can use the rear camera, I don't know if the version I am using is low, or I need to install other plugins. please help me! Thank you!

xiaxiao001 avatar Sep 23 '19 07:09 xiaxiao001

XPPITX$NI MQG 4A}RRX0UI

xiaxiao001 avatar Sep 23 '19 08:09 xiaxiao001

Can you please assemble a minimal demo of your code (for example on jsfiddle) so I can reproduce your issue. Otherwise I can't help you.

You could modify this demo until your issue appears.

gruhn avatar Sep 23 '19 08:09 gruhn

I am very sorry, jsfiddle I use less; I installed vue-qrcode-reader : 2.0.4 ; I have a problem setting the "camera" parameter in the <qrcode-stream tag; <qrcode-stream @decode="onDecode" @init="onInit" :camera="camera" /> Scanning is only performed when the “camera” parameter is “auto”; When the “camera” parameter is “rear” or “front”, an error is displayed. If you can, I hope you can give me some ideas.

xiaxiao001 avatar Sep 23 '19 08:09 xiaxiao001

Need to install the webrtc-adapter plugin and introduce it in main.js?

xiaxiao001 avatar Sep 23 '19 08:09 xiaxiao001

If you can, I hope you can give me some ideas.

As I said, please provide a minimal reproduction otherwise I can't help.

Need to install the webrtc-adapter plugin and introduce it in main.?

no, this done automatically

gruhn avatar Sep 23 '19 12:09 gruhn

Hi, do you need to debug the code? I can package the vue project online and let you run the results.Can it be like this?

xiaxiao001 avatar Sep 24 '19 12:09 xiaxiao001

This issue has been marked as stale. If there is no further activity it will be closed.

github-actions[bot] avatar Aug 10 '23 00:08 github-actions[bot]