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

Re: [webrtc-pc] Using setConfiguration() to add application certificates to an RTCPeerConnection post-construction?

From: Taylor Brandstetter via GitHub <sysbot+gh@w3.org>
Date: Fri, 07 Jul 2017 15:47:27 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-313719231-1499442446-sysbot+gh@w3.org>
> If an RTCPeerConnection is constructed with no certificates supplied by the application, can setConfiguration() be used to add certificates later?

No, it appears to be the opposite. That's what @soareschen is pointing out. The quote is saying "if the certificates in the argument are _set_, and they differ from the existing certificates, throw an exception." That implies nothing happens if the argument isn't set.

I didn't realize this. This "if set" stipulation exists for other attributes, but of course for many it's moot since they have default values. So we need to decide on one API model or the other; do unset arguments represent "change to default value", or "don't change anything"? If we decide on the former, we need to remove these "if set" stipulations. If we decide on the latter, we need to remove the default values.

-- 
GitHub Notification of comment by taylor-b
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1454#issuecomment-313719231 using your GitHub account
Received on Friday, 7 July 2017 15:47:33 UTC

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