When page ExercisingView is popped from NavigationStack, camera preview is stopped when OnDisappearing method is called.
PlayingView.PreviewStub.Relayout += OnPlayingViewRelayout;
}
+ /// <summary>
+ /// OnDisappearing.
+ /// </summary>
+ protected override void OnDisappearing()
+ {
+ if (cameraView.PreviewState == Tizen.Multimedia.CameraState.Preview)
+ {
+ cameraView.StopPreview();
+ }
+ }
+
private static void OnIsPlayingChanged(BindableObject bindable, object oldValue, object newValue)
{
if (newValue is bool isPlaying && bindable is ExercisingView view)