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

Re: [webrtc-pc] setConfiguration throwing InvalidModificationError with default values

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Wed, 05 Jul 2017 20:57:47 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-313224750-1499288265-sysbot+gh@w3.org>
Do we just need to change the wording to be more clear, or do you think the error being thrown is a problem? If an application does this, then things should work fine:

var config = { bundlePolicy: 'max-bundle' };
const pc = new RTCPeerConnection(config);

// Later on, fiddle with some bits of |config|.
config.iceServers = [...]

Which seems like more maintainable code anyway.

GitHub Notification of comment by taylor-b
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1447#issuecomment-313224750 using your GitHub account
Received on Wednesday, 5 July 2017 20:57:53 UTC

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