Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Scanning for Front camera not working #1061

Open
mobileappsdeveloper01 opened this issue Dec 12, 2022 · 0 comments
Open

Scanning for Front camera not working #1061

mobileappsdeveloper01 opened this issue Dec 12, 2022 · 0 comments

Comments

@mobileappsdeveloper01
Copy link

Hello Kind Developers

Please help on the below issue,
Unable to scan with fixed front camera view in Android. it always opening the back camera. please check the below code. Could you please suggest the workaround for this. without this we can't move forward on it. We have tried all versions of stable and beta version in library but no luck.

            var scanner = new ZXing.Mobile.MobileBarcodeScanner();
            scanner.UseCustomOverlay = false;

            var options = new ZXing.Mobile.MobileBarcodeScanningOptions()
            {
                AutoRotate = true,
                UseNativeScanning = true,
                TryHarder = true,
                TryInverted = true,
                UseFrontCameraIfAvailable = true,
            };
         var result = await scanner.Scan(options);

Thanks for support in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant