ICE Client
TsgcICEClient component for gathering ICE candidates and establishing optimal peer-to-peer connections.
TsgcICEClient component for gathering ICE candidates and establishing optimal peer-to-peer connections.
uses
sgcICE_Client;
var
Client: TsgcICEClient;
begin
Client := TsgcICEClient.Create(nil);
Client.STUNServer := 'stun.l.google.com:19302';
Client.OnCandidateGathered := HandleCandidate;
Client.OnConnected := HandleConnected;
Client.GatherCandidates;
// Exchange candidates with remote peer
Client.AddRemoteCandidate(RemoteSDP);
end;
Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.