|
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 |
56 | 55 |
|
57 | 56 | spec: ECMASCRIPT; urlPrefix: https://tc39.es/ecma262/ |
58 | 57 | type: dfn; text: the current Realm; url: #current-realm |
|
2052 | 2051 | [EnforceRange] unsigned long numberOfChannels; |
2053 | 2052 | [EnforceRange] unsigned long long bitrate; |
2054 | 2053 | BitrateMode bitrateMode = "variable"; |
2055 | | - DOMString contentHint; |
2056 | 2054 | }; |
2057 | 2055 | </xmp> |
2058 | 2056 |
|
|
2092 | 2090 | encouraged to check by calling {{AudioEncoder/isConfigSupported()}} with |
2093 | 2091 | |config|. |
2094 | 2092 | </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> |
2118 | 2093 | </dl> |
2119 | 2094 |
|
2120 | 2095 |
|
|
0 commit comments