W3C home > Mailing lists > Public > whatwg@whatwg.org > June 2013

Re: [whatwg] [mimesniff] Review request: Parsing a MIME type

From: Peter Occil <poccil14@gmail.com>
Date: Sat, 1 Jun 2013 21:06:04 -0400
Message-ID: <9813A476540B45F0A9EEF589A3DEA937@PeterPC>
To: "Gordon P. Hemsley" <gphemsley@gmail.com>, "whatwg List" <whatwg@whatwg.org>
Thanks for adding it for me; I forget to use Reply All.

What I intended is to use the result of canPlayType to determine
how a browser parses a certain MIME type.  Especially if there are duplicate
"codecs" parameters. For example, if a browser
returns "probably" from the canPlayType method with the following MIME type:

  video/mp4; codecs=avc1.42E01E

will it also return "probably" from this MIME type?

  video/mp4; codecs=foobar; codecs=avc1.42E01E

Or from this MIME type?

  video/mp4; codecs=avc1.42E01E; codecs=foobar

As you mentioned before, with respect to which value is used if a
parameter appears more than once, the answer might be different
depending on the browser.

-----Original Message----- 
From: Gordon P. Hemsley
Sent: Saturday, June 01, 2013 8:25 PM
To: Peter Occil ; whatwg List
Subject: Re: [whatwg] [mimesniff] Review request: Parsing a MIME type

(Re-added the list; I hope that's OK.)

The canPlayType method (and similar mechanisms) are only
approximations of what the browser can support. The "codecs" is
generally not strictly necessary when the UA goes to actually play the
fileā€”if the "codecs" parameter is missing, it can generally be
recovered by parsing/processing the file. Thus, it is not an
especially reliable testing method.

Received on Sunday, 2 June 2013 01:06:32 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 17:00:00 UTC