Exemplo n.º 1
0
 public void Connect()
 {
     try
     {
         CurrentVisualState = VisualStates.Progress;
         _mediaDevices.Start();
         if (_mediaDevices.CaptureSource.State == CaptureState.Started)
         {
             OnCapturedStarted();
         }
     }
     catch (Exception ex)
     {
         ClientLogger.ErrorException(ex);
         _messageService.ShowErrorHint(ex.Message);
     }
     finally
     {
         UpdatePanel();
     }
 }