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

Camera not loading on some Samsung devices #176

Open
tomovski opened this issue Sep 3, 2024 · 3 comments
Open

Camera not loading on some Samsung devices #176

tomovski opened this issue Sep 3, 2024 · 3 comments

Comments

@tomovski
Copy link

tomovski commented Sep 3, 2024

After updating to .net 8.0.3 version the camera stopped loading for some Samsung devices. And it's only happening on the first camera
cameraView.Camera = cameraView.Cameras.First();
While it is working on other Samsung devices, Pixel and iPhone.

I also receive a success result in the StartCameraAsync, but nothing is rendered.
var result = await cameraView.StartCameraAsync();

I've also tried the the workaround with:

await cameraView.StopCameraAsync();
var result = await cameraView.StartCameraAsync();

and tried with some small delay before stopping/starting the camera, but nothing seems to work.

I am using the latest version of Camera.MAUI and Camera.MAUI.ZXing. I saw some other people also facing the issue.
Is there any other workaround ? Many thanks

@jefterdorea
Copy link

I'm also experiencing this problem.

Interestingly, the problem has already occurred with Samsung and Motorola devices. But for the vast majority of users, everything is working perfectly.

No error is displayed, it just doesn't display the screenshot.

@moze-max
Copy link

moze-max commented Oct 7, 2024

你可以试试先运行await cameraView.StopCameraAsync();,然后再运行await cameraView.StartCameraAsync();

@jefterdorea
Copy link

Thank you very much @moze-max , it worked very well. Simple as that.

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

3 participants