示例#1
0
 private IPTZCtrl GetPTZCtrl(int channel)
 {
     if (mDVRDevice != null)
     {
         return(mDVRDevice.GetPTZCtrl(channel));
     }
     return(null);
 }
示例#2
0
        private IPTZCtrl GetPTZCtrl(IVideoSourceConfig vsConfig)
        {
            CHKDVRDevice      device = null;
            CHKDVRVideoSource vs     = vsConfig.SystemContext.VideoSourceManager.GetVideoSource(vsConfig.Name) as CHKDVRVideoSource;

            if (vs != null)
            {
                device = vs.DVRDevice;
            }
            else
            {
                device = CHKDVRDevice.GetHKDevice(vsConfig.IP, vsConfig.Port, vsConfig.UserName, vsConfig.Password);
            }

            return(device.GetPTZCtrl(vsConfig.Channel));
        }