コード例 #1
0
ファイル: FormOnvif.cs プロジェクト: Pzkgw/OnvifAssistant
 private void CaptureStop()
 {
     if (_camera.VideoChannel == null)
     {
         return;
     }
     _connector.Disconnect(_camera.VideoChannel, _recorder.VideoRecorder);
     _recorder.Multiplex();
 }
コード例 #2
0
 private void StopCapture_Click(object sender, RoutedEventArgs e)
 {
     if (_videoSender == null)
     {
         return;
     }
     _connector.Disconnect(_videoSender, _recorder.VideoRecorder);
     _recorder.Multiplex();
 }
コード例 #3
0
 private void StopVideoCapture4()
 {
     if (_mpeg4Recorder4 != null)
     {
         _mpeg4Recorder4.Multiplex();
         _connector4.Disconnect(_camera4.AudioChannel, _mpeg4Recorder4.AudioRecorder);
         _connector4.Disconnect(_camera4.VideoChannel, _mpeg4Recorder4.VideoRecorder);
     }
 }
コード例 #4
0
 private void stopVideoCapture()
 {
     if (_mpeg4Recorder != null)
     {
         _mpeg4Recorder.Multiplex();
         _connector.Disconnect(_camera.AudioChannel, _mpeg4Recorder.AudioRecorder);
         _connector.Disconnect(_camera.VideoChannel, _mpeg4Recorder.VideoRecorder);
     }
 }
コード例 #5
0
 private void StopVideoCapture3()
 {
     if (_mpeg4Recorder3 != null)
     {
         _mpeg4Recorder3.Multiplex();
         _connector3.Disconnect(_camera3.AudioChannel, _mpeg4Recorder3.AudioRecorder);
         _connector3.Disconnect(_camera3.VideoChannel, _mpeg4Recorder3.VideoRecorder);
     }
 }
コード例 #6
0
 private void StopVideoCapture2()
 {
     if (_mpeg4Recorder2 != null)
     {
         _mpeg4Recorder2.Multiplex();
         _connector2.Disconnect(_camera2.AudioChannel, _mpeg4Recorder2.AudioRecorder);
         _connector2.Disconnect(_camera2.VideoChannel, _mpeg4Recorder2.VideoRecorder);
     }
 }
コード例 #7
0
 private void StopVideoCapture1()
 {
     if (_mpeg4Recorder1 != null)
     {
         _mpeg4Recorder1.Multiplex();
         _connector1.Disconnect(_camera1.AudioChannel, _mpeg4Recorder1.AudioRecorder);
         _connector1.Disconnect(_camera1.VideoChannel, _mpeg4Recorder1.VideoRecorder);
     }
 }
コード例 #8
0
        public void StopRecording()
        {
            if (_videoSender == null)
            {
                return;
            }
            _connector.Disconnect(_videoSender, _recorder.VideoRecorder);
            _recorder.Multiplex();

            VideoFilesManager.CheckMemoryLimitForAllVideos(_configuration.VideosFolderPath);
        }
コード例 #9
0
        private void bunifuFlatButton3_Click(object sender, EventArgs e)
        {
            try
            {
                if (_mjpegConnection1 == null || _mpeg4Recorder1 == null)
                {
                    return;
                }

                _mpeg4Recorder1.Multiplex();

                _connector1.Disconnect(_mjpegConnection1.AudioChannel, _mpeg4Recorder1.AudioRecorder);
                _connector1.Disconnect(_mjpegConnection1.VideoChannel, _mpeg4Recorder1.VideoRecorder);
                MessageBox.Show("Stop video recording");
            }
            catch (Exception ex)
            {
                Console.WriteLine(ex.Message);
                MessageBox.Show("Please enter IP, Username and Password !");
            }
        }