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

Re: [webrtc-pc] ICE restart deserves a first-class API. (#2167)

From: Philipp Hancke via GitHub <sysbot+gh@w3.org>
Date: Wed, 10 Apr 2019 08:56:27 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-481603488-1554886586-sysbot+gh@w3.org>
one concern I have: I am observing calls to createOffer and look for {iceRestart: true} to determine if an ice restart happened. You are hiding this by using an internal slot.

wdyt about
```
pc.onnegotiationneeded = async () => {
  await pc.setLocalDescription(await pc.createOffer({iceRestart: pc.iceRestarting));
  io.send({desc: pc.localDescription});
}
```


-- 
GitHub Notification of comment by fippo
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/2167#issuecomment-481603488 using your GitHub account
Received on Wednesday, 10 April 2019 08:56:30 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 15:32:56 UTC