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(); }
public SubscriberDelegate(VideoChatView This) { _this = This; }
public PublisherDelegate(VideoChatView This) { _this = This; }
public SessionDelegate(VideoChatView This) { _this = This; }