예제 #1
0
 /// <summary>
 /// 关闭视频
 /// </summary>
 private void closeVideo()
 {
     if (!videoRecord && !videoShow && cameraClient != null)
     {
         //1、停止实时监控
         cameraClient.StopRealPlay(1);
         //2、退出登录
         cameraClient.Logout();
         //3、清空SDK
         CameraClient.Cleanup();
         myPlayHandle = -1;
     }
 }
예제 #2
0
        public bool Close()
        {
            if (!this.isRecording && !this.isPlaying && this.cameraClient != null)
            {
                //1、停止实时监控
                cameraClient.StopRealPlay(this.cameraParameter.RealPlayChannelID);
                //2、退出登录
                cameraClient.Logout();
                //3、清空SDK
                CameraClient.Cleanup();
                this.currentHandle = -1;
            }

            return(true);
        }