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

Re: Removing syntaxerror for ice candidates

From: Jan-Ivar Bruaroey <jib@mozilla.com>
Date: Thu, 16 Jul 2015 11:27:16 -0400
Message-ID: <55A7CD54.4070205@mozilla.com>
To: Harald Alvestrand <harald@alvestrand.no>, public-webrtc@w3.org
On 7/15/15 5:03 AM, Harald Alvestrand wrote:
>> If we plan to fail when an RTCIceCandidate is constructed with a bad
>> candidate string, we need to perform the same check every time the
>> corresponding attribute is set.
> Yep. Which argues that the RTCIceCandidate should either be immutable or
> allow syntactically invalid candidates.
>
> Otherwise, this will work:
>
> c.candidate = part1 + ' ' + part2
>
> but this will not work
>
> c.candidate = part1
> c.candidate += ' '
> c.candidate += part2
>
> Violates the principle of least surprise.

Good point. Not to advocate change, but just for info, what was the 
rationale for RTCIceCandidate not just being a dictionary?

.: Jan-Ivar :.
Received on Thursday, 16 July 2015 15:27:49 UTC

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