Arguments for video source error event from video source.
Inheritance: System.EventArgs
コード例 #1
0
        void videoSource_Error(object sender, AForge.Video.VideoSourceErrorEventArgs eventArgs)
        {
#if DEBUG
            MessageBox.Show(
                eventArgs.Description,
                eventArgs.GetType().ToString(),
                MessageBoxButton.OK,
                MessageBoxImage.Error
                );
#endif
        }
コード例 #2
0
ファイル: Camera.cs プロジェクト: Tob1112/405sentry
        // On video source error
        private void video_VideoSourceError( object sender, VideoSourceErrorEventArgs e )
        {
            // reset motion detector
            if ( motionDetecotor != null )
            {
                motionDetecotor.Reset( );
            }

            // save video source error's description
            lastVideoSourceError = e.Description;

            // notify clients about the error
            if ( VideoSourceError != null )
            {
                VideoSourceError( this, new EventArgs( ) );
            }
        }
コード例 #3
0
ファイル: HeadController.cs プロジェクト: natepan/framework
 private void videoSource_VideoSourceError(object sender, VideoSourceErrorEventArgs eventArgs)
 {
     if (VideoSourceError != null)
     {
         if (SynchronizingObject != null &&
             SynchronizingObject.InvokeRequired)
         {
             SynchronizingObject.BeginInvoke(
                 VideoSourceError, new object[] { this, eventArgs });
         }
         else
         {
             VideoSourceError(this, eventArgs);
         }
     }
 }
コード例 #4
0
ファイル: VideoSourcePlayer.cs プロジェクト: pusp/o2platform
 // Error occured in video source
 private void videoSource_VideoSourceError( object sender, VideoSourceErrorEventArgs eventArgs )
 {
     lastMessage = eventArgs.Description;
     Invalidate( );
 }
コード例 #5
0
 private void VideoError(object sender, VideoSourceErrorEventArgs eventargs)
 {
     _eventAggregator.PublishOnBackgroundThread("VideoDeviceError");
 }
コード例 #6
0
 private void VideoSource_VideoSourceError(object sender, AForge.Video.VideoSourceErrorEventArgs eventArgs)
 {
 }
コード例 #7
0
ファイル: FileStreamCamera.cs プロジェクト: DeSciL/Ogama
 void videoSource_VideoSourceError(object sender, VideoSourceErrorEventArgs eventArgs)
 {
   log.Warn("videoSource_VideoSourceError: Event occurred");
 }
コード例 #8
0
 private void VideoStream_VideoSourceError(object sender, AForge.Video.VideoSourceErrorEventArgs eventArgs)
 {
     Debug.WriteLine(eventArgs.Description);
 }
コード例 #9
0
        private void screenStream_VideoSourceError(object sender, VideoSourceErrorEventArgs e)
        {
            if (!IsRecording)
                return;

            if (videoPlayer.InvokeRequired)
            {
                videoPlayer.BeginInvoke((Action)((() => screenStream_VideoSourceError(sender, e))));
                return;
            }

            IVideoSource source = sender as IVideoSource;
            source.SignalToStop();

            string msg = String.Format( // TODO: Move the message box code to the view
                CultureInfo.CurrentUICulture, Resources.Error_Video_Source, source.Source);
            MessageBox.Show(msg, source.Source, MessageBoxButtons.OK, MessageBoxIcon.Error, MessageBoxDefaultButton.Button1,
                videoPlayer.RightToLeft == RightToLeft.Yes ? MessageBoxOptions.RtlReading | MessageBoxOptions.RightAlign : 0);
        }
コード例 #10
0
ファイル: MainForm.cs プロジェクト: chadbarbe/Team1450FRC2011
        private void VideoSource_VideoSourceError(object sender, VideoSourceErrorEventArgs eventArgs)
        {
            connectionAttempts++;
            fpsLabel.Text = "Connection attempt " + connectionAttempts.ToString() + " failed. Trying again.";

               // failedConnection.RunWorkerAsync();
        }
コード例 #11
0
 private void FinalVideoSource_ErrorEvent(object sender, VideoSourceErrorEventArgs eventArgs)
 {
     // Try to capture some errors and print them...
     MessageBox.Show("Error: " + eventArgs.Description);
 }
コード例 #12
0
ファイル: CameraView.cs プロジェクト: zhuangyy/Motion
 private void source_VideoSourceError(object sender, VideoSourceErrorEventArgs e)
 {
     if (this.EditMode)
     {
         return;
     }
     OnCameraViewLog(new CameraViewLogEventArgs(ZForge.Controls.Logs.LogLevel.LOG_ERROR, e.Description, this));
 }
コード例 #13
0
ファイル: Webcam.cs プロジェクト: pinodex/wacctv
 private void HandleSourceError(object sender, VideoSourceErrorEventArgs e)
 {
     HandleFinishedPlaying(sender, ReasonToFinishPlaying.VideoSourceError);
 }
コード例 #14
0
ファイル: CameraWindow.cs プロジェクト: WesleyYep/ispyconnect
        private void SourceVideoSourceError(object sender, VideoSourceErrorEventArgs eventArgs)
        {
            VideoSourceErrorMessage = eventArgs.Description;
            if (!VideoSourceErrorState)
            {
                VideoSourceErrorState = true;
                MainForm.LogExceptionToFile(new Exception("VideoSourceError: " + eventArgs.Description),
                                            "Camera " + Camobject.id);
                //Monitor.Enter(this);
                _camera.LastFrameNull = true;

                //Monitor.Exit(this);
            }
            if (!ShuttingDown)
                Invalidate();
        }
コード例 #15
0
 private void screenStream_VideoSourceError(object sender, VideoSourceErrorEventArgs eventArgs)
 {
     throw new VideoException(eventArgs.Description);
 }
コード例 #16
0
ファイル: CameraWindow.cs プロジェクト: vmail/main
        private void SourceVideoSourceError(object sender, VideoSourceErrorEventArgs eventArgs)
        {
            VideoSourceErrorMessage = eventArgs.Description;
            if (!VideoSourceErrorState)
            {
                VideoSourceErrorState = true;
                Log.Error("Camera " + Camobject.id, new Exception("VideoSourceError: " + eventArgs.Description));
                _reconnectTime = DateTime.Now;
                if (_errorTime == DateTime.MinValue)
                    _errorTime = DateTime.Now;

                _camera.LastFrameNull = true;

                if (VolumeControl != null && VolumeControl.AudioSource != null)
                {
                    VolumeControl.AudioSource.Stop();
                    VolumeControl.AudioSourceErrorState = true;
                }
            }
            if (!ShuttingDown)
                Invalidate();
        }
コード例 #17
0
 public void InvokeVideoSourceError(VideoSourceErrorEventArgs eventargs)
 {
     VideoSourceErrorEventHandler handler = VideoSourceError;
     if (handler != null) handler(this, eventargs);
 }