On 03/18/2011 04:02 PM, Lachlan Hunt wrote:
On Mon, 24 Jan 2011, Anne van Kesteren wrote:

There is a plan of allowing direct assigning to IDL attributes besides
creating URLs.

I.e. being able to do:

audio.src = blob

(The src content attribute would then be something like
"about:objecturl".)

I am not sure if that API should work differently from creating URLs and
assigning those, but we could consider it.

Could you elaborate on this plan?

This is basically what Philip and I were discussing in the other thread
yesterday, where we avoid the unnecessary overhead of creating a magic
URL, and instead just assign the object directly to the src property.
This lets the implementation handle all the magic transparently in the
background, without bothering to expose a URLs string to the author.

And I was arguing that we could avoid creating the probably somewhat heavy stream object if we could just assign the url, or perhaps
some DOMURL object to video/audio.src.


-Olli

Reply via email to