Exemple #1
0
        internal RTPServer(int localPort, string videoId)
        {
            _rtpHelper     = new RTPPackHelper();
            _hTrigger      = new RTPHeaderTrigger();
            _ups           = new UnpackPS();
            _ups.Unpacked += _ups_Unpacked;

            _localIP   = IPAddressHelper.GetLocalIp();
            _localPort = localPort;
            _videoId   = videoId;
            _targets   = new Dictionary <string, TargetItem>();
        }
Exemple #2
0
        public HikPlayViewModel()
        {
            _ups              = new UnpackPS();
            _ups.Unpacked    += _ups_Unpacked;
            _upsnew           = new UnpackPSNew();
            _upsnew.Unpacked += _upsnew_Unpacked;

            _rtsp = new StreamRtspServer();
            //_socket = new StreamSocket();
            _renderSource = new D3DImageSource();
            _renderSource.ImageSourceChanged += onImageSource;
            //_hik = new HikStream("192.168.9.98", 8000, "admin", "12345", 1, false, IntPtr.Zero);
            _hik              = new HikStream("192.168.9.155", 8000, "admin", "admin12345", 1, false, IntPtr.Zero);
            _hik.StreamEvent += onHikStream;
            //_hik.RtpFrameEvent += onRtpFrame;
        }