Пример #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());
 }
Пример #3
0
 public void OnIceConnectionChange(PeerConnection.IceConnectionState iceConnectionState) => _peerConnectionDelegate.OnIceConnectionChange(iceConnectionState.ToNativePort());
Пример #4
0
 public void OnIceConnectionChange(PeerConnection.IceConnectionState p0)
 {
 }
Пример #5
0
 public void OnIceConnectionStateChanged(PeerConnection.IceConnectionState iceConnectionState)
 {
     System.Diagnostics.Debug.WriteLine($"{nameof(OnIceConnectionStateChanged)}");
 }
Пример #6
0
 public void OnIceConnectionStateChanged(PeerConnection.IceConnectionState iceConnectionState)
 {
     Console.WriteLine($"{nameof(OnIceConnectionStateChanged)}: {iceConnectionState.Name()}");
 }