Exemple #1
0
 public void CloseCamera(int cameraId, CMS_GUID guid)
 {
     Logger.Instance.WriteLog("请求关闭摄像头");
     if (OpenCameraList.ContainsKey(cameraId) && OpenCameraList[cameraId] > 1)
     {
         OpenCameraList[cameraId]--;
     }
     else
     {
         bool ret = client.CloseCamera(cameraId, guid, CloseCameraCallback);
         if (ret)
         {
             Logger.Instance.WriteLog("请求关闭摄像头成功");
         }
         else
         {
             Logger.Instance.WriteLog("请求关闭摄像头失败。CameraId:" + cameraId);
         }
     }
 }