TsgcICEClient › Properties › ICEOptions
ICE agent policies covering candidate gathering sources and the connectivity check list limits.
property ICEOptions: TsgcICEClient_Options read FICEOptions write SetICEOptions;
—
Container for the ICE policies defined in RFC 8445. GatherCandidates.STUN (default True) enables server-reflexive discovery through the attached TURNClient acting as a STUN probe, while GatherCandidates.TURN (default True) enables relayed candidates via a TURN allocation. CheckList.MaxCandidatePairs caps the number of pairs scheduled for connectivity checks (default 100) to keep pacing and memory bounded on large candidate sets. Change the flags before calling GatherCandidates; once gathering has started the policies apply to the current session.
oICE := TsgcICEClient.Create(nil);
oICE.ICEOptions.GatherCandidates.STUN := True;
oICE.ICEOptions.GatherCandidates.TURN := True;
oICE.ICEOptions.CheckList.MaxCandidatePairs := 50;
oICE.GatherCandidates;