TsgcRTCPeerConnectionEvents › OnRTCRemoteDescription

OnRTCRemoteDescription Event

Fired when the remote SDP offer/answer is received through signalling.

Syntax

property OnRTCRemoteDescription: TsgcRTCRemoteDescriptionEvent;
// TsgcRTCRemoteDescriptionEvent = procedure(Sender: TObject; const aRemoteDescription: string) of object

Default Value

Remarks

Raised when the remote peer delivers its SDP (offer if the peer started negotiation, answer otherwise) through the signalling WebSocket. The description has already been applied to the internal ICE agent when the event fires; use it for logging, to extract the remote DTLS fingerprint, or to correlate the session with application-level metadata.

Example

procedure TForm1.oRTCRemoteDescription(Sender: TObject;
  const aRemoteDescription: string);
begin
  Log('remote SDP:' + sLineBreak + aRemoteDescription);
end;

Back to Events