Ejemplo n.º 1
0
        protected override void _TurnOn()
        {
            Utility.AppConfig config = Utility.AppConfig.Instance;
            config.LoadConfig(MEHoloConstant.NetworkConfigFile);
            serverHost = Utility.AppConfig.Instance.GetConfigByFileName(MEHoloConstant.NetworkConfigFile, "Server_Host", "127.0.0.1");

            ui.TurnOn();

            Debug.Log("App[" + MEHoloEntrance.Instance.AppID + "] Get Storage From " + serverHost);
            assetAPI     = new AssetApi("http://" + serverHost, 80);
            recordingAPI = new RecordingApi("http://" + serverHost, 80);

            downloadWorker = new BackgroundWorker();
            downloadWorker.StartWorker();
        }
Ejemplo n.º 2
0
        protected override void _TurnOn()
        {
            Utility.AppConfig config = Utility.AppConfig.Instance;
            config.LoadConfig(MEHoloConstant.NetworkConfigFile);
            serverHost = Utility.AppConfig.Instance.GetConfigByFileName(MEHoloConstant.NetworkConfigFile, "Server_Host", "127.0.0.1:8848");
            int.TryParse(Utility.AppConfig.Instance.GetConfigByFileName(MEHoloConstant.NetworkConfigFile, "Server_Port", "8848"), out serverPort);

            ui.TurnOn();

            Debug.Log("App[" + MEHoloEntrance.Instance.AppID + "] Get Storage From " + serverHost);
            //下面的暂时只能使用https:// 无法去掉
            assetAPI     = new AssetApi(serverHost, serverPort);
            recordingAPI = new RecordingApi(serverHost, serverPort);
            directorAPI  = new DirectorApi(serverHost, serverPort);

            downloadWorker = new BackgroundWorker();
            downloadWorker.StartWorker();
        }