Exemplo n.º 1
0
        public FormOnvif()
        {
            InitializeComponent();
            this.Icon        = Icon.FromHandle(Properties.Resources.img_play1.GetHicon());
            btnRecord.Text   = recordTxtStart;
            btnSnapshot.Text = snapshotTxt;

            _connector  = new MediaConnector();
            _imgHandler = new ImgHandler();
            _videoView  = new VideoView("_videoViewerWf");
            panelVideo.Controls.Add(_videoView);


            _discoverCameras = new OnDiscover();
            _logDispatch     = Dispatcher.CurrentDispatcher;



            Connect();


            _imgHandler.ImageReady += _imgHandler_ImageReady;

            //_camDispatch.BeginInvoke(new delegatePrintText(PrintText), "Connection start");
        }
Exemplo n.º 2
0
 /// <summary>
 /// Called when a server responds to a discover message.
 /// </summary>
 /// <param name="msg"></param>
 public void OnDiscoverResponse(NetIncomingMessage msg)
 {
     OnDiscover?.Invoke(this, msg.SenderEndPoint);
 }