negotiationneeded
Negotiationneeded is an event in the WebRTC API that is fired on an RTCPeerConnection to indicate that renegotiation of the session description is required. It signals that pending changes to the connection, such as modifications to tracks or transceivers, require updating the local or remote session descriptions.
When this event is emitted, the application typically starts a signaling round to renegotiate the connection.
Negotiationneeded is often triggered by changes that affect the signaling state, such as adding or removing
To avoid negotiation conflicts and loops (glare), developers typically serialize negotiations with a guard flag or
See also: WebRTC, RTCPeerConnection, signaling, offer/answer model.