CommunityToolkit/Maui

[BUG] Cant Start Preview after Stop Preview on Huawei Nova 5T

kwjcode opened this issue · 1 comments

Is there an existing issue for this?

  • I have searched the existing issues

Did you read the "Reporting a bug" section on Contributing file?

Current Behavior

Hi all,

Currently using Community Toolkit Camera to develop a camera app. When I Stop Preview camera, it work properly. The issue was when I tried to use the StartCameraPreviewCommand, it didn't restart the camera preview at all. There are no exception occur or any errors captured.

Please refer to the screen recorder below and attached Debug log from VS2022.

Debug log.txt

SVID_20241220_154946_1.mp4

The code I using is from Microsoft documentation.
https://learn.microsoft.com/en-us/dotnet/communitytoolkit/maui/views/camera-view?tabs=android

Any help would be appreciated.

Expected Behavior

Able to restart camera preview after stop

Steps To Reproduce

  1. Open and run solution from the repository

Link to public reproduction project repository

https://github.com/kwjcode/MobileApp.git

Environment

- Device: Huawei Nova 5T
- OS: EMUI 12
- Android version: 10
- .NET MAUI CommunityToolkit: 9.1.1
- .NET MAUI: 8.0
- .NET CommunityToolkit.Maui.Camera: 1.0.5

Anything else?

No response