Exemplo n.º 1
0
 public static IceConnectionState ToNet(this PeerConnection.IceConnectionState self)
 {
     if (self == PeerConnection.IceConnectionState.Checking)
     {
         return(IceConnectionState.Checking);
     }
     if (self == PeerConnection.IceConnectionState.Closed)
     {
         return(IceConnectionState.Closed);
     }
     if (self == PeerConnection.IceConnectionState.Completed)
     {
         return(IceConnectionState.Completed);
     }
     if (self == PeerConnection.IceConnectionState.Connected)
     {
         return(IceConnectionState.Connected);
     }
     if (self == PeerConnection.IceConnectionState.Disconnected)
     {
         return(IceConnectionState.Disconnected);
     }
     if (self == PeerConnection.IceConnectionState.Failed)
     {
         return(IceConnectionState.Failed);
     }
     if (self == PeerConnection.IceConnectionState.New)
     {
         return(IceConnectionState.New);
     }
     throw new ArgumentOutOfRangeException(nameof(self), self, null);
 }
 public void OnIceConnectionChange(PeerConnection.IceConnectionState p0)
 {
     _listener.OnIceConnectionChange(p0.ToNet());
 }
Exemplo n.º 3
0
 public void OnIceConnectionChange(PeerConnection.IceConnectionState iceConnectionState) => _peerConnectionDelegate.OnIceConnectionChange(iceConnectionState.ToNativePort());
Exemplo n.º 4
0
 public void OnIceConnectionChange(PeerConnection.IceConnectionState p0)
 {
 }
Exemplo n.º 5
0
 public void OnIceConnectionStateChanged(PeerConnection.IceConnectionState iceConnectionState)
 {
     System.Diagnostics.Debug.WriteLine($"{nameof(OnIceConnectionStateChanged)}");
 }
Exemplo n.º 6
0
 public void OnIceConnectionStateChanged(PeerConnection.IceConnectionState iceConnectionState)
 {
     Console.WriteLine($"{nameof(OnIceConnectionStateChanged)}: {iceConnectionState.Name()}");
 }