概述
using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using SIMUHKNETSDK; namespace SIMUSDK { public partial class Form1 : Form { private int m_videoHandle;//视频Handle private int m_userID;//当前用户ID public Form1() { InitializeComponent(); } private void button1_Click(object sender, EventArgs e) { bool flag =SIMUHKNETSDK.SIMUHKNETSDK.NET_DVR_Init(); int success = LoginVideo(); if (success == -1) { groupBox1.Text = "用户登录[连接失败]"; } else { groupBox1.Text = "用户登录[连接成功]"; } } private int LoginVideo() { SIMUHKNETSDK.NET_DVR_DEVICEINFO serInfo = new SIMUHKNETSDK.NET_DVR_DEVICEINFO(); m_userID = SIMUHKNETSDK.SIMUHKNETSDK.NET_DVR_Login(txtIP.Text, int.Parse(txtHost.Text), txtUserName.Text.ToString(), txtPassword.Text.ToString(), out serInfo); return m_userID; } private void button2_Click(object sender, EventArgs e) { for (int i = 1; i <= 4; i++) { Panel panel = new Panel(); NET_DVR_CLIENTINFO cli = new NET_DVR_CLIENTINFO(); cli.lChannel = i; cli.lLinkMode = 0; cli.hPlayWnd = panel.Handle; panel.Dock = DockStyle.Fill; cli.sMultiCastIP = "0.0.0.0"; tableLayoutPanel1.Controls.Add(panel); m_videoHandle =SIMUHKNETSDK.SIMUHKNETSDK.NET_DVR_RealPlay(m_userID, ref cli); } } } }
最后
以上就是纯情月亮为你收集整理的监控视频的测试的全部内容,希望文章能够帮你解决监控视频的测试所遇到的程序开发问题。
如果觉得靠谱客网站的内容还不错,欢迎将靠谱客网站推荐给程序员好友。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复