示例#1
0
 internal RTCConfiguration(ref RTCConfigurationInternal v)
 {
     iceServers           = v.iceServers;
     iceTransportPolicy   = v.iceTransportPolicy.AsEnum <RTCIceTransportPolicy>();
     bundlePolicy         = v.bundlePolicy.AsEnum <RTCBundlePolicy>();
     iceCandidatePoolSize = v.iceCandidatePoolSize;
     enableDtlsSrtp       = v.enableDtlsSrtp;
 }
示例#2
0
        internal RTCConfigurationInternal Cast()
        {
            RTCConfigurationInternal instance = new RTCConfigurationInternal
            {
                iceServers           = this.iceServers,
                iceTransportPolicy   = OptionalInt.FromEnum(this.iceTransportPolicy),
                bundlePolicy         = OptionalInt.FromEnum(this.bundlePolicy),
                iceCandidatePoolSize = this.iceCandidatePoolSize,
                enableDtlsSrtp       = this.enableDtlsSrtp
            };

            return(instance);
        }