private void startall() { try { for (int s = 0; s < j; s++) { HkAction.Play(handle[s], cameraid1[s], SessionId[s]); } } catch (Exception ex) { MessageBox.Show("异常" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } a = 1; }
private void Start_Play1() { SessionId[j] = HkAction.AllocSession(); //每次点击存放session if (SessionId[j] != null) //每次播放申请会话 { bool play; try { play = HkAction.Play(handle[0], cameraid1[j], SessionId[j]); if (play == true) { a = 1; } } catch (Exception ex) { MessageBox.Show("异常:" + ex.ToString(), "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } } else { MessageBox.Show("申请会话异常!", "提示", MessageBoxButtons.OK, MessageBoxIcon.Information); } }