|
本帖最后由 lihui2006 于 2016-1-19 15:43 编辑
问一下几个API的问题(前端设备是4G单兵执法仪WB720),目前测试的是C#的winformdemo
1、打开对讲后没有关闭对讲方法,需结束主程序对讲后才能关闭,也即api中怎么样才能关闭对讲
?
2、设备录像怎么取出来?录像数据没有方法提取出来(需要提供方法提取设备录像数据和照片数据) (哦,这个已知,就是USB连接电脑,U盘模式导出)
3、BS没有对讲功能,已在调试BS模块
4、设备状态只有第一次加载时才是正确状态,注销后再次登陆状态都是不在线false
例如,打开对讲失败:
/// <summary>
/// 打开对讲
/// </summary>
/// <param name="pu"></param>
/// <param name="channelNo"></param>
/// <param name="panel"></param>
public void openTalkOnly(Pu pu, int channelNo, Panel panel)
{
try
{
BVCU_DialogControlParam_Network net = new BVCU_DialogControlParam_Network(0, 5, 1, 3);
BVRect dispRect = new BVRect(0, 0, panel.ClientRectangle.Height, panel.ClientRectangle.Width);
OneDialog dlg = new OneDialog();
foreach (Channel channel in pu.channelList)
{
int captureVolume = 50;
int audioVolume = 50;
if (channel.channelNo == channelNo)
{
int ret = BVCU.ManagedLayer_CuNewTalk(m_bvsdkHandle,
ref dlg.dialogHandle,
m_session.Handle,
Encoding.UTF8.GetBytes(pu.id),
channelNo,
captureVolume,
audioVolume,
ref net,
m_bvsdkEventHandler.dialog_OnDialogEvent,
m_bvsdkEventHandler.dialog_OnStorageEvent);
BVCU.FAILED(ret);
LogHelper.LogHelper.RecordLog(4, string.Format("打开[{0}]对讲", pu.puName));
break;
}
}
dlg.panel = panel;
dlg.pu = pu;
dlg.channelNo = channelNo;
m_dialogs.Add(dlg);
}
catch
{
panel.ContextMenuStrip = null;
MessageBox.Show("打开对讲失败");
}
}
|
|