Beispiel #1
0
        public virtual void Close()
        {
            BitmapSourceProvider.Dispose();

            if (Mpeg4Recorder != null)
            {
                Mpeg4Recorder.Dispose();
            }

            Detector.MotionDetection -= Detector_MotionDetection;
            Detector.Dispose();

            VadFilter.VoiceDetected -= VadFilterVoiceDetected;
            VadFilter.Dispose();

            if (SoundTimer != null)
            {
                SoundTimer.Elapsed -= ElapsedVoice;
                SoundTimer.Stop();
                SoundTimer.Dispose();
            }

            if (MotionTimer != null)
            {
                MotionTimer.Elapsed -= ElapsedVoice;
                MotionTimer.Stop();
                MotionTimer.Dispose();
            }
        }
Beispiel #2
0
 public void Stop()
 {
     MotionTimer.Stop();
 }