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()); }
public void OnIceConnectionChange(PeerConnection.IceConnectionState iceConnectionState) => _peerConnectionDelegate.OnIceConnectionChange(iceConnectionState.ToNativePort());
public void OnIceConnectionChange(PeerConnection.IceConnectionState p0) { }
public void OnIceConnectionStateChanged(PeerConnection.IceConnectionState iceConnectionState) { System.Diagnostics.Debug.WriteLine($"{nameof(OnIceConnectionStateChanged)}"); }
public void OnIceConnectionStateChanged(PeerConnection.IceConnectionState iceConnectionState) { Console.WriteLine($"{nameof(OnIceConnectionStateChanged)}: {iceConnectionState.Name()}"); }