RTCConfiguration constructor

RTCConfiguration({
  1. Iterable<RTCIceServer>? iceServers,
  2. RTCIceTransportPolicy? iceTransportPolicy,
  3. RTCBundlePolicy? bundlePolicy,
  4. RTCRtcpMuxPolicy? rtcpMuxPolicy,
  5. Iterable<RTCCertificate>? certificates,
  6. int? iceCandidatePoolSize,
})

Implementation

factory RTCConfiguration(
        {Iterable<RTCIceServer>? iceServers,
        RTCIceTransportPolicy? iceTransportPolicy,
        RTCBundlePolicy? bundlePolicy,
        RTCRtcpMuxPolicy? rtcpMuxPolicy,
        Iterable<RTCCertificate>? certificates,
        int? iceCandidatePoolSize}) =>
    RTCConfiguration._(
        iceServers: iceServers ?? const [],
        iceTransportPolicy:
            iceTransportPolicy?.value ?? RTCIceTransportPolicy.all.value,
        bundlePolicy: bundlePolicy?.value ?? RTCBundlePolicy.balanced.value,
        rtcpMuxPolicy: rtcpMuxPolicy?.value ?? RTCRtcpMuxPolicy.require.value,
        certificates: certificates ?? const [],
        iceCandidatePoolSize: iceCandidatePoolSize ?? 0);