Exemple #1
0
 //断开视频
 public void DisConnectVideo()
 {
     if (m_iPlayHandle != -1)
     {
         VsClientAPI.VSSP_ClientStop(m_iPlayHandle);
     }
     m_iPlayHandle = -1;
 }
Exemple #2
0
 //断开视频
 public void DisConnectVideoSelf()
 {
     if (m_lPlayHandle != -1)
     {
         //StopRecFile();
         VsClientAPI.VSSP_ClientStop(m_lPlayHandle);
         //pnlShowVideo.Refresh();
         //pnlShowVideo.BackgroundImage = Resources.VideoBack;
         m_bConnected  = false;
         m_lPlayHandle = -1;
         m_strCamId    = "";
         m_strName     = "";
         m_strSvrIp    = "";
     }
 }
        /// <summary>
        /// 断开视频
        /// </summary>
        public Int32 DisConnectVideo()
        {
            Int32 iRet = -1;

            if (m_lHandle != -1)
            {
                if (m_bRecording == true)
                {
                    StopRecFile();
                }
                iRet         = VsClientAPI.VSSP_ClientStop(m_lHandle);
                m_bConnected = false;
                m_lHandle    = -1;
                m_strDevId   = "";
            }
            return(iRet);
        }
 //断开视频
 public void DisConnectVideo()
 {
     if (m_lHandle != -1)
     {
         //StopRecFile();
         VsClientAPI.VSSP_ClientStop(m_lHandle);
         //pnlShowVideo.Refresh();
         //pnlShowVideo.BackgroundImage = Resources.VideoBack;
         m_lHandle          = -1;
         m_strCamId         = "";
         m_strSvrIp         = "";
         m_bConnected       = false;
         m_bRecording       = false;
         pnlCaption.Visible = false;
         m_iType            = -1;
         m_iChannel         = -1;
         m_bIsFirstFloder   = false;
         m_HikLoginHandle   = -1;
     }
 }