TsgcTURNServer › プロパティ › TURNOptions
TURN固有のオプション: デフォルトのAllocationライフタイム、ポート範囲、Relay IP、長期資格情報。
property TURNOptions: TsgcTURNServer_Options read FTURNOptions write SetTURNOptions;
—
TURN サーバーがリレーエンドポイントを割り当て、クライアントを認証する方法を制御するオプションをグループ化します。
LongTermCredentials を有効にし、Realm と StaleNonce を設定し、OnSTUNRequestAuthorization ハンドラーからユーザーごとのパスワードを提供してください。oTURN.TURNOptions.Allocation.DefaultLifeTime := 600;
oTURN.TURNOptions.Allocation.MaxLifeTime := 3600;
oTURN.TURNOptions.Allocation.MinPort := 49152;
oTURN.TURNOptions.Allocation.MaxPort := 65535;
oTURN.TURNOptions.Authentication.Enabled := True;
oTURN.TURNOptions.Authentication.LongTermCredentials.Enabled := True;
oTURN.TURNOptions.Authentication.LongTermCredentials.Realm := 'esegece.com';
oTURN.Active := True;