On 11/29/12 12:45 PM, Gordon P. Hemsley wrote:
The apparent contradiction occurs when, e.g., an Opus file is tagged
as "application/octet-stream".

If I understand correctly, a UA would return "" when canPlayType() is
called against such a file

canPlayType is not called "against a file". It's called with a single argument which is a string MIME type. If you pass "application/octet-stream", it will return "". Its behavior does not depend on any state of the element it's called on (like what it's actually pointing to, etc); only on the string passed in.

but then the file would actually play
because it is later sniffed as "application/ogg".

Am I missing something?

I think you're misunderstanding what canPlayType does?

-Boris

Reply via email to