-
Notifications
You must be signed in to change notification settings - Fork 492
Open
Labels
Description
Current Behavior
When using CameraView on Windows, the control requires both camera and microphone permissions during initialization.
If the user denies the microphone permission, CameraView initialization fails and the application crashes with:
System.UnauthorizedAccessException
This happens even when the application only needs to take photos and does not require audio input.
Expected Behavior
CameraView should still allow camera usage when microphone permission is denied.
The control should continue working for:
- photo capture
- video recording without audio
Microphone access should only be required when audio recording is needed.
Steps To Reproduce
The bug can be reproduced using the official sample app included in the repository:
- Clone the CommunityToolkit.MAUI repository
- Run the sample application CommunityToolkit.MAUI.Sample
- Navigate to: Views → CameraView
- When the system permission dialog appears for the microphone, select "Deny"
- The application crashes with: System.UnauthorizedAccessException
Link to public reproduction project repository
https://github.com/CommunityToolkit/Maui/tree/main/samples
Environment
- .NET MAUI CommunityToolkit:14.0.1
- OS: Windows
- .NET MAUI: 10.0.102Anything else?
No response
Reactions are currently unavailable