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

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

From: Dennis Boldt via GitHub <sysbot+gh@w3.org>
Date: Wed, 01 Aug 2018 20:13:37 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issues.opened-346751177-1533154416-sysbot+gh@w3.org>
boldt has just created a new issue for https://github.com/w3c/webrtc-pc:

== How do I indicate the end of remote candidates? ==
Following the spec, it's not clear to me how to indicate the  end of remote candidates.

You write:

> This method can also be used to indicate the end of remote candidates when called with an empty string for the candidate member

and

> This can be indicated by calling addIceCandidate with a candidate value whose candidate property is set to an empty string

and

> If candidate.candidate is an empty string, process candidate as an end-of-candidates indication

and

> If this RTCIceCandidate represents an end-of-candidates indication, candidate is an empty string.

How do you mean this?

1. `pc.addIceCandidate('');`
2. `pc.addIceCandidate({candidate:''});`
3. `pc.addIceCandidate(new IceCandidate(''));`
4. `pc.addIceCandidate(new IceCandidate({candidate:''}));`

[Non of them works for me in Chrome 67](https://stackoverflow.com/questions/51641174/how-do-i-indicate-the-end-of-remote-candidates#51641174). Probably its not implemented yet?

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1952 using your GitHub account
Received on Wednesday, 1 August 2018 20:14:16 UTC

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