CommunityToolkit / CommunityToolkit/Maui
[BUG] CommunityToolkit.Maui.Core.CameraException: Cannot Record
- Dominant language
- C#
- Stars
- 2.7k
- Forks
- 500
- Avg merge
- 2d 14h
- Merged PRs (30d)
- 7
Description
### Is there an existing issue for this?
- [x] I have searched the existing issues
### Did you read the "Reporting a bug" section on Contributing file?
- [x] I have read the "Reporting a bug" section on Contributing file: https://github.com/CommunityToolkit/Maui/blob/main/CONTRIBUTING.md#reporting-a-bug
### Current Behavior
Whenever I connect the camera, disconnect it and then connect it again, the CaptureImage() throws the exception provided in the stack trace below. In my console, I was able to see this error - CommunityToolkit.Maui.Core.CameraException: Cannot Record
This is my Stack trace:
```
Non-fatal Exception: CommunityToolkit.Maui.Core.CameraException
0 ??? 0x0 CommunityToolkit.Maui.Views.CameraView.CaptureImage(CancellationToken token) + 236 (CameraView.shared.cs:236)
```
### Expected Behavior
Take a picture.
### Steps To Reproduce
See Current Behavior.
### Link to public reproduction project repository
https://github.com/CommunityToolkit/Maui
### Environment
```markdown
- MAUI CommunityToolkit.Maui: 12.0.0
- CommunityToolkit.Maui.Camera: 3.0.1
- OS:iOS and Android
- .NET MAUI:
maui-android 9.0.51/9.0.100 SDK 9.0.300
maui-ios 9.0.51/9.0.100 SDK 9.0.300
```
### Anything else?
_No response_
Contributor guide
Assessment
This issue has not been assessed yet.