Skip to content

[CameraView][iOS] Favor Photo Formats During Default Resolution Selection#2941

Merged
TheCodeTraveler merged 1 commit intoCommunityToolkit:mainfrom
phunkeler:bug/n2920
Nov 16, 2025
Merged

[CameraView][iOS] Favor Photo Formats During Default Resolution Selection#2941
TheCodeTraveler merged 1 commit intoCommunityToolkit:mainfrom
phunkeler:bug/n2920

Conversation

@phunkeler
Copy link
Contributor

@phunkeler phunkeler commented Nov 15, 2025

Description of Change

  • Add GetPhotoCompatibleFormats to filter JPEG-compatible formats
    • When no formats match requested resolution, fallback to formats supported by photoOutput
      • Prevents automatic selection of raw/Bayer formats that cause "No active and enabled video connection" crash
  • Resolution-matching formats still preferred (supports video with any format)

Linked Issues

PR Checklist

@TheCodeTraveler TheCodeTraveler merged commit 37c98a0 into CommunityToolkit:main Nov 16, 2025
9 of 11 checks passed
@github-actions github-actions bot locked and limited conversation to collaborators Nov 18, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[BUG] Maui.Camera not working on iPhone 17 (Pro and ProMax at least) [BUG] CameraView crash capturing image on iPhone 17 Pro

3 participants