TsgcRTCPeerConnection › Events › OnRTCRemoteDescription
Fired when the remote SDP offer/answer is received through signalling.
property OnRTCRemoteDescription: TsgcRTCRemoteDescriptionEvent;
// TsgcRTCRemoteDescriptionEvent = procedure(Sender: TObject; const aRemoteDescription: string) of object
—
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.
procedure TForm1.oRTCRemoteDescription(Sender: TObject;
const aRemoteDescription: string);
begin
Log('remote SDP:' + sLineBreak + aRemoteDescription);
end;