internal void Disconnect() { if (client != null) { localVideoTrack?.RemoveRenderer(localView); remoteVideoTrack?.RemoveRenderer(remoteView); localVideoTrack = null; localView.RenderFrame(null); RemoteDisconnected(); client.Disconnect(); } }
void HangupButton_TouchUpInside(object sender, EventArgs e) { client?.Disconnect(); NavigationController.PopToRootViewController(true); }