forceRelayCandidate property

bool forceRelayCandidate
final

Controls whether the SDK should force TURN relay for peer connections. When enabled, the SDK will only use TURN relay candidates for ICE gathering, which prevents the "local network access" permission popup from appearing.

  • Note: Enabling this may affect the quality of calls when devices are on the same local network, as all media will be relayed through TURN servers.
  • Important: This setting is disabled by default to maintain optimal call quality.

Implementation

final bool forceRelayCandidate;