TsgcRTCPeerConnectionEvents › OnRTCLocalDescription

OnRTCLocalDescription Event

Fired when the local SDP offer/answer has been generated and can be edited.

Syntax

property OnRTCLocalDescription: TsgcRTCLocalDescriptionEvent;
// TsgcRTCLocalDescriptionEvent = procedure(Sender: TObject; var LocalDescription: string) of object

Default Value

Remarks

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.

Example

procedure TForm1.oRTCLocalDescription(Sender: TObject;
  var LocalDescription: string);
begin
  Log('local SDP:' + sLineBreak + LocalDescription);
end;

Back to Events