private async void OnStopRecording(object sender, RoutedEventArgs e) { if (cameraCapture != null) { await cameraCapture.stop(); } UpdateUiState(PageState.Ready); LoadVideoPreview(); }