W3C home > Mailing lists > Public > whatwg@whatwg.org > August 2010

[whatwg] Video with MIME type application/octet-stream

From: Boris Zbarsky <bzbarsky@MIT.EDU>
Date: Tue, 31 Aug 2010 10:35:50 -0400
Message-ID: <4C7D1346.7030701@mit.edu>
On 8/31/10 9:57 AM, Anne van Kesteren wrote:
>> One obvious benefit is that videos with the wrong type will not work,
>> and hence videos will be sent with the right type.
>>
>> If the question is what the benefits of that are, one is that the
>> "view video in new window" context menu option actually works.
>
> If you sniff you can sniff there too.

Not really, since it's just rendering in a toplevel browser window.  Or 
rather... one could, but sniffing or not depending on something other 
than the state of the url bar and the server response in toplevel 
browser windows is extremely poor UI.

>> Another benefit is that you can send someone the link to the video,
>> instead of the embedding page, and it will work.
>
> If you sniff you can sniff there too. (Unless that user uses a
> competitor's browser, but that would be an incentive to encourage that
> user to use the sniffing browser.)

You can't sniff in a toplevel browser window.  Not the same way that 
people are sniffing in <video>.  It would break the web.

>> Another is that when you save the video to disk the browser will fix
>> up the extension correctly, if needed.
>
> If you sniff you can fix it up correctly too.

Perhaps...  It involves some interesting special-casing of code that's 
totally unrelated to <video>, but could be done.

-Boris
Received on Tuesday, 31 August 2010 07:35:50 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:26 UTC