Skip to content

Commit 26e7922

Browse files
authored
Merge pull request #759 from tguilbert-google/content_hint_update_v2
Clarify VideoEncoderConfig.contentHint
2 parents 633313b + 0795078 commit 26e7922

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

index.src.html

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2237,13 +2237,22 @@
22372237

22382238
The User Agent <em class="rfc2119">MAY</em> use this hint to set
22392239
expectations about incoming {{VideoFrame}}s and to improve encoding quality.
2240+
If using this hint:
2241+
- The User Agent <em class="rfc2119">MUST</em> respect other explicitly
2242+
set encoding options when configuring the encoder, whether they are
2243+
codec-specific encoding options or not.
2244+
- The User Agent <em class="rfc2119">SHOULD</em> make a best-effort
2245+
attempt to use additional configuration options to improve encoding
2246+
quality, according to the goals defined by the corresponding
2247+
[=video content hint=].
2248+
2249+
NOTE: Some encoder options are implementation specific, and mappings between
2250+
{{VideoEncoderConfig/contentHint}} and those options cannot be
2251+
prescribed.
22402252

22412253
The User Agent <em class="rfc2119">MUST NOT</em> refuse the configuration
22422254
if it doesn't support this content hint.
22432255
See {{VideoEncoder/isConfigSupported()}}.
2244-
2245-
NOTE: Any codec-specific encoding options take precedence over
2246-
{{contentHint}}.
22472256
</dd>
22482257

22492258
</dl>

0 commit comments

Comments
 (0)