private ICameraControl newCCTV2CameraControl(string videoId) { var staticInfo = _infoSync.GetStaticInfo(videoId); var control = _infoSync.GetControlConfig(videoId); if (control != null && !string.IsNullOrWhiteSpace(control.Ip)) { return(new CCTV2CameraControl("127.0.0.1", 8888, videoId)); } return(null); }