TsgcICEClient

ICEOptions.

Introduction

TsgcICEClient is the client that implements the ICE protocol and allows you to send allocation requests to TURN servers. The client requires the TsgcTURNClient and a TsgcWebSocketClient.

 

Configuration

 

The ICE client has the following properties

 

 

The ICE client requires a TURN client to gather the candidates, so link a TsgcTURNClient to the TURN property of TsgcICEClient before calling the method GatherCandidates. You can obtain more information about how to configure the TURN client.

 


    oICE := TsgcICEClient.Create(nil);
    oTURN := TsgcTURNClient.Create(nil);
    oTURN.Host := 'www.esegece.com';
    oTURN.Port := 3478;
    oTURN.TURNOptions.Authentication.Credentials := stauLongTermCredential;
    oTURN.TURNOptions.Authentication.Username := 'sgc';
    oTURN.TURNOptions.Authentication.Password := 'secret';
    oICE.GatherCandidates();
    

 

Reference

Guides