|
93 | 93 | "html": "Let <var>videoMimeType</var> be the result of running\n <a data-link-type=\"dfn\" href=\"https://mimesniff.spec.whatwg.org/#parse-a-mime-type\" id=\"ref-for-parse-a-mime-type②\">parse a MIME type</a> with <var>configuration</var>’s\n <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-videoconfiguration-contenttype\" id=\"ref-for-dom-videoconfiguration-contenttype⑤\">contentType</a></code>."
|
94 | 94 | },
|
95 | 95 | {
|
96 |
| - "html": "Set <var>videoSupported</var> to the result of running\n <a data-link-type=\"abstract-op\" href=\"https://www.w3.org/TR/media-capabilities/#abstract-opdef-check-mime-type-support\" id=\"ref-for-abstract-opdef-check-mime-type-support\">check MIME type support</a> with\n <var>videoMimeType</var> and\n <var>configuration</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-mediaencodingconfiguration-type\" id=\"ref-for-dom-mediaencodingconfiguration-type\">type</a></code>." |
| 96 | + "html": "Set <var>videoSupported</var> to the result of running\n <a data-link-type=\"abstract-op\" href=\"https://www.w3.org/TR/media-capabilities/#abstract-opdef-check-mime-type-support\" id=\"ref-for-abstract-opdef-check-mime-type-support\">check MIME type support</a> with\n <var>videoMimeType</var> <var>configuration</var>’s\n <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-mediaencodingconfiguration-type\" id=\"ref-for-dom-mediaencodingconfiguration-type\">type</a></code>." |
97 | 97 | }
|
98 | 98 | ]
|
99 | 99 | },
|
|
108 | 108 | "html": "Let <var>audioMimeType</var> be the result of running\n <a data-link-type=\"dfn\" href=\"https://mimesniff.spec.whatwg.org/#parse-a-mime-type\" id=\"ref-for-parse-a-mime-type③\">parse a MIME type</a> with <var>configuration</var>’s\n <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-audioconfiguration-contenttype\" id=\"ref-for-dom-audioconfiguration-contenttype③\">contentType</a></code>."
|
109 | 109 | },
|
110 | 110 | {
|
111 |
| - "html": "Set <var>audioSupported</var> to the result of running\n <a data-link-type=\"abstract-op\" href=\"https://www.w3.org/TR/media-capabilities/#abstract-opdef-check-mime-type-support\" id=\"ref-for-abstract-opdef-check-mime-type-support①\">check MIME type support</a> with <var>audioMimeType</var> and\n <var>configuration</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-mediaencodingconfiguration-type\" id=\"ref-for-dom-mediaencodingconfiguration-type①\">type</a></code>." |
| 111 | + "html": "Set <var>audioSupported</var> to the result of running\n <a data-link-type=\"abstract-op\" href=\"https://www.w3.org/TR/media-capabilities/#abstract-opdef-check-mime-type-support\" id=\"ref-for-abstract-opdef-check-mime-type-support①\">check MIME type support</a> with <var>audioMimeType</var>\n <var>configuration</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-mediaencodingconfiguration-type\" id=\"ref-for-dom-mediaencodingconfiguration-type①\">type</a></code>." |
112 | 112 | }
|
113 | 113 | ]
|
114 | 114 | },
|
|
174 | 174 | "html": "Let <var>videoMimeType</var> be the result of running\n <a data-link-type=\"dfn\" href=\"https://mimesniff.spec.whatwg.org/#parse-a-mime-type\" id=\"ref-for-parse-a-mime-type④\">parse a MIME type</a> with <var>configuration</var>’s\n <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-videoconfiguration-contenttype\" id=\"ref-for-dom-videoconfiguration-contenttype⑥\">contentType</a></code>."
|
175 | 175 | },
|
176 | 176 | {
|
177 |
| - "html": "Set <var>videoSupported</var> be the result of running\n <a data-link-type=\"abstract-op\" href=\"https://www.w3.org/TR/media-capabilities/#abstract-opdef-check-mime-type-support\" id=\"ref-for-abstract-opdef-check-mime-type-support②\">check MIME type support</a> with <var>videoMimeType</var> and\n <var>configuration</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-mediadecodingconfiguration-type\" id=\"ref-for-dom-mediadecodingconfiguration-type\">type</a></code>." |
| 177 | + "html": "Set <var>videoSupported</var> be the result of running\n <a data-link-type=\"abstract-op\" href=\"https://www.w3.org/TR/media-capabilities/#abstract-opdef-check-mime-type-support\" id=\"ref-for-abstract-opdef-check-mime-type-support②\">check MIME type support</a> with <var>videoMimeType</var>,\n <var>configuration</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-mediadecodingconfiguration-type\" id=\"ref-for-dom-mediadecodingconfiguration-type\">type</a></code>,\n <var>configuration</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-videoconfiguration-colorgamut\" id=\"ref-for-dom-videoconfiguration-colorgamut①\">colorGamut</a></code>,\n and <var>configuration</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-videoconfiguration-transferfunction\" id=\"ref-for-dom-videoconfiguration-transferfunction①\">transferFunction</a></code>." |
178 | 178 | }
|
179 | 179 | ]
|
180 | 180 | },
|
|
189 | 189 | "html": "Let <var>audioMimeType</var> be the result of running\n <a data-link-type=\"dfn\" href=\"https://mimesniff.spec.whatwg.org/#parse-a-mime-type\" id=\"ref-for-parse-a-mime-type⑤\">parse a MIME type</a> with <var>configuration</var>’s\n <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-audioconfiguration-contenttype\" id=\"ref-for-dom-audioconfiguration-contenttype④\">contentType</a></code>."
|
190 | 190 | },
|
191 | 191 | {
|
192 |
| - "html": "Set <var>audioSupported</var> to the result of running\n <a data-link-type=\"abstract-op\" href=\"https://www.w3.org/TR/media-capabilities/#abstract-opdef-check-mime-type-support\" id=\"ref-for-abstract-opdef-check-mime-type-support③\">check MIME type support</a> with <var>audioMimeType</var> and\n <var>configuration</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-mediadecodingconfiguration-type\" id=\"ref-for-dom-mediadecodingconfiguration-type①\">type</a></code>." |
| 192 | + "html": "Set <var>audioSupported</var> to the result of running\n <a data-link-type=\"abstract-op\" href=\"https://www.w3.org/TR/media-capabilities/#abstract-opdef-check-mime-type-support\" id=\"ref-for-abstract-opdef-check-mime-type-support③\">check MIME type support</a> with <var>audioMimeType</var>\n <var>configuration</var>’s <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-mediadecodingconfiguration-type\" id=\"ref-for-dom-mediadecodingconfiguration-type①\">type</a></code>." |
193 | 193 | }
|
194 | 194 | ]
|
195 | 195 | },
|
|
244 | 244 | {
|
245 | 245 | "name": "Check MIME Type Support",
|
246 | 246 | "href": "https://www.w3.org/TR/media-capabilities/#abstract-opdef-check-mime-type-support",
|
247 |
| - "html": "To <a data-link-type=\"abstract-op\" href=\"https://www.w3.org/TR/media-capabilities/#abstract-opdef-check-mime-type-support\" id=\"ref-for-abstract-opdef-check-mime-type-support④\">check MIME type support</a>, given a <a data-link-type=\"dfn\" href=\"https://mimesniff.spec.whatwg.org/#mime-type\" id=\"ref-for-mime-type③\">MIME type record</a> <var>mimeType</var>\n and either a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#enumdef-mediaencodingtype\" id=\"ref-for-enumdef-mediaencodingtype②\">MediaEncodingType</a></code> or <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#enumdef-mediadecodingtype\" id=\"ref-for-enumdef-mediadecodingtype②\">MediaDecodingType</a></code>\n <var>encodingOrDecodingType</var>, perform the following\n steps. They return <code>supported</code> if\n the MIME type is <a data-link-type=\"dfn\" href=\"https://mimesniff.spec.whatwg.org/#supported-by-the-user-agent\" id=\"ref-for-supported-by-the-user-agent\">supported by the user agent</a>, <code>unsupported</code>\n if the MIME type is not supported:", |
| 247 | + "html": "To <a data-link-type=\"abstract-op\" href=\"https://www.w3.org/TR/media-capabilities/#abstract-opdef-check-mime-type-support\" id=\"ref-for-abstract-opdef-check-mime-type-support④\">check MIME type support</a>, given a <a data-link-type=\"dfn\" href=\"https://mimesniff.spec.whatwg.org/#mime-type\" id=\"ref-for-mime-type③\">MIME type record</a> <var>mimeType</var>,\n a <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#enumdef-mediaencodingtype\" id=\"ref-for-enumdef-mediaencodingtype②\">MediaEncodingType</a></code> or <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#enumdef-mediadecodingtype\" id=\"ref-for-enumdef-mediadecodingtype②\">MediaDecodingType</a></code>\n <var>encodingOrDecodingType</var>, an optional <var>colorGamut</var> from\n <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-videoconfiguration-colorgamut\" id=\"ref-for-dom-videoconfiguration-colorgamut②\">colorGamut</a></code>, and an optional <var>transferFunction</var>\n from <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-videoconfiguration-transferfunction\" id=\"ref-for-dom-videoconfiguration-transferfunction②\">transferFunction</a></code>, perform the following\n steps. They return <code>supported</code> if the MIME type is\n <a data-link-type=\"dfn\" href=\"https://mimesniff.spec.whatwg.org/#supported-by-the-user-agent\" id=\"ref-for-supported-by-the-user-agent\">supported by the user agent</a>, <code>unsupported</code> if the MIME type\n is not supported:", |
248 | 248 | "rationale": ".algorithm",
|
249 | 249 | "steps": [
|
250 | 250 | {
|
251 | 251 | "html": "If <var>encodingOrDecodingType</var> is <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-mediaencodingtype-webrtc\" id=\"ref-for-dom-mediaencodingtype-webrtc④\">webrtc</a></code> (<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#enumdef-mediaencodingtype\" id=\"ref-for-enumdef-mediaencodingtype③\">MediaEncodingType</a></code>)\n or <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-mediadecodingtype-webrtc\" id=\"ref-for-dom-mediadecodingtype-webrtc④\">webrtc</a></code> (<code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#enumdef-mediadecodingtype\" id=\"ref-for-enumdef-mediadecodingtype③\">MediaDecodingType</a></code>) and <var>mimeType</var> is not one\n that is used with RTP (as defined in the specifications of the corresponding RTP\n payload formats <a data-link-type=\"biblio\" href=\"https://www.w3.org/TR/media-capabilities/#biblio-iana-media-types\" title=\"Media Types\">[IANA-MEDIA-TYPES]</a> <a data-link-type=\"biblio\" href=\"https://www.w3.org/TR/media-capabilities/#biblio-rfc6838\" title=\"Media Type Specifications and Registration Procedures\">[RFC6838]</a>), return <code>unsupported</code>."
|
252 | 252 | },
|
| 253 | + { |
| 254 | + "html": "If <var>colorGamut</var> is present and is not valid for <var>mimeType</var>, return\n <code>unsupported</code>." |
| 255 | + }, |
| 256 | + { |
| 257 | + "html": "If <var>transferFunction</var> is present and is not valid for <var>mimeType</var>, return\n <code>unsupported</code>.\n \n \n \n <p></p>" |
| 258 | + }, |
253 | 259 | {
|
254 | 260 | "html": "If <var>mimeType</var> is not <a data-link-type=\"dfn\" href=\"https://mimesniff.spec.whatwg.org/#supported-by-the-user-agent\" id=\"ref-for-supported-by-the-user-agent①\">supported by the user agent</a>, return\n <code>unsupported</code>."
|
255 | 261 | },
|
|
268 | 274 | "html": "If the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-mediacapabilitieskeysystemconfiguration-keysystem\" id=\"ref-for-dom-mediacapabilitieskeysystemconfiguration-keysystem①\">keySystem</a></code> member of\n <code>config.keySystemConfiguration</code> is not one of the\n <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/encrypted-media-2/#dfn-key-system\" id=\"ref-for-dfn-key-system\">Key Systems</a> supported by the user agent, return\n <code>null</code>. String comparison is case-sensitive."
|
269 | 275 | },
|
270 | 276 | {
|
271 |
| - "html": "Let <var>origin</var> be the <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/browsers.html#concept-origin\" id=\"ref-for-concept-origin\">origin</a> of the calling context’s\n <a data-link-type=\"dfn\" href=\"https://dom.spec.whatwg.org/#clone-a-node-document\" id=\"ref-for-clone-a-node-document\">Document</a>." |
| 277 | + "html": "Let <var>origin</var> be the <a data-link-type=\"dfn\" href=\"https://html.spec.whatwg.org/multipage/browsers.html#concept-origin\" id=\"ref-for-concept-origin\">origin</a> of the calling context’s\n <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://dom.spec.whatwg.org/#document\" id=\"ref-for-document\">Document</a></code>." |
272 | 278 | },
|
273 | 279 | {
|
274 | 280 | "html": "Let <var>implementation</var> be the implementation of\n <code>config.keySystemConfiguration.keySystem</code>."
|
|
0 commit comments