|
52 | 52 |
|
53 | 53 | spec: mst-content-hint; urlPrefix: https://www.w3.org/TR/mst-content-hint/ |
54 | 54 | type: dfn; text: video content hints; url:#video-content-hints |
| 55 | + type: dfn; text: audio content hints; url:#audio-content-hints |
55 | 56 |
|
56 | 57 | spec: ECMASCRIPT; urlPrefix: https://tc39.es/ecma262/ |
57 | 58 | type: dfn; text: the current Realm; url: #current-realm |
|
2051 | 2052 | [EnforceRange] unsigned long numberOfChannels; |
2052 | 2053 | [EnforceRange] unsigned long long bitrate; |
2053 | 2054 | BitrateMode bitrateMode = "variable"; |
| 2055 | + DOMString contentHint; |
2054 | 2056 | }; |
2055 | 2057 | </xmp> |
2056 | 2058 |
|
|
2090 | 2092 | encouraged to check by calling {{AudioEncoder/isConfigSupported()}} with |
2091 | 2093 | |config|. |
2092 | 2094 | </dd> |
| 2095 | + <dt><dfn dict-member for=AudioEncoderConfig>contentHint</dfn></dt> |
| 2096 | + <dd> |
| 2097 | + An encoding [=audio content hint=] as defined by [[mst-content-hint]]. |
| 2098 | + |
| 2099 | + The User Agent <em class="rfc2119">MAY</em> use this hint to set |
| 2100 | + expectations about incoming {{AudioData}} and to improve encoding quality. |
| 2101 | + If using this hint: |
| 2102 | + - The User Agent <em class="rfc2119">MUST</em> respect other explicitly |
| 2103 | + set encoding options when configuring the encoder, whether they are |
| 2104 | + codec-specific encoding options or not. |
| 2105 | + - The User Agent <em class="rfc2119">SHOULD</em> make a best-effort |
| 2106 | + attempt to use additional configuration options to improve encoding |
| 2107 | + quality, according to the goals defined by the corresponding |
| 2108 | + [=audio content hint=]. |
| 2109 | + |
| 2110 | + NOTE: Some encoder options are implementation specific, and mappings between |
| 2111 | + {{AudioEncoderConfig/contentHint}} and those options cannot be |
| 2112 | + prescribed. |
| 2113 | + |
| 2114 | + The User Agent <em class="rfc2119">MUST NOT</em> refuse the configuration |
| 2115 | + if it doesn't support this content hint. |
| 2116 | + See {{AudioEncoder/isConfigSupported()}}. |
| 2117 | + </dd> |
2093 | 2118 | </dl> |
2094 | 2119 |
|
2095 | 2120 |
|
|
2233 | 2258 |
|
2234 | 2259 | The User Agent <em class="rfc2119">MAY</em> use this hint to set |
2235 | 2260 | expectations about incoming {{VideoFrame}}s and to improve encoding quality. |
| 2261 | + If using this hint: |
| 2262 | + - The User Agent <em class="rfc2119">MUST</em> respect other explicitly |
| 2263 | + set encoding options when configuring the encoder, whether they are |
| 2264 | + codec-specific encoding options or not. |
| 2265 | + - The User Agent <em class="rfc2119">SHOULD</em> make a best-effort |
| 2266 | + attempt to use additional configuration options to improve encoding |
| 2267 | + quality, according to the goals defined by the corresponding |
| 2268 | + [=video content hint=]. |
| 2269 | + |
| 2270 | + NOTE: Some encoder options are implementation specific, and mappings between |
| 2271 | + {{VideoEncoderConfig/contentHint}} and those options cannot be |
| 2272 | + prescribed. |
2236 | 2273 |
|
2237 | 2274 | The User Agent <em class="rfc2119">MUST NOT</em> refuse the configuration |
2238 | 2275 | if it doesn't support this content hint. |
2239 | 2276 | See {{VideoEncoder/isConfigSupported()}}. |
2240 | | - |
2241 | | - NOTE: Any codec-specific encoding options take precedence over |
2242 | | - {{contentHint}}. |
2243 | 2277 | </dd> |
2244 | 2278 |
|
2245 | 2279 | </dl> |
|
0 commit comments