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

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

Received on Friday, 10 September 2010 17:39:00 UTC