public void LieaveOn() { if (!ReferenceEquals(app, null)) { app.leave(); app.unloadEngine(); app = null; } }
private void onLeaveButtonClicked() { if (!ReferenceEquals(app, null)) { app.leave(); // leave channel app.unloadEngine(); // delete engine app = null; // delete app //VideoTimer.timer = 0f; //VideoTimer.isStarted = false; } }
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; }
public void onLeaveButtonClicked(bool UnloadScene = true) { //Debug.Log("agora_: onLeaveButtonClicked"); if (!ReferenceEquals(app, null)) { app.leave(); app.unloadEngine(); app = null; if (UnloadScene) { SceneManager.LoadScene(HomeSceneName, LoadSceneMode.Single); } /*VideoCallPhotoManager.FolderName = ""; * VideoCallPhotoManager.FolderDate = null; * GlobalParameters.isSameSession = false;*/ Models.cmsg.comand = "stop"; string json = JsonUtility.ToJson(Models.cmsg); WEbSocketController.GetInstance.SendMessage(json); //CallingProccessManager.EndCalling(); } }