RTC PeerConnection

RTCPeerConnection component in sgcWebSockets. Establish WebRTC peer-to-peer connections for audio, video, and data channels.

Capabilities

  • WebRTC peer-to-peer audio, video, and data channels
  • SDP offer/answer exchange for session negotiation
  • Integrated ICE candidate gathering and connectivity checks
  • DTLS-SRTP encryption for secure media transport
  • Data channel API for arbitrary peer-to-peer data

Delphi Example

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;

Documentation & Demos

Deep-link to the component reference, grab the ready-to-run demo project, and download the trial.

Ready to Use WebRTC?

Download the free trial and start building in minutes.