Re: [File API] Other sources for Blob data.

On Fri, Dec 2, 2011 at 6:14 PM, Steve VanDeBogart <vandebo@google.com>wrote:

> I haven't seen any other places where the javascript runtime satisfies a
> request by calling a previously called function, but in this case it seems
> like it could be done safely.
>

Hmm.  Full interoperability might be difficult, though.  For example,
different browsers might request ranges for media resources in different
ways; one browser might read the first 1K of a file first while another
might read the first 4K.  That's probably impossible to specify tightly in
general.  I'd be able to live with that, but others might object.

Another use case to consider... I was looking at this API proposal:
> http://dev.w3.org/2009/dap/gallery/#mediaobject Each media object is a
> file (a blob).  If I wanted to provide a cloud-backed gallery, I'd need
> some way to make MediaObjects for each image/song/video.  It'd be a real
> shame to have to download an object just to provide a MediaObject, which
> the consumer may or may not access.
>

I wouldn't worry much about MediaObject as a use case; it's just a poorly
designed API.  File should be a property on MediaObject, not its base class.

-- 
Glenn Maynard

Received on Friday, 2 December 2011 23:42:10 UTC