W3C home > Mailing lists > Public > public-webrtc@w3.org > September 2016

[webrtc-pc] pc.createOffer(); pc.addTrack(track); should not include track

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Wed, 07 Sep 2016 18:51:39 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-175578232-1473274298-sysbot+gh@w3.org>
jan-ivar has just created a new issue for 
https://github.com/w3c/webrtc-pc:

== pc.createOffer(); pc.addTrack(track); should not include track ==
Now that [createOffer has procedural 
steps](https://rawgit.com/w3c/webrtc-pc/7f66138784d86bf3f944a7327386ca0b10e351a9/webrtc.html#dom-rtcpeerconnection-createoffer)
 thanks to @adam-be, we should add language to capture some state 
synchronously, so that in the infamous case of:
```js
    pc.addTrack(trackX, stream);
    pc.createOffer().then(offer => { ... })
    pc.addTrack(trackY, stream);
```

the `offer` does not include `trackY` in the typical (nothing on the 
queue) case, as we agreed over a year ago.

Please view or discuss this issue at 
https://github.com/w3c/webrtc-pc/issues/782 using your GitHub account
Received on Wednesday, 7 September 2016 18:51:46 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:49 UTC