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

Re: [webrtc-pc] A simpler glare-proof setLocalDescription() (#2165)

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Thu, 18 Jul 2019 18:48:43 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-512940886-1563475722-sysbot+gh@w3.org>
Note the version I presented in [the slides](https://docs.google.com/presentation/d/1xcvf0udNeSH7s1FOY7RRqr1dEFvokZjn-MZPjwy3iXQ/edit#slide=id.g5c2f3df65b_11_66) did not return the description, so you'll have to write:
```js
pc.onnegotiationneeded = async () => {
  await pc.setLocalDescription();
  io.send({desc: pc.localDescription});
}
```


-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2165#issuecomment-512940886 using your GitHub account
Received on Thursday, 18 July 2019 18:48:45 UTC

This archive was generated by hypermail 2.4.0 : Friday, 17 January 2020 19:22:25 UTC