Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Mark keySystemAccess as default to null and optional and robustness properties as no longer defaulting. #107

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
21 changes: 11 additions & 10 deletions index.bs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ spec: mimesniff; urlPrefix: https://mimesniff.spec.whatwg.org/#
<ul>
<li><dfn for='MediaDecodingType' enum-value>file</dfn> is used to
represent a configuration that is meant to be used for playback of
media sources other than {{MediaSource/MediaSource}} as defined in
media sources other than {{MediaSource/MediaSource}} as defined in
[[media-source]] and {{RTCPeerConnection}} as defined in [[webrtc]]. </li>
<li><dfn for='MediaDecodingType' enum-value>media-source</dfn> is used
to represent a configuration that is meant to be used for playback of
Expand Down Expand Up @@ -719,7 +719,7 @@ spec: mimesniff; urlPrefix: https://mimesniff.spec.whatwg.org/#

<xmp class='idl'>
dictionary MediaCapabilitiesDecodingInfo : MediaCapabilitiesInfo {
required MediaKeySystemAccess keySystemAccess;
required MediaKeySystemAccess? keySystemAccess;
MediaDecodingConfiguration configuration;
};
</xmp>
Expand Down Expand Up @@ -947,17 +947,15 @@ spec: mimesniff; urlPrefix: https://mimesniff.spec.whatwg.org/#
single {{MediaKeySystemMediaCapability}}, initialized as
follows:
<ol>
<li>
Set the {{MediaKeySystemMediaCapability/contentType}} attribute to
<code>config.audio.contentType</code>.
</li>
<li>
If <code>config.keySystemConfiguration.audio</code>
[=map/exists=]:
<ol>
<li>
Set the {{MediaKeySystemMediaCapability/robustness}} attribute to <code>
config.keySystemConfiguration.audio.robustness</code>.
If <code>config.keySystemConfiguration.audio.robustness</code>
[=map/exists=] and is not <code>null</code>, set the
{{MediaKeySystemMediaCapability/robustness}} attribute to
<code>config.keySystemConfiguration.audio.robustness</code>.
</li>
<li>
Set the {{MediaKeySystemMediaCapability/encryptionScheme}} attribute to <code>
Expand All @@ -980,8 +978,11 @@ spec: mimesniff; urlPrefix: https://mimesniff.spec.whatwg.org/#
If <code>config.keySystemConfiguration.video</code> [=map/exists=]:
<ol>
<li>
Set the {{MediaKeySystemMediaCapability/robustness}} attribute to <code>
config.keySystemConfiguration.video.robustness</code>.
If
<code>config.keySystemConfiguration.video.robustness</code>
[=map/exists=] and is not <code>null</code>, set the
{{MediaKeySystemMediaCapability/robustness}} attribute to
<code>config.keySystemConfiguration.video.robustness</code>.
</li>
<li>
Set the {{MediaKeySystemMediaCapability/encryptionScheme}} attribute to <code>
Expand Down
Loading