W3C home > Mailing lists > Public > public-webrtc@w3.org > May 2014

Re: renaming updateIce

From: Jan-Ivar Bruaroey <jib@mozilla.com>
Date: Fri, 02 May 2014 19:41:45 -0400
Message-ID: <53642D39.4000609@mozilla.com>
To: cowwoc <cowwoc@bbs.darktech.org>, Adam Bergkvist <adam.bergkvist@ericsson.com>, public-webrtc@w3.org
On 5/2/14 4:47 PM, cowwoc wrote:
> Or, use a different dictionary for the initial configuration and 
> updating an existing configuration. The former would have defaults. 
> The latter would not. Or just use the Builder pattern :)

Or use the pattern that Justin mentioned:

   var config = pc.getConfiguration();
   config.iceTransports = "foo";
   pc.setConfiguration(cfg);

and leave it to the implementation to figure out what changed (which 
isn't difficult).

> Gili

.: Jan-Ivar :.
Received on Friday, 2 May 2014 23:42:14 UTC

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