示例#1
0
 public override void ViewDidLoad()
 {
     base.ViewDidLoad();
     NavigationController.NavigationBarHidden = true;
     RoomNameLabel.Text = OpentokSettings.Current.RoomName;
     BackgroundTap.ShouldRequireFailureOfGestureRecognizer(BackgroundDoubleTap);
     BusyIndicatorView.StartAnimating();
     _opentokService = OpentokStreamingService.Instance;
     StartSessionAsync();
     _opentokService.OnPublishStarted += () => { VideoMuted = false; };
     _opentokService.OnSessionEnded   += () => { LeaveChannel(); };
 }