TsgcTURNClientProperties › TURNOptions

TURNOptions Property

TURN-specific options: Allocation lifetime, long-term credentials, AutoRefresh and data-channel behaviour.

Syntax

property TURNOptions: TsgcTURNClient_Options read FTURNOptions write SetTURNOptions;

Default Value

Remarks

Groups the options that are specific to the TURN protocol on top of the inherited STUNOptions:

Example

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;

Back to Properties