rtcweb-wg / jsep

33 stars 32 forks source link

Figure out exactly when onnegotiationneeded is fired #26

Closed juberti closed 9 years ago

juberti commented 10 years ago

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.

martinthomson commented 10 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.

juberti commented 10 years ago

Discussion at IETF 90 established this baseline:

juberti commented 10 years ago
juberti commented 10 years ago

Resolving PRANSWER to be done by Thursday PM

ekr commented 10 years ago

removing discuss tag since this is on justin

juberti commented 10 years ago

Resolution was to never send onnegotiationneeded in any state other than stable. Basically, onNN just means "you need to do the offer/answer dance".

juberti commented 9 years ago

Closing as out of scope for JSEP. Currently being handled in https://github.com/w3c/webrtc-pc/pull/186