diff --git a/index.bs b/index.bs index af151ce..c1e0099 100644 --- a/index.bs +++ b/index.bs @@ -22,7 +22,7 @@ Abstract: based on the device's display.
-spec: media-source; urlPrefix: https://www.w3.org/TR/media-source/
+spec: media-source-2; urlPrefix: https://www.w3.org/TR/media-source-2/
     type: interface
         for: MediaSource; text: MediaSource; url: #mediasource
     type: method
@@ -94,6 +94,8 @@ spec: encrypted-media; for: EME; urlPrefix: https://www.w3.org/TR/encrypted-medi
         text: MediaKeysRequirement; url: dom-mediakeysrequirement
         text: audioCapabilities; url: dom-mediakeysystemconfiguration-audiocapabilities
         text: contentType; url: dom-mediakeysystemmediacapability-contenttype
+    type: method
+        text: setMediaKeys(); url: dom-htmlmediaelement-setmediakeys
 
 spec: encrypted-media-draft; for: EME; urlPrefix: https://w3c.github.io/encrypted-media/#
     type: attribute
@@ -180,6 +182,22 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
   

+
+

Definitions

+
+
Decoding Pipeline
+
+ A configuration of internal user agent components that implement media + decoding. For the purposes of this specification, we conceive of user + agents having distinct pipelines for encrypted vs unencrypted media. + Additionally, user agents may support several distinct encrypted media + pipelines, which must be signalled by using different + {{MediaCapabilitiesKeySystemConfiguration/keySystem}} names or different + {{KeySystemTrackConfiguration/robustness}} levels. +
+
+
+

Decoding and Encoding Capabilities

@@ -766,6 +784,7 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
       dictionary MediaCapabilitiesDecodingInfo : MediaCapabilitiesInfo {
+        required boolean codecSwitchingSupported;
         required MediaKeySystemAccess keySystemAccess;
         MediaDecodingConfiguration configuration;
       };
@@ -794,6 +813,21 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/
       temperature or the fans noise.
     

+

+ A {{MediaCapabilitiesDecodingInfo}} has an associated + + codecSwitchingSupported which is a boolean. +

+ +

+ Authors can use {{MediaCapabilitiesDecodingInfo/codecSwitchingSupported}} + to determine whether the user agent supports codec switching via + {{SourceBuffer/changeType()}} within the described + decoding pipeline. Note that switching between + decoding pipelines is a separate quality of implementation issue + as described by {{EME/setMediaKeys()}}. +

+

A {{MediaCapabilitiesDecodingInfo}} has associated keySystemAccess @@ -940,6 +974,23 @@ spec: secure-contexts; urlPrefix: https://www.w3.org/TR/secure-contexts/ efficiency unless the device's power source has side effects such as enabling different decoding modules. +

  • + If configuration.type is set to + {{MediaDecodingType/media-source}}: +
      +
    1. + Let pipeline be the decoding pipeline + described by configuration. +
    2. +
    3. + If pipeline is able to support using + {{SourceBuffer}} {{SourceBuffer/changeType()}} to switch + between any and all of its supported codecs, set + {{MediaCapabilitiesDecodingInfo/codecSwitchingSupported}} + to true. Otherwise, set it to false. +
    4. +
    +
  • Return info.