|
133 | 133 | OpusBitstreamFormat format = "opus";
|
134 | 134 | [EnforceRange] unsigned long long frameDuration = 20000;
|
135 | 135 | [EnforceRange] unsigned long complexity;
|
136 |
| - [EnforceRange] unsigned long packetlossperc; |
| 136 | + [EnforceRange] unsigned long packetlossperc = 0; |
137 | 137 | boolean useinbandfec = false;
|
138 | 138 | boolean usedtx = false;
|
139 | 139 | };
|
|
162 | 162 | <dt><dfn dict-member for=OpusEncoderConfig>complexity</dfn></dt>
|
163 | 163 | <dd>
|
164 | 164 | 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. |
166 | 168 | </dd>
|
167 | 169 | <dt><dfn dict-member for=OpusEncoderConfig>packetlossperc</dfn></dt>
|
168 | 170 | <dd>
|
169 | 171 | 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. |
171 | 176 | </dd>
|
172 | 177 | <dt><dfn dict-member for=OpusEncoderConfig>useinbandfec</dfn></dt>
|
173 | 178 | <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`. |
175 | 181 | </dd>
|
176 | 182 | <dt><dfn dict-member for=OpusEncoderConfig>usedtx</dfn></dt>
|
177 | 183 | <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`. |
179 | 185 | </dd>
|
180 | 186 | </dl>
|
181 | 187 |
|
|
0 commit comments