[whatwg] Some media element details

Ian Hickson ian at hixie.ch
Tue Oct 14 17:47:02 PDT 2008


On Mon, 6 Oct 2008, Bonner, Matt wrote:
> 
> the original proposal said:
> 
> >>>>>> "var playing = !video.paused &&
> >>>>>> !video.ended && video.readyState >= HTMLMediaElement.CAN_PLAY"
> 
> you appear to be proposing:
> 
> > var playing = !video.paused && video.readyState >=
> HTMLMediaElement.CAN_PLAY
> 
> which only leaves the "video.ended" state in question.

It's redundant -- the readyState can never be HAVE_FUTURE if there is no 
future (as is the case if the playback has ended).

-- 
Ian Hickson               U+1047E                )\._.,--....,'``.    fL
http://ln.hixie.ch/       U+263A                /,   _.. \   _\  ;`._ ,.
Things that are impossible just take longer.   `._.-(,_..'--(,_..'`-.;.'



More information about the whatwg mailing list