Esempio n. 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            // Configure the Video Chat View
            _videoChatView = new VideoChatView()
            {
                Frame           = View.Frame,
                ApiKey          = _apiKey,
                SessionId       = _sessionId,
                Token           = _token,
                SubscribeToSelf = false
            };

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

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

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

                this.ShowAlert(e.Message);
            };

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