Skip to content

Commit

Permalink
Mark keySystemAccess as default to null and optional and robustness p…
Browse files Browse the repository at this point in the history
…roperties as no longer defaulting.
  • Loading branch information
mounirlamouri committed Aug 16, 2019
1 parent a6370dc commit 51b4b61
Showing 1 changed file with 24 additions and 6 deletions.
30 changes: 24 additions & 6 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -464,8 +464,8 @@ spec: workers; urlPrefix: https://www.w3.org/TR/workers/#
dictionary MediaCapabilitiesKeySystemConfiguration {
required DOMString keySystem;
DOMString initDataType = "";
DOMString audioRobustness = "";
DOMString videoRobustness = "";
DOMString audioRobustness;
DOMString videoRobustness;
MediaKeysRequirement distinctiveIdentifier = "optional";
MediaKeysRequirement persistentState = "optional";
sequence<DOMString> sessionTypes;
Expand Down Expand Up @@ -527,13 +527,12 @@ spec: workers; urlPrefix: https://www.w3.org/TR/workers/#
required boolean supported;
required boolean smooth;
required boolean powerEfficient;

};
</pre>

<pre class='idl'>
dictionary MediaCapabilitiesDecodingInfo : MediaCapabilitiesInfo {
required MediaKeySystemAccess keySystemAccess;
MediaKeySystemAccess? keySystemAccess = null;
};
</pre>

Expand Down Expand Up @@ -746,9 +745,18 @@ spec: workers; urlPrefix: https://www.w3.org/TR/workers/#
<code>config.audio.contentType</code>.
</li>
<li>
Set the {{EME/robustness}} attribute to
Let <var>robustness</var> be a <code>DOMString</a>
initialized to the empty string (<code>""</code>).
</li>
<li>
If
<code>config.keySystemConfiguration.audioRobustness</code>
is present, set <var>robustness</var> to
<code>config.keySystemConfiguration.audioRobustness</code>.
</li>
<li>
Set the {{EME/robustness}} attribute to <var>robustness</var>.
</li>
</ol>
</li>
<li>
Expand All @@ -761,9 +769,19 @@ spec: workers; urlPrefix: https://www.w3.org/TR/workers/#
<code>config.video.contentType</code>.
</li>
<li>
Set the {{EME/robustness}} attribute to
Let <var>robustness</var> be a <code>DOMString</a>
initialized to the empty string (<code>""</code>).
</li>
<li>
If
<code>config.keySystemConfiguration.videoRobustness</code>
is present, set <var>robustness</var> to
<code>config.keySystemConfiguration.videoRobustness</code>.
</li>
<li>
Set the {{EME/robustness}} attribute to <var>robustness</var>.
</li>

</ol>
</li>
</ol>
Expand Down

0 comments on commit 51b4b61

Please sign in to comment.