Skip to content

Commit

Permalink
Adding defaults for RTCRtpEncodingParameters.active and priority
Browse files Browse the repository at this point in the history
Fixes #1491.

The rest of the encoding parameters (`ptime`, `maxBitrate`,
`maxFramerate`, etc.) are optional, but `active` and `priority` need
default values in case they aren't specified in the `sendEncodings`
passed into `addTransceiver`.
  • Loading branch information
taylor-b committed Aug 9, 2017
1 parent 226d9af commit 453ba4f
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions webrtc.html
Expand Up @@ -6289,8 +6289,8 @@ <h2>Dictionary <dfn>RTCRtpParameters</dfn> Members</h2>
RTCRtpRtxParameters rtx;
RTCRtpFecParameters fec;
RTCDtxStatus dtx;
boolean active;
RTCPriorityType priority;
boolean active = true;
RTCPriorityType priority = "low";
unsigned long ptime;
unsigned long maxBitrate;
double maxFramerate;
Expand Down Expand Up @@ -6337,7 +6337,8 @@ <h2>Dictionary <dfn>RTCRtpEncodingParameters</dfn>
sender.</p>
</dd>
<dt><dfn><code>active</code></dfn> of type <span class=
"idlMemberType"><a>boolean</a></span></dt>
"idlMemberType"><a>boolean</a></span>, defaulting to
<code>true</code></dt>
<dd>
<p>For an <code><a>RTCRtpSender</a></code>, indicates that this
encoding is actively being sent. Setting it to <code>false</code>
Expand All @@ -6348,7 +6349,8 @@ <h2>Dictionary <dfn>RTCRtpEncodingParameters</dfn>
decoded.</p>
</dd>
<dt><dfn><code>priority</code></dfn> of type <span class=
"idlMemberType"><a>RTCPriorityType</a></span></dt>
"idlMemberType"><a>RTCPriorityType</a></span>, defaulting to
<code>"low"</code></dt>
<dd>
<p>Indicates the priority of this encoding. It is specified in
[[!RTCWEB-TRANSPORT]], Section 4.</p>
Expand Down

0 comments on commit 453ba4f

Please sign in to comment.