public override async Task OutgoingCallAcceptedAsync(RelayMessage message)
 {
     // We didn't have the PeerName when initiating the outgoing call
     // but that field is populated on the remote answered message.
     Context.PeerName = message.FromName;
     var establishOutgoingState = new EstablishOutgoing(EstablishOutgoing.Reason.EstablishCall);
     await Context.SwitchState(establishOutgoingState);
 }
Example #2
0
 public override async Task ResumeAsync()
 {
     // Re-negotiate the SDP.
     var state = new EstablishOutgoing(EstablishOutgoing.Reason.EstablishCall);
     await Context.SwitchState(state);
 }
Example #3
0
 public override async Task CameraSelectionChanged()
 {
     // Re-negotiate the SDP.
     var state = new EstablishOutgoing(EstablishOutgoing.Reason.SwitchCamera);
     await Context.SwitchState(state);
 }