public void OnStartCall(ARDMainView mainView, string room, bool isLoopback) { if (string.IsNullOrWhiteSpace(room)) { if (isLoopback) { room = GenerateRoom.GenerateRoomName(); } else { ShowAlertWithMessage("Missing room name."); return; } } room = room.Trim(); var videoCallViewController = new AppRTCCallViewController(room, isLoopback) { Delegate = this }; // var videoCallViewController = new ARDVideoCallViewController(room, isLoopback, this); videoCallViewController.ModalTransitionStyle = UIModalTransitionStyle.CrossDissolve; videoCallViewController.ModalPresentationStyle = UIModalPresentationStyle.OverCurrentContext; PresentViewController(videoCallViewController, true, null); }
public override void LoadView() { base.LoadView(); Title = "AppRTC Mobile"; _mainView = new ARDMainView(CGRect.Empty); _mainView.Delegate = this; _mainView.BackgroundColor = UIColor.White; View = _mainView; AddSettingsBarButton(); }
public void DidToggleAudioLoop(ARDMainView mainView) { if (mainView.IsAudioLoopPlaying) { _audioPlayer.Stop(); } else { _audioPlayer.Play(); } mainView.IsAudioLoopPlaying = _audioPlayer.Playing; }