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

Re: [webrtc-pc] createOffer(): Built-in certificate behavior

From: jan-ivar via GitHub <sysbot+gh@w3.org>
Date: Fri, 02 Jun 2017 18:48:29 +0000
To: public-webrtc-logs@w3.org
Message-ID: <issue_comment.created-305878881-1496429308-sysbot+gh@w3.org>
@fippo That assumption is already invalid, because WebIDL normalizes various things already, like default values and empty dictionaries in place of absences. E.g. with
```js
var pc = new RTCPeerConnection({iceServers:[]});
```
`pc.getConfiguration()` will at minimum produce:
```js
{
  bundlePolicy: "balanced",
  iceCandidatePoolSize: 0,
  iceServers: [],
  iceTransportPolicy: "all",
  rtcpMuxPolicy: "require",
};
```

This came up before in https://github.com/w3c/mediacapture-main/issues/360. I support fewer ways of reading the same data.

-- 
GitHub Notification of comment by jan-ivar
Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1322#issuecomment-305878881 using your GitHub account
Received on Friday, 2 June 2017 18:48:36 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 4 June 2019 15:32:43 UTC