public void FlipCamera()
 {
     try
     {
         if (VideoCapturer != null)
         {
             var cameraId = VideoCapturer.CameraId.Equals(GetFrontCameraId()) ? GetBackCameraId() : GetFrontCameraId();
             VideoCapturer.SwitchCamera(cameraId);
         }
     }
     catch (Exception e)
     {
         Methods.DisplayReportResultTrack(e);
     }
 }
示例#2
0
 public void FlipCamera()
 {
     VideoCapturer?.SwitchCamera();
 }