TsgcTURNClient › Properties › STUNOptions
Inherited STUN options: FINGERPRINT, SOFTWARE attribute and Authentication credentials.
property STUNOptions: TsgcSTUNClient_Options read FSTUNOptions write SetSTUNOptions;
—
Inherited from TsgcSTUNClient. Controls STUN-level behaviour common to every TURN request (Allocate, Refresh, CreatePermission, ChannelBind):
stcNone, stcShortTermCredentials or stcLongTermCredentials) and the Username/Password used when the TURN server challenges a request with a 401 Unauthorized response. TURN normally mandates long-term credentials and will reject the ALLOCATE until authentication is configured here or on TURNOptions.oTURN.STUNOptions.Fingerprint := True;
oTURN.STUNOptions.Software := True;
oTURN.STUNOptions.Authentication.Credentials := stcLongTermCredentials;
oTURN.STUNOptions.Authentication.Username := 'user';
oTURN.STUNOptions.Authentication.Password := 'secret';
oTURN.Allocate;