Replies: 1 comment
-
@autoprog I could not get what the problem is, so I helped with CoPilot.
|
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
hi,
Example CameraView One page run.
my case MVVM , main_page and Camera_page problems.
I have the main page and I take photos on the Camera page and return to the main page to process the image.
The problem is that the Camera is turned off.
If it is not turned off correctly, an Exception is caused and the application is forced to close.
My temporary solution:
Button_beck_page: Event
Terminar = false; <---- Thread finiched
await Navigation.PopModalAsync();
//--------------------------------- in thread
await MainThread.InvokeOnMainThreadAsync(() =>
{
MyCamera.StopCameraPreview(); close camera
});
//-----------------------
Since my application needs to open and close after each photo.
Or if there is a way to run the camera in the background, just
connect and disconnect the event
CommunityToolkit.Maui.Views.MediaCapturedEventArgs
thanks,
Carlos.
Beta Was this translation helpful? Give feedback.
All reactions