W3C home > Mailing lists > Public > public-webrtc-logs@w3.org > August 2018

Re: [webrtc-pc] How do I indicate the end of remote candidates?

From: Jan-Ivar Bruaroey via GitHub <sysbot+gh@w3.org>
Date: Thu, 02 Aug 2018 15:54:40 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-409976400-1533225278-sysbot+gh@w3.org>
@boldt Thanks for pointing to the [MDN example](https://developer.mozilla.org/en-US/docs/Web/API/RTCPeerConnection/addIceCandidate#Example). It had wrong info in it, and I've fixed it now. PTAL.

Hopefully that should clarify its intended use. In short, as a user of the API, signaling of end-of-candidates should happen automatically, provided you blindly forward what `onicecandidate` produces until it returns `null`. You're probably hitting that browsers haven't all implemented this yet.

 1. Is incorrect.
 2. `pc.addIceCandidate({candidate:''});` signals end of candidates.
 3. Is incorrect.
 4. is legacy. Please avoid.

GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1952#issuecomment-409976400 using your GitHub account
Received on Thursday, 2 August 2018 15:55:12 UTC

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