You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Apr 4, 2023. It is now read-only.
I'm using <MLKitBarcodeScanner preferFrontCamera="false"> and it's not working on iPhone 13 Pro and iPhone 13 Pro Max devices. I've had users report that the image is blurry.
I'm not sure what's going on, but I'm wondering if somehow the wrong camera might be getting used on these devices? They have both macro and telephoto cameras.
If I'm correctly guessing what the issue might be, I think it might be related to those lines. I think in some cases the wrong camera might be getting used.
I'm using
<MLKitBarcodeScanner preferFrontCamera="false">
and it's not working on iPhone 13 Pro and iPhone 13 Pro Max devices. I've had users report that the image is blurry.I'm not sure what's going on, but I'm wondering if somehow the wrong camera might be getting used on these devices? They have both macro and telephoto cameras.
nativescript-plugin-firebase/src/mlkit/mlkit-cameraview.ios.ts
Line 46 in 05be2bb
this.captureDevice = AVCaptureDeviceDiscoverySession.discoverySessionWithDeviceTypesMediaTypePosition( <any>[AVCaptureDeviceTypeBuiltInWideAngleCamera], AVMediaTypeVideo, this.preferFrontCamera ? AVCaptureDevicePosition.Front : AVCaptureDevicePosition.Back ).devices.firstObject;
If I'm correctly guessing what the issue might be, I think it might be related to those lines. I think in some cases the wrong camera might be getting used.
https://developer.apple.com/documentation/avfoundation/avcapturedevicetypebuiltinwideanglecamera
Has anyone else seen any similar or related issue?
The text was updated successfully, but these errors were encountered: