TsgcRTCPeerConnection › Events › OnRTCLocalDescription
Fired when the local SDP offer/answer has been generated and can be edited.
property OnRTCLocalDescription: TsgcRTCLocalDescriptionEvent;
// TsgcRTCLocalDescriptionEvent = procedure(Sender: TObject; var LocalDescription: string) of object
—
Raised when the component has produced the local SDP (either an offer or an answer, depending on the negotiation role). The SDP includes the DTLS fingerprint, media/data sections, ufrag and password used by ICE. LocalDescription is passed by reference so you can inspect or rewrite it before it is delivered to the remote peer through the signalling channel — for example to remove media sections, force a specific codec order, or replace the default fingerprint.
procedure TForm1.oRTCLocalDescription(Sender: TObject;
var LocalDescription: string);
begin
Log('local SDP:' + sLineBreak + LocalDescription);
end;