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

[webrtc-pc] Default values for RTCRtpEncodingParameters

From: Soares Chen via GitHub <sysbot+gh@w3.org>
Date: Mon, 17 Jul 2017 08:04:23 +0000
To: public-webrtc@w3.org
Message-ID: <issues.opened-243320736-1500278661-sysbot+gh@w3.org>
soareschen has just created a new issue for https://github.com/w3c/webrtc-pc:

== Default values for RTCRtpEncodingParameters ==
The current definition seems to imply that all fields are optional and have the value `undefined` if not set. However it seems that at least some of the fields should have default values, e.g. `active` and `priority`.

For example, the following examples have different `active` values:

```javascript
// sender.encodings[0].active == true
pc.addTransceiver('audio');

// sender.encodings[0].active == true
pc.addTransceiver('audio', { sendEncodings: [] });

// sender.encodings[0].active == undefined
pc.addTransceiver('audio', { sendEncodings: [{}] });
```

Please view or discuss this issue at https://github.com/w3c/webrtc-pc/issues/1491 using your GitHub account
Received on Monday, 17 July 2017 08:04:29 UTC

This archive was generated by hypermail 2.3.1 : Monday, 23 October 2017 15:19:51 UTC