大华摄像头二次开发能登录监录像不能显示在控件上,保存视频文格式是什么

private void Form1_Load(object sender, EventArgs e)
{
pictureBox1.BorderStyle = System.Windows.Forms.BorderStyle.FixedSingle;
pictureBox1.Dock = System.Windows.Forms.DockStyle.Fill;
pictureBox1.Location = new System.Drawing.Point(0, 0);
pictureBox1.Size = new System.Drawing.Size(229, 176);
pictureBox1.TabIndex = 1;
pictureBox1.TabStop = false;
pictureBox1.Tag = "0";

        handle = pictureBox1.Handle;         
        disConnect = new fDisConnect(DisConnectEvent);
        DHClient.DHInit(disConnect, IntPtr.Zero);
        DHClient.DHSetEncoding(LANGUAGE_ENCODING.gb2312);
        NET_DEVICEINFO info = new NET_DEVICEINFO();
        ID = DHClient.DHLogin("10.1.50.243", 37777, "admin", "admin", out info, out error);
        isLogin = DHClient.DHStartListen(ID);
        RealHandle = DHClient.DHRealPlay(ID, 0, handle);
        cbRealData = new fRealDataCallBack(cbRealDataFun);
        //isSave = DHClient.DHStartSaveRealData(RealHandle, "D:/1.dav");
        //pictureBox1.Show();
        pictureBox1.Refresh();

        if (isLogin)
        {
            MessageBox.Show(string.Format("Login True!"));
        }
        else
        {
            MessageBox.Show(string.Format("Login False!"));
        }

        if (RealHandle == 0)
        {
            MessageBox.Show(string.Format("Play False!"));
        }
        else
        {
            MessageBox.Show(string.Format("Play True!"));
        }
        if (DHClient.DHSetRealDataCallBack(RealHandle, cbRealData, IntPtr.Zero) == true)//设置数据回调处理函数
        {
            MessageBox.Show("设置数据回调处理函数成功!");
        }
        else
        {
            MessageBox.Show("设置数据回调处理函数失败!");
            return;
        }
        if (isSave)
        {
            MessageBox.Show(string.Format("Save True!"));
        }
        else
        {
            MessageBox.Show(string.Format("Save False!"));
        }

    }
Csdn user default icon
上传中...
上传图片
插入图片
抄袭、复制答案,以达到刷声望分或其他目的的行为,在CSDN问答是严格禁止的,一经发现立刻封号。是时候展现真正的技术了!
立即提问
相关内容推荐