コード例 #1
0
 private IPTZCtrl GetPTZCtrl(int channel)
 {
     if (mDVRDevice != null)
     {
         return(mDVRDevice.GetPTZCtrl(channel));
     }
     return(null);
 }
コード例 #2
0
ファイル: HKPTZAction.cs プロジェクト: ewin66/Monitor
        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));
        }