public void JustOn() { // create app if nonexistent if (ReferenceEquals(app, null)) { app = new UnityVideo(); // create app app.loadEngine(AppID); // load engine } app.join(HomePageControll.MODEL.user + "0"); app.switchCamera(); }
public void onJoinButtonClicked(bool IsLoadNewScene = true) { Debug.Log("agora_: onJoinButtonClicked"); // create app if nonexistent if (ReferenceEquals(app, null)) { app = new UnityVideo(); // create app app.loadEngine(AppID); // load engine Debug.Log("agora_: Engine Initialized To chanel " + HomePageControll.MODEL.user); } // join channel and jump to next scene app.join(HomePageControll.MODEL.user); if (IsLoadNewScene) { SceneManager.sceneLoaded += OnLevelFinishedLoading; // configure GameObject after scene is loaded SceneManager.LoadScene(PlaySceneName, LoadSceneMode.Single); } }
private void onJoinButtonClicked() { Debug.Log("agora_: onJoinButtonClicked"); // get parameters (channel name, channel profile, etc.) //GameObject go = GameObject.Find ("ChannelName"); //InputField field = go.GetComponent<InputField>(); // create app if nonexistent if (ReferenceEquals(app, null)) { app = new UnityVideo(); // create app //app = new GameObject().AddComponent<TestHelloUnityVideo>(); app.loadEngine(""); // load engine Debug.Log("agora_: ApkLoaded"); } // join channel and jump to next scene app.join("test"); //VideoTimer.isStarted = true; }