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(); } }
public void Stop() { MotionTimer.Stop(); }