/// <summary> /// 播放视频 /// </summary> /// <param name="_pchUrl">摄像机ip</param> /// <param name="_startTime">开始时间</param> /// <param name="_endTime">结束时间</param> /// <param name="_playTime">播放时间</param> /// <param name="_pchCamId">摄像机id</param> public void StartPlay(byte[] _pchUrl, DefVsClient.PLAY_NETTIME _startTime, DefVsClient.PLAY_NETTIME _endTime, DefVsClient.PLAY_NETTIME _playTime, string _pchCamId) { m_strId = _pchCamId; m_strSvrIp = System.Text.Encoding.Default.GetString(_pchUrl); string sUser = "******"; string sPass = "******"; byte[] byUser = System.Text.Encoding.Default.GetBytes(sUser); byte[] byPass = System.Text.Encoding.Default.GetBytes(sPass); m_lHandle = VsClientAPI.VSSP_ClientPlayByTime(_pchUrl, byUser, byPass, _startTime, _endTime, _playTime, _pchCamId, ucSinglePanle.Handle, 4002); m_bIsConnect = true; }