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