diff --git a/index.bs b/index.bs index 5c39e6b..c3ac3b4 100644 --- a/index.bs +++ b/index.bs @@ -532,14 +532,15 @@ spec: workers; urlPrefix: https://www.w3.org/TR/workers/#
       dictionary MediaCapabilitiesDecodingInfo : MediaCapabilitiesInfo {
         required MediaKeySystemAccess keySystemAccess;
+        MediaDecodingConfiguration configuration;
       };
     
-

- The {{MediaCapabilitiesInfo}} has an associated configuration which is a - {{MediaDecodingConfiguration}} or {{MediaEncodingConfiguration}}. -

+
+      dictionary MediaCapabilitiesEncodingInfo : MediaCapabilitiesInfo {
+        MediaEncodingConfiguration configuration;
+      };
+    

A {{MediaCapabilitiesInfo}} has associated null as appropriate.

+

+ A {{MediaCapabilitiesDecodingInfo}} has an associated configuration which + is the decoding configuration properties used to generate the + {{MediaCapabilitiesDecodingInfo}}. +

+ +

+ A {{MediaCapabilitiesEncodingInfo}} has an associated configuration which + is the encoding configuration properties used to generate the + {{MediaCapabilitiesEncodingInfo}}. +

+

If the encrypted decoding configuration is supported, the resulting {{MediaCapabilitiesInfo}} will include a @@ -575,23 +590,24 @@ spec: workers; urlPrefix: https://www.w3.org/TR/workers/#

Algorithms

-

- Create a MediaCapabilitiesInfo +

+ Create a MediaCapabilitiesEncodingInfo

Given a {{MediaEncodingConfiguration}} configuration, this - algorithm returns a {{MediaCapabilitiesInfo}}. The following steps are + algorithm returns a {{MediaCapabilitiesEncodingInfo}}. The following steps are run:

  1. - Let info be a new {{MediaCapabilitiesInfo}} instance. + Let info be a new {{MediaCapabilitiesEncodingInfo}} instance. Unless stated otherwise, reading and writing apply to info for the next steps.
  2. - Set configuration to - configuration. -
  3. + Set configuration to be a new + {{MediaEncodingConfiguration}}. For every property in configuration + create a new property with the same name and value in configuration.
  4. If the user agent is able to encode the media represented by configuration, set @@ -632,6 +648,17 @@ spec: workers; urlPrefix: https://www.w3.org/TR/workers/# algorithm returns a {{MediaCapabilitiesDecodingInfo}}. The following steps are run:
      +
    1. + Let info be a new {{MediaCapabilitiesDecodingInfo}} instance. + Unless stated otherwise, reading and writing apply to + info for the next steps. +
    2. +
    3. + Set configuration to be a new + {{MediaDecodingConfiguration}}. For every property in configuration + create a new property with the same name and value in configuration. +
    4. If configuration.keySystemConfiguration is present: @@ -886,7 +913,7 @@ spec: workers; urlPrefix: https://www.w3.org/TR/workers/# Let p be a new promise.
    5. - In parallel, run the Create a MediaCapabilitiesInfo + In parallel, run the Create a MediaCapabilitiesEncodingInfo algorithm with configuration and resolve p with its result.