RTC PeerConnection
RTCPeerConnection component in sgcWebSockets. Establish WebRTC peer-to-peer connections for audio, video, and data channels.
RTCPeerConnection component in sgcWebSockets. Establish WebRTC peer-to-peer connections for audio, video, and data channels.
uses
sgcWebRTC_Client;
var
PC: TsgcRTCPeerConnection;
begin
PC := TsgcRTCPeerConnection.Create(nil);
PC.ICEServers.Add('stun:stun.l.google.com:19302');
PC.OnICECandidate := HandleICECandidate;
PC.OnDataChannel := HandleDataChannel;
// Create offer and send to remote peer
Offer := PC.CreateOffer;
end;
Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.