public static PeerConnection.SdpSemantics ToNative(this SdpSemantics self) { switch (self) { case SdpSemantics.PlanB: return(PeerConnection.SdpSemantics.PlanB); case SdpSemantics.UnifiedPlan: return(PeerConnection.SdpSemantics.UnifiedPlan); default: throw new ArgumentOutOfRangeException(nameof(self), self, null); } }
public static RTCSdpSemantics ToPlatformNative(this SdpSemantics nativePort) => (RTCSdpSemantics)nativePort;
public static RTCSdpSemantics ToNative(this SdpSemantics self) { return((RTCSdpSemantics)self); }