Exemplo n.º 1
0
 private void button2_Click(object sender, EventArgs e)
 {
     StreamClient sc = new StreamClient();
     int iret = sc.CreatePlayer(pictureBox1.Handle);
     string smurl = string.Format(@"rtsp://{0}/", SMClientSetting.Default.RemotingServerIP);
     string camerarstp = "";
     foreach (var VARIABLE in smCameraInfos)
     {
         camerarstp = VARIABLE.Value.RstpUrl;
     }
     smurl += camerarstp;
     //sc.HIKS_OpenURL(smurl, 0);
     iret = sc.HIKS_OpenURL(@"rtsp://127.0.0.1/192.168.1.234:8000:HIK-DS8000HC:0:0:admin:12345/av_stream", 0);
     iret = sc.HIKS_Play();
 }
Exemplo n.º 2
0
        private void button2_Click(object sender, EventArgs e)
        {
            StreamClient sc         = new StreamClient();
            int          iret       = sc.CreatePlayer(pictureBox1.Handle);
            string       smurl      = string.Format(@"rtsp://{0}/", SMClientSetting.Default.RemotingServerIP);
            string       camerarstp = "";

            foreach (var VARIABLE in smCameraInfos)
            {
                camerarstp = VARIABLE.Value.RstpUrl;
            }
            smurl += camerarstp;
            //sc.HIKS_OpenURL(smurl, 0);
            iret = sc.HIKS_OpenURL(@"rtsp://127.0.0.1/192.168.1.234:8000:HIK-DS8000HC:0:0:admin:12345/av_stream", 0);
            iret = sc.HIKS_Play();
        }