Function compareIceServers

  • Compare configured ICE servers against the gathered candidates.

    For each configured ICE server URL, determine which candidates it produced (by matching the server's URL to the candidate's url field with credential/transport-suffix normalization). Flag servers that returned no candidates, and detect strict networks (configured STUN/TURN UDP but only TURN TCP candidates gathered).

    Parameters

    • iceServers: RTCIceServer[]

      The configured ICE servers from rtcConfig

    • candidates: RTCIceCandidateStats[]

      The gathered local candidates

    Returns PreCallIceServerComparisonEntry[] | undefined

    Comparison result with per-server entries and warning flags