W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > July 2017

Re: [webrtc-pc] setRemoteDescription and ontrack order of events: SRD before ontrack?

From: henbos via GitHub <sysbot+gh@w3.org>
Date: Wed, 26 Jul 2017 11:06:15 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-318022206-1501067173-sysbot+gh@w3.org>
Actually, I found that "addstream" is fired _after_ the promise's then-callback is invoked in Chrome for the exact same reasons as "track" in the spec and in my work-in-progress: it's queued to fire in the next loop.

A `[[pendingTrackEvents]]` would be a nice solution to this if we want a promise to be resolved after all events have guaranteed to be fired, since a fired track event does not tell you how many more events are pending.

GitHub Notification of comment by henbos
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1508#issuecomment-318022206 using your GitHub account
Received on Wednesday, 26 July 2017 11:06:16 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:21:40 UTC