TsgcICEClientProperties › ICEOptions

ICEOptions Property

ICE agent policies covering candidate gathering sources and the connectivity check list limits.

Syntax

property ICEOptions: TsgcICEClient_Options read FICEOptions write SetICEOptions;

Default Value

Remarks

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.

Example

oICE := TsgcICEClient.Create(nil);
oICE.ICEOptions.GatherCandidates.STUN := True;
oICE.ICEOptions.GatherCandidates.TURN := True;
oICE.ICEOptions.CheckList.MaxCandidatePairs := 50;
oICE.GatherCandidates;

Back to Properties