[whatwg] Peer-to-peer communication, video conferencing, <device>, and related topics

Olli Pettay Olli.Pettay at helsinki.fi
Fri Mar 18 07:14:45 PDT 2011


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



More information about the whatwg mailing list