[whatwg] HTMLMediaElement.load()

Maciej Stachowiak mjs at apple.com
Fri Mar 23 15:59:10 PDT 2007


On Mar 23, 2007, at 3:20 PM, Ian Hickson wrote:

> On Fri, 23 Mar 2007, Anne van Kesteren wrote:
>>
>> How can load() be invoked when certain method calls have not yet  
>> returned?
>
> Most of the methods result in synchronous event dispatch, which can
> invoke further code.
>
>
>> Why does it switch to the PAUSED state? Isn't it only supposed to be
>> loading the content?
>
> The STOPPED state represents when there is no data. There is now  
> data, so
> it is no longer STOPPED. (STOPPED was at one point called NO_MEDIA.  
> Maybe
> we should consider changing it back.)

I would suggest adopting the states from the Apple proposal instead,  
where this state would correspond to UNINITIALIZED (starting a load  
would switch to LOADING state).

Regards,
Maciej



More information about the whatwg mailing list