Esempio n. 1
0
        //void ms_FrameReady(object sender, FrameReadyEventArgs e)
        //{
        //    //throw new NotImplementedException();
        //    drawbmp11(e.Bitmap);
        //}

        /// <summary>
        /// 停止通讯
        /// </summary>
        public void Stop()
        {
            try
            {
                if (aw != null)
                {
                    aw.Close();
                }

                mjpegSource.NewFrame -= new CameraEventHandler(mjpegSource_NewFrame);
                mjpegSource.Yx        = false;
                mjpegSource.Stop();
                mjpegSource     = null;
                motionDetecotor = null;
                GC.Collect();
            }
            catch { }
        }
Esempio n. 2
0
 public void Stop()
 {
     mjpegSource.Stop();
     aw.Close();
 }