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

Maciej Stachowiak mjs at apple.com
Fri Sep 10 17:39:00 PDT 2010


On Sep 8, 2010, at 8:05 AM, Julian Reschke wrote:

> On 07.09.2010 22:00, Boris Zbarsky wrote:
>> ...
>>> * If a file in a top-level browsing context is sniffed as video but
>>> then some kind of error is returned before the video plays the first
>>> frame, fall back to allowing the user to download it, or whatever the
>>> usual action would be if no sniffing had occurred.
>> 
>> This might be pretty difficult to implement, since the video decoder
>> might consume arbitrary amounts of data before saying that there was an
>> error.
>> ...
> 
> It's not that hard if it's acceptable to restart the network request (just do it again, with a flag not-to-sniff).

But there are cases where it's not acceptable, e.g. if it was a non-idempotent method. Of course, handling those specially makes an edge case feature even more complicated.

Regards,
Maciej




More information about the whatwg mailing list