setIceConfig(iceConfig?)
This is part of the Advanced Firewall Control add-on. Contact Sales to enable this feature.
Parameters
Array of TURN/STUN server configurations. Each entry follows the
RTCIceServer shape:urls:string | string[](required): Single or multiple STUN/TURN URLs.username:string(optional): Username for the TURN server(s) specified.credential:string(optional): Credential for the TURN server(s) specified.
Controls how custom servers are ordered relative to Daily’s defaults:
'front'— custom servers are tried first (default)'back'— Daily’s servers are tried first'replace'— only custom servers are used
'replace' only when you need to force all traffic through your own TURN servers.'all'(default) uses all candidates.'relay'forces relay-only (TURN) candidates — useful for testing firewall traversal but not recommended for production.
Return value
Returnsthis for chaining.