예제 #1
0
        public static PeerConnection.BundlePolicy ToNative(this BundlePolicy self)
        {
            switch (self)
            {
            case BundlePolicy.Balanced:
                return(PeerConnection.BundlePolicy.Balanced);

            case BundlePolicy.MaxCompat:
                return(PeerConnection.BundlePolicy.Maxcompat);

            case BundlePolicy.MaxBundle:
                return(PeerConnection.BundlePolicy.Maxbundle);

            default:
                throw new ArgumentOutOfRangeException(nameof(self), self, null);
            }
        }
 public static RTCBundlePolicy ToPlatformNative(this BundlePolicy nativePort) => (RTCBundlePolicy)nativePort;
 public static RTCBundlePolicy ToNative(this BundlePolicy self)
 {
     return((RTCBundlePolicy)self);
 }