コード例 #1
0
ファイル: ImageGrabber.cs プロジェクト: windygu/SeecoolCCTV2
 public ImageGrabber(CCTVInfo info)
 {
     _info                      = info;
     _ownInfo                   = false;
     _info.ConnectedEvent      += _info_ConnectedEvent;
     _info.DisconnectedEvent   += _info_DisconnectedEvent;
     _info.AuthenticationEvent += _info_AuthenticationEvent;
 }
コード例 #2
0
ファイル: ImageGrabber.cs プロジェクト: windygu/SeecoolCCTV2
 public ImageGrabber(string host)
 {
     _ownInfo                   = true;
     _info                      = new CCTVInfo(host);
     _info.ConnectedEvent      += _info_ConnectedEvent;
     _info.DisconnectedEvent   += _info_DisconnectedEvent;
     _info.AuthenticationEvent += _info_AuthenticationEvent;
     _info.Start();
 }
コード例 #3
0
        public CCTVVideo(CCTVInfo info, ulong id, int bandwidth = 2000000)
        {
            Info      = info;
            VideoID   = id;
            Bandwidth = bandwidth;

            _hikm4Decoder.VideoFrameEvent   += _hikm4Decoder_VideoFrameEvent;
            _univiewDecoder.VideoFrameEvent += _univiewDecoder_VideoFrameEvent;
        }