예제 #1
0
 public void Dispose()
 {
     timerDispose();
     if (_cctvInfo != null)
     {
         _cctvInfo.Stop();
     }
     if (_trackVideoForm != null)
     {
         _trackVideoForm.Dispose();
     }
     _trackVideoForm = null;
 }
예제 #2
0
        public void Dispose()
        {
            _info.Stop();
            _thumbnailProducer.ThumbnailEvent -= _thumbnailProducer_ThumbnailEvent;
            _thumbnailProducer.Dispose();

            _globalSync.Dispose();
            _staticSync.Dispose();
            _dynamicSync.Dispose();
            _hierarchySync.Dispose();
            _onlineSync.Dispose();
            _videoPosSync.Dispose();
            _videoBufSync.Dispose();
        }
예제 #3
0
        private CCTVInfo getCCTVInfo()
        {
            if (_autoGenHub)
            {
                _clientHub.UpdateDefault(CCTVInfoType.GlobalInfo);
            }
            CCTVGlobalInfo gInfo = _clientHub.GetGlobalInfo();

            if (gInfo != null)
            {
                if (_cctvInfo == null || _cctvInfo.ServerHost != gInfo.CCTV1Host)
                {
                    if (_cctvInfo != null)
                    {
                        _cctvInfo.Stop();
                    }
                    _cctvInfo = new CCTVInfo(gInfo.CCTV1Host);
                    _cctvInfo.Start();
                }
            }
            return(_cctvInfo);
        }