コード例 #1
0
 public static Enums.IceGatheringState ToNativePort(this IceGatheringState platformNative)
 {
     if (platformNative == IceGatheringState.Complete)
     {
         return(Enums.IceGatheringState.Complete);
     }
     if (platformNative == IceGatheringState.Gathering)
     {
         return(Enums.IceGatheringState.Gathering);
     }
     if (platformNative == IceGatheringState.New)
     {
         return(Enums.IceGatheringState.New);
     }
     throw new ArgumentOutOfRangeException(nameof(platformNative), platformNative, null);
 }
コード例 #2
0
 public void OnIceGatheringChange(Webrtc.PeerConnection.IceGatheringState p0) =>
 OnIceGatheringStateChange?.Invoke(this, EventArgs.Empty);