public void OpenWindow(int _index, CAMARE_INFO info) { index = _index; cmsManageInstance = CMSManage.Instance; currentCameraGUID = info.camareGuid; cmsManageInstance.OpenCamera(index, currentCameraGUID, StartReadMem); }
public void SetValue(DeviceInfo dInfo) { cameraId = int.Parse(dInfo.Id); guid = CMSManage.StringToGUID(dInfo.Guid); CMSManageInstance.OpenCamera(cameraId, guid, StartReadMem); Title.text = dInfo.Description; LoadPresetPosition(); }
/// <summary> /// 绑定相关按钮事件 /// </summary> void StartPlay() { UIEventListener.Get(UpArea).onPress = MoveToUp; UIEventListener.Get(DownArea).onPress = MoveToDown; UIEventListener.Get(LeftArea).onPress = MoveToLeft; UIEventListener.Get(RightArea).onPress = MoveToRight; UIEventListener.Get(MainWindow).onHover = Scale; UIEventListener.Get(TitleBar.gameObject).onPress = Flicker; cameraId = int.Parse(CamaraRef.GetComponent <MonitorInfoData> ().Data.Id); guid = CMSManage.StringToGUID(CamaraRef.GetComponent <MonitorInfoData> ().Data.Guid); if (CamaraRef.GetComponent <MonitorInfoData> ().Data.UseRTSP) { OpenVideoFromRTSP(CamaraRef.GetComponent <MonitorInfoData> ().Data.RTSPUrl); } else { CMSManageInstance.OpenCamera(cameraId, guid, StartReadMem); } }