internal RTCConfiguration(ref RTCConfigurationInternal v) { iceServers = v.iceServers; iceTransportPolicy = v.iceTransportPolicy.AsEnum <RTCIceTransportPolicy>(); bundlePolicy = v.bundlePolicy.AsEnum <RTCBundlePolicy>(); iceCandidatePoolSize = v.iceCandidatePoolSize; enableDtlsSrtp = v.enableDtlsSrtp; }
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); }