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

Note error #447

Open
AugPav opened this issue Jul 31, 2024 · 2 comments
Open

Note error #447

AugPav opened this issue Jul 31, 2024 · 2 comments

Comments

@AugPav
Copy link

AugPav commented Jul 31, 2024

Type of issue

Other (describe below)

Description

The note that says "This will not change the resolution displayed in the preview from the camera.", is incorrect, since in Samsung Flip 5 (SM-F31B) with Android 14 and Samsung S24 Ultra (SM-928B) with Android 14, the cameraPreview resolution is modified by modifying the resolution from MyCamera.SelectedCamera.SupportedResolutions

Page URL

https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/views/camera-view?tabs=android

Content source URL

https://github.com/MicrosoftDocs/CommunityToolkit/blob/main/docs/maui/views/camera-view.md

Document Version Independent Id

ddd38b0d-10d0-a000-b6aa-2769c945c4fd

Article author

@bijington

Metadata

  • ID: ddd38b0d-10d0-a000-b6aa-2769c945c4fd
  • Service: dotnet-communitytoolkit
  • Sub-service: dotnet-maui-community-toolkit
@bijington
Copy link
Collaborator

Thanks for the report. To confirm are you setting the ImageCaptureResolution property to a value in the SupporterResolutions property?

@AugPav
Copy link
Author

AugPav commented Aug 2, 2024

Thanks for the report. To confirm are you setting the ImageCaptureResolution property to a value in the SupporterResolutions property?

Yes, for exsample:

   private void SetPhotoResolution()
   {

       var MaxResolutionSize = MyCamera.SelectedCamera.SupportedResolutions.OrderByDescending(r => r.Width * r.Height).DefaultIfEmpty();
       MyCamera.ImageCaptureResolution = MaxResolutionSize.First();

   }

On Motorola works fine

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

No branches or pull requests

2 participants