You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
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