ICE Framework
ICE (Interactive Connectivity Establishment) support in sgcWebSockets. Find the optimal path for peer-to-peer communication.
ICE (Interactive Connectivity Establishment) support in sgcWebSockets. Find the optimal path for peer-to-peer communication.
uses
sgcP2P, sgcP2P_ICE_Classes;
var
ICE: TsgcICEClient;
begin
ICE := TsgcICEClient.Create(nil);
ICE.ICEServers.AddURL('stun:stun.l.google.com:19302');
ICE.ICEServers.AddURL('turn:turn.example.com:3478', 'user', 'pass');
ICE.OnICECandidate := HandleCandidate;
ICE.GatherCandidates;
end;