From 2b10dffea7fc10a5cd9f39439a56a0714e5e7a1e Mon Sep 17 00:00:00 2001 From: Chris Needham Date: Tue, 13 Aug 2024 13:04:13 +0100 Subject: [PATCH 1/2] Removed 'valid media MIME type' and reference mimesniff See #511 --- encrypted-media-respec.html | 53 +++++++++++++++++-------------------- 1 file changed, 25 insertions(+), 28 deletions(-) diff --git a/encrypted-media-respec.html b/encrypted-media-respec.html index 6af9b2d..52b510f 100644 --- a/encrypted-media-respec.html +++ b/encrypted-media-respec.html @@ -63,7 +63,7 @@ }, }, - xref: ["dom", "html", "infra", "webaudio"] + xref: ["dom", "html", "infra", "mimesniff", "webaudio"] }; @@ -1021,22 +1021,6 @@

multiple independent profiles for a single account.

-
- Valid Media MIME Type -
-
-

- A valid media MIME type is a media MIME type that is - also a [=valid MIME type string=] [[mimesniff]]. When a MIME type includes parameters, - such as `"codecs"` [[RFC6381]], such parameters MUST also be valid per the relevant - specification. -

-

- When used with the features defined in this specification, MIME type strings SHOULD - explicitly specify codecs and codec constraints (e.g., per [[RFC6381]]) unless these - are normatively implied by the container. -

-
@@ -1928,14 +1912,20 @@
  • - If content type is not a [=valid media MIME type=] or is - unrecognized, continue to the next iteration. + Let mimeType be the result of running parse a MIME type + with content type.

  • - Let container be the container type specified by content - type. + If mimeType is failure or is unrecognized, + continue to the next iteration. +

    +
  • +
  • +

    + Let container be the container type specified by + mimeType.

  • @@ -1951,13 +1941,14 @@
  • - Let parameters be the RFC 6381 [[RFC6381]] parameters, if any, - specified by content type. + Let parameters be the "codecs" and "profiles" RFC 6381 [[RFC6381]] + parameters, if any, of mimeType.

  • If the user agent does not recognize one or more parameters, + or if any parameters are not valid per the relevant specification, continue to the next iteration.

  • @@ -1998,11 +1989,12 @@
  • - If content type is not strictly a audio/video type, + If mimeType is not strictly an audio/video type, continue to the next iteration.

    - For example, if audio/video type is Video and the top-level type + For example, if audio/video type is Video and mimeType's + type is not "video" or media types contains non-video codecs.

  • @@ -2483,8 +2475,13 @@

    - The type of the media resource. Its value - must be a [=valid media MIME type=]. The empty string is invalid. + The MIME type of the + media resource. +

    +

    + Applications SHOULD ensure that the MIME type explicitly specifies codecs + and codec constraints (e.g., per [[RFC6381]]) unless these are normatively + implied by the container.

    @@ -2619,7 +2616,7 @@

    The returned object is a non-strict subset (plus any implied defaults) of the first satisfiable {{MediaKeySystemConfiguration}} configuration passed to the {{Navigator/requestMediaKeySystemAccess()}} call that returned the promise that was - resolved with this object. It does not contain values capabilities not specified in + resolved with this object. It does not contain values for capabilities not specified in that single configuration (other than implied defaults) and thus may not reflect all capabilities of the [=Key System=] implementation. All values in the configuration may be used in any combination. Members of type {{MediaKeysRequirement}} reflect From 4cf7c0d21b91be100a549db918c51fcd29068a9b Mon Sep 17 00:00:00 2001 From: Chris Needham Date: Mon, 19 Aug 2024 16:20:07 +0100 Subject: [PATCH 2/2] Fix mimeType/type syntax --- encrypted-media-respec.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/encrypted-media-respec.html b/encrypted-media-respec.html index 52b510f..6295c4f 100644 --- a/encrypted-media-respec.html +++ b/encrypted-media-respec.html @@ -1994,7 +1994,7 @@

    For example, if audio/video type is Video and mimeType's - type + [=MIME type/type=] is not "video" or media types contains non-video codecs.