TsgcTURNClient › Properties › TURNOptions
TURN-specific options: Allocation lifetime, long-term credentials, AutoRefresh and data-channel behaviour.
property TURNOptions: TsgcTURNClient_Options read FTURNOptions write SetTURNOptions;
—
Groups the options that are specific to the TURN protocol on top of the inherited STUNOptions:
Username and Password to the values the TURN server expects. When non-empty they override the inherited STUN authentication block.Allocations, Channels and Permissions control which categories are refreshed.oTURN.TURNOptions.Allocation.Lifetime := 600;
oTURN.TURNOptions.Authentication.Username := 'user';
oTURN.TURNOptions.Authentication.Password := 'secret';
oTURN.TURNOptions.AutoRefresh.Allocations := True;
oTURN.TURNOptions.AutoRefresh.Permissions := True;
oTURN.TURNOptions.AutoRefresh.Channels := True;
oTURN.Allocate;