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

> 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