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? -BorisReceived on Thursday, 29 November 2012 19:14:43 UTC
This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:48 UTC