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; } }