public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Hide top Nav bar
            this.NavigationController.SetNavigationBarHidden(true, false);

            // Configure the Video Chat View
            _videoChatView = new VideoChatView()
            {
                Frame           = View.Frame,
                ApiKey          = API_KEY,
                SessionId       = SESSION_ID,
                Token           = TOKEN,
                SubscribeToSelf = true
            };

            // Add The View
            View.AddSubview(_videoChatView);

            // Subscribe to Events
            _videoChatView.OnHangup += (sender, e) =>
            {
                Debug.WriteLine("OnHangup: User tapped the hangup button.");
            };

            _videoChatView.OnError += (sender, e) =>
            {
                Debug.WriteLine(e.Message);

                this.ShowAlert(e.Message);
            };

            // Connect to Session
            _videoChatView.Connect();
        }
Exemplo n.º 2
0
 public PublisherDelegate(VideoChatView This)
 {
     _this = This;
 }
Exemplo n.º 3
0
 public SubscriberDelegate(VideoChatView This)
 {
     _this = This;
 }
Exemplo n.º 4
0
 public SessionDelegate(VideoChatView This)
 {
     _this = This;
 }