Skip to content

Commit 11307bc

Browse files
authored
Merge pull request w3c#729 from Djuffin/content-hint
Add VideoEncoderConfig.contentHint
2 parents 886f898 + 0061291 commit 11307bc

File tree

1 file changed

+19
-1
lines changed

1 file changed

+19
-1
lines changed

index.src.html

Lines changed: 19 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,9 +47,12 @@
4747
type: dfn; text: current playback position; url: media.html#current-playback-position
4848
type: dfn; text: live; url: infrastructure.html#live
4949

50-
spec: webrtc-svc; urlPrefix: https://w3c.github.io/webrtc-svc/
50+
spec: webrtc-svc; urlPrefix: https://www.w3.org/TR/webrtc-svc/
5151
type: dfn; text: scalability mode identifier; url:#scalabilitymodes*
5252

53+
spec: mst-content-hint; urlPrefix: https://www.w3.org/TR/mst-content-hint/
54+
type: dfn; text: video content hints; url:#video-content-hints
55+
5356
spec: ECMASCRIPT; urlPrefix: https://tc39.es/ecma262/
5457
type: dfn; text: the current Realm; url: #current-realm
5558
</pre>
@@ -2104,6 +2107,7 @@
21042107
DOMString scalabilityMode;
21052108
VideoEncoderBitrateMode bitrateMode = "variable";
21062109
LatencyMode latencyMode = "quality";
2110+
DOMString contentHint;
21072111
};
21082112
</xmp>
21092113

@@ -2221,6 +2225,20 @@
22212225
<dd>
22222226
Configures latency related behaviors for this codec. See {{LatencyMode}}.
22232227
</dd>
2228+
<dt><dfn dict-member for=VideoEncoderConfig>contentHint</dfn></dt>
2229+
<dd>
2230+
An encoding [=video content hint=] as defined by [[mst-content-hint]].
2231+
2232+
The User Agent <em class="rfc2119">MAY</em> use this hint to set
2233+
expectations about incoming {{VideoFrame}}s and to improve encoding quality.
2234+
2235+
The User Agent <em class="rfc2119">MUST NOT</em> refuse the configuration
2236+
if it doesn't support this content hint.
2237+
See {{VideoEncoder/isConfigSupported()}}.
2238+
2239+
NOTE: Any codec-specific encoding options take precedence over
2240+
{{contentHint}}.
2241+
</dd>
22242242

22252243
</dl>
22262244

0 commit comments

Comments
 (0)