コード例 #1
0
ファイル: RtspAgent.cs プロジェクト: badstyle319/RTP-IP-Cam
        public RtspAgent(IntPtr hwnd, string ip, int channel)
        {
            mReceiver          = new RtspReceiver(ip, channel);
            mReceiver.NewData += new DataEventHandler(PushData);
            mReceiver.GetReady();

            mNSVideo = NSV.Create();
            NSV.AttachWindow(mNSVideo, hwnd);
            NSV.SetDecoder(mNSVideo, "h264");
            NSV.Start(mNSVideo);
        }