private IPTZCtrl GetPTZCtrl(int channel) { if (mDVRDevice != null) { return(mDVRDevice.GetPTZCtrl(channel)); } return(null); }
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)); }