Closed juberti closed 9 years ago
Note that you would have to fire the event when you enter stable state if there are outstanding changes that weren't captured properly by the last round of negotiation. For example, if you have more tracks than you could add to m= sections in an answer.
Discussion at IETF 90 established this baseline:
Resolving PRANSWER to be done by Thursday PM
removing discuss tag since this is on justin
Resolution was to never send onnegotiationneeded in any state other than stable. Basically, onNN just means "you need to do the offer/answer dance".
Closing as out of scope for JSEP. Currently being handled in https://github.com/w3c/webrtc-pc/pull/186
Right now, any changes to the session, via addStream/addTrack, or tweaks on the upcoming RtpSender object, trigger onnegotiationneeded. This makes handling of onnegotiationneeded by the application difficult.
Harald suggests only firing onnegotiationneeded when in the stable state. This doesn't solve the situation fully when you add multiple tracks, but it should allow applications to always call createOffer in response to an onnegotiationneeded.
Cullen also is concerned about how Harald's proposal would interact with PRANSWER.