Skip to content

Commit 3fe2b0e

Browse files
Add more defaults, notes
1 parent 68222f0 commit 3fe2b0e

File tree

1 file changed

+11
-5
lines changed

1 file changed

+11
-5
lines changed

opus_codec_registration.src.html

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
OpusBitstreamFormat format = "opus";
134134
[EnforceRange] unsigned long long frameDuration = 20000;
135135
[EnforceRange] unsigned long complexity;
136-
[EnforceRange] unsigned long packetlossperc;
136+
[EnforceRange] unsigned long packetlossperc = 0;
137137
boolean useinbandfec = false;
138138
boolean usedtx = false;
139139
};
@@ -162,20 +162,26 @@
162162
<dt><dfn dict-member for=OpusEncoderConfig>complexity</dfn></dt>
163163
<dd>
164164
Configures the encoder's computational complexity. The valid range is `0` to `10`,
165-
with `10` representing the highest complexity.
165+
with `10` representing the highest complexity. If no value is specificied, the
166+
default value is platform-specific: User Agents <em class="rfc2119">SHOULD</em>
167+
set a default of `5` for mobile platforms, and a default of `9` for all other platforms.
166168
</dd>
167169
<dt><dfn dict-member for=OpusEncoderConfig>packetlossperc</dfn></dt>
168170
<dd>
169171
Configures the encoder's expected packet loss percentage. The valid range is
170-
`0` to `100`.
172+
`0` to `100`. If no value is specified, the default is `0`.
173+
174+
NOTE: The packet loss percentage might be updated over the course of the encoding, and
175+
it is recommended for User Agents to support these reconfigurations.
171176
</dd>
172177
<dt><dfn dict-member for=OpusEncoderConfig>useinbandfec</dfn></dt>
173178
<dd>
174-
Configures whether the encoder should generate Opus in-band fec or not.
179+
Specifies whether the encoder provides Opus in-band FEC. If no value is specified,
180+
the default is `false`.
175181
</dd>
176182
<dt><dfn dict-member for=OpusEncoderConfig>usedtx</dfn></dt>
177183
<dd>
178-
Configures whether the encoder should use DTX or not.
184+
Specifies if the encoder uses DTX. If no value is specified, the default is `false`.
179185
</dd>
180186
</dl>
181187

0 commit comments

Comments
 (0)