Describe the bug
I'm developing an android app, which has a webview in it. When loading the qr scanning demo page (https://blog.minhazav.dev/research/html5-qrcode.html) or a page that implemented the html5-qrcode library, device label (human-readable name for the camera device) is empty string.
@sensationpanda There is a way to handle this if you want to build for smartphones - with latest version you can use the facing mode instead of the cameraId + label
consthtml5QrCode=newHtml5Qrcode("#reader");constqrCodeSuccessCallback=message=>{/* handle success */}constconfig={fps: 10,qrbox: 250};// If you want to prefer front camerahtml5QrCode.start({facingMode: "user"},config,qrCodeSuccessCallback);// If you want to prefer back camerahtml5QrCode.start({facingMode: "environment"},config,qrCodeSuccessCallback);// Select front camera or fail with `OverconstrainedError`.html5QrCode.start({facingMode: {exact: "user"}},config,qrCodeSuccessCallback);// Select back camera or fail with `OverconstrainedError`.html5QrCode.start({facingMode: {exact: "environment"}},config,qrCodeSuccessCallback);
Describe the bug
I'm developing an android app, which has a webview in it. When loading the qr scanning demo page (https://blog.minhazav.dev/research/html5-qrcode.html) or a page that implemented the html5-qrcode library, device label (human-readable name for the camera device) is empty string.
sample:
id: "4c2c562185edeff69ceb28984aec24160b359fc3567422065818a41e4070f60c"
label: ""
To Reproduce
Steps to reproduce the behavior:
Expected behavior
Device names (camera) should be shown in drop down list.
Smartphone
The text was updated successfully, but these errors were encountered: