Example #1
0
 private async Task CleanupCameraAsync()
 {
     UnsubscribeFromEvents();
     if (CameraPreviewControl != null)
     {
         CameraPreviewControl.Stop();
         await CameraPreviewControl.CameraHelper?.CleanUpAsync();
     }
 }
 private async void ButtonVideoClose_OnClick(object sender, RoutedEventArgs e)
 {
     //Stop video
     CameraPreviewControl.CameraHelper.FrameArrived -= CameraPreviewControl_FrameArrived;
     CameraPreviewControl.Stop();
 }