- From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
- Date: Fri, 30 Aug 2019 21:18:55 +0000
- To: public-webrtc-logs@w3.org
> I think we've assumed that ontrack fires and the promise resolves, allowing you to do things in then() as soon as possible. @henbos Most events (`track`, `mute`, `unmute`, `addTrack` and `removeTrack`) fire *right before*ยน the success callback, which is fine. The exception is `negotiationneeded` which is designed to fire *after* for obvious reasons (super confusing to initiate a new round of negotiation before `SRD(answer)` has resolved). https://github.com/w3c/webrtc-pc/pull/2251 ensures `negotiationneeded` fires *after* even when `peerIdentity` is used. --- <sub>1. Substitute *"right before"* with *"before"* if identity validation takes a while, something https://github.com/w3c/webrtc-pc/pull/2251 also fixes.</sub> -- GitHub Notification of comment by jan-ivar Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2173#issuecomment-526753493 using your GitHub account
Received on Friday, 30 August 2019 21:18:57 UTC