|
298 | 298 | }, |
299 | 299 | { |
300 | 300 | "html": "If <code>config.keySystemConfiguration.audio</code> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"ref-for-map-exists①③\">exists</a>:", |
301 | | - "rationale": "set", |
| 301 | + "rationale": "if", |
302 | 302 | "steps": [ |
303 | 303 | { |
304 | | - "html": "Set the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/encrypted-media-2/#dom-mediakeysystemmediacapability-robustness\" id=\"ref-for-dom-mediakeysystemmediacapability-robustness①\">robustness</a></code> attribute to <code> config.keySystemConfiguration.audio.robustness</code>." |
| 304 | + "html": "If <code>config.keySystemConfiguration.audio.robustness</code> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"ref-for-map-exists①④\">exists</a> and is not <code>null</code>, set the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/encrypted-media-2/#dom-mediakeysystemmediacapability-robustness\" id=\"ref-for-dom-mediakeysystemmediacapability-robustness①\">robustness</a></code> attribute to <code>config.keySystemConfiguration.audio.robustness</code>." |
305 | 305 | }, |
306 | 306 | { |
307 | 307 | "html": "Set the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/encrypted-media-2/#dom-mediakeysystemmediacapability-encryptionscheme\" id=\"ref-for-dom-mediakeysystemmediacapability-encryptionscheme①\">encryptionScheme</a></code> attribute to <code> config.keySystemConfiguration.audio.encryptionScheme</code>." |
|
311 | 311 | ] |
312 | 312 | }, |
313 | 313 | { |
314 | | - "html": "If <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-mediaconfiguration-video\" id=\"ref-for-dom-mediaconfiguration-video②\">video</a></code> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"ref-for-map-exists①④\">exists</a> in <var>config</var>, set the\n videoCapabilities attribute to a sequence containing a single <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/encrypted-media-2/#dom-mediakeysystemmediacapability\" id=\"ref-for-dom-mediakeysystemmediacapability①\">MediaKeySystemMediaCapability</a></code>, initialized as follows:", |
| 314 | + "html": "If <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/media-capabilities/#dom-mediaconfiguration-video\" id=\"ref-for-dom-mediaconfiguration-video②\">video</a></code> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"ref-for-map-exists①⑤\">exists</a> in <var>config</var>, set the\n videoCapabilities attribute to a sequence containing a single <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/encrypted-media-2/#dom-mediakeysystemmediacapability\" id=\"ref-for-dom-mediakeysystemmediacapability①\">MediaKeySystemMediaCapability</a></code>, initialized as follows:", |
315 | 315 | "rationale": "set", |
316 | 316 | "steps": [ |
317 | 317 | { |
318 | 318 | "html": "Set the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/encrypted-media-2/#dom-mediakeysystemmediacapability-contenttype\" id=\"ref-for-dom-mediakeysystemmediacapability-contenttype①\">contentType</a></code> attribute to <code>config.video.contentType</code>." |
319 | 319 | }, |
320 | 320 | { |
321 | | - "html": "If <code>config.keySystemConfiguration.video</code> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"ref-for-map-exists①⑤\">exists</a>:", |
322 | | - "rationale": "set", |
| 321 | + "html": "If <code>config.keySystemConfiguration.video</code> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"ref-for-map-exists①⑥\">exists</a>:", |
| 322 | + "rationale": "if", |
323 | 323 | "steps": [ |
324 | 324 | { |
325 | | - "html": "Set the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/encrypted-media-2/#dom-mediakeysystemmediacapability-robustness\" id=\"ref-for-dom-mediakeysystemmediacapability-robustness②\">robustness</a></code> attribute to <code> config.keySystemConfiguration.video.robustness</code>." |
| 325 | + "html": "If <code>config.keySystemConfiguration.video.robustness</code> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"ref-for-map-exists①⑦\">exists</a> and is not <code>null</code>, set the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/encrypted-media-2/#dom-mediakeysystemmediacapability-robustness\" id=\"ref-for-dom-mediakeysystemmediacapability-robustness②\">robustness</a></code> attribute to <code>config.keySystemConfiguration.video.robustness</code>." |
326 | 326 | }, |
327 | 327 | { |
328 | 328 | "html": "Set the <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://www.w3.org/TR/encrypted-media-2/#dom-mediakeysystemmediacapability-encryptionscheme\" id=\"ref-for-dom-mediakeysystemmediacapability-encryptionscheme②\">encryptionScheme</a></code> attribute to <code> config.keySystemConfiguration.video.encryptionScheme</code>." |
|
367 | 367 | "html": "If <var>configuration</var> is not a <a data-link-type=\"dfn\" href=\"https://www.w3.org/TR/media-capabilities/#valid-mediadecodingconfiguration\" id=\"ref-for-valid-mediadecodingconfiguration\">valid\n MediaDecodingConfiguration</a>, return a Promise rejected with a\n newly created <code class=\"idl\"><a data-link-type=\"idl\" href=\"https://webidl.spec.whatwg.org/#exceptiondef-typeerror\" id=\"ref-for-exceptiondef-typeerror\">TypeError</a></code>." |
368 | 368 | }, |
369 | 369 | { |
370 | | - "html": "If <code>configuration.keySystemConfiguration</code> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"ref-for-map-exists①⑥\">exists</a>,\n run the following substeps:", |
| 370 | + "html": "If <code>configuration.keySystemConfiguration</code> <a data-link-type=\"dfn\" href=\"https://infra.spec.whatwg.org/#map-exists\" id=\"ref-for-map-exists①⑧\">exists</a>,\n run the following substeps:", |
371 | 371 | "rationale": "if", |
372 | 372 | "steps": [ |
373 | 373 | { |
|
0 commit comments