/// <summary> /// 文件播放完毕回调 /// </summary> /// <param name="lPlayHand"></param> /// <param name="nUser"></param> void FileEndCallBack(uint lPlayHand, uint nUser) { if (SDK_XMSDK.H264_DVR_StopLocalPlay(m_nLocalplayHandle)) { m_nLocalplayHandle = 0; } //timerLocalPlayBack.Enabled = false; //trackBarLocalPlayPos.Value = 0; }
public bool VideoClose() { bool bolResule = false; int intResult = -1; bool bolResult = false; bolRequestRealVideoFlag = false; Console.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "CloseStart"); bolResult = SDK_XMSDK.H264_DVR_StopLocalPlay(m_iPlayhandle); //停止录像 VideoRecordStatus = false; intResult = SDK_XMSDK.H264_DVR_StopRealPlay(m_iPlayhandle, (uint)intptrPlayMain); //SDK关闭事件 currentVideoInfo.VideoLoginStateChangeEvent -= VideoLoginStateChanged; //程序取消事件注册 VideoPlayState = Enum_VideoPlayState.NotInPlayState; Console.WriteLine(DateTime.Now.ToString("yyyy-MM-dd HH:mm:ss") + "CloseEnd"); return(bolResule); }
private bool XMVideo_StopVideoRecord() { SDK_XMSDK.H264_DVR_StopLocalPlay(m_nLocalplayHandle); return(true); }