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

Re: [webrtc-pc] setConfiguration can "unset" some configurations

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Thu, 06 Jul 2017 14:38:45 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-313415906-1499351923-sysbot+gh@w3.org>
Unsetting the certs will fail with `InvalidModificationError. But if I did:

```
pc = new RTCPeerConnection( { iceServers: [...] } );
pc.setConfiguration({});
```

The ICE servers *would* get unset. And I don't see a problem with this; maybe it's a little confusing but it's how the API was designed, and is consistent with how `getParameters`/`setParameters` work. You have to pass in the full dictionary every time, not just the things you want to change.

-- 
GitHub Notification of comment by taylor-b
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1454#issuecomment-313415906 using your GitHub account
Received on Thursday, 6 July 2017 14:38:51 UTC

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