Exemplo n.º 1
0
        private void Connect()
        {
            //http://10.10.10.202/onvif/device_service
            //rtsp://10.10.10.78/axis-media/media.amp
            _camera = IPCameraFactory.GetCamera("rtsp://10.10.10.78/axis-media/media.amp", "root", "cavi123,.");// , CameraTransportType.TCP
            _camera.CameraStateChanged += camera_CameraStateChanged;


            //_camera.CameraStateChanged += _camera_CameraStateChanged;
            _connector.Connect(_camera.VideoChannel, _imgHandler);

            _videoView.SetImageProvider(_imgHandler);


            _camera.Start();
            _videoView.Start();

            //ICameraNetworkManager camIp = _camera.NetworkManager;
        }