[whatwg] video tag : loop for ever

On Sat, 27 Sep 2008, Biju Gm at il wrote:
>
> How can I make a video loop for ever?
> Will playcount = "infinity" works?

On Sat, 27 Sep 2008, Jorgen Horstink wrote:
>
> I understand the conceptual problem with this, but why don't you just 
> use a large number? If the video is 1 sec, with a playcount set to 
> 9999999 it will keep running at least three months; longer than any 
> webpage is in memory.

On Sat, 27 Sep 2008, Biju Gm at il wrote:
> 
> Many software Video players have a  "LOOP" button.
> So I wish there is one for VIDEO/AUDIO tag in web browsers too...
> 
> If a UA implements "LOOP" button, and user press it what should be the 
> value of playcount? if there is no std, one UA will implement it as 
> 9999999 another will have value 9999, another 99999999999 etc.

On Sun, 28 Sep 2008, Charles McCathieNevile wrote:
>
> Except if it is being used for an advertising display, or the like, and 
> happens to be around for a long time. Why not define a way to say 
> "forever" that means it (and doesn't require us to count the loops in 
> our implementation)?

There is no way to say "loop forever" right now primarily because doing so 
would mean complicating the syntax of the playcount attribute to be not 
just a number. You can work around it with script (just add 
onended="currentTime=0" to the <video> element).

To be honest I'm not really convinced we need the looping feature at all. 
It seems like we should drop this from the current version. What benefit 
does it bring? Is looping really that common? If we got rid of it we could 
find better ways of picking the start time.

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

Received on Tuesday, 14 October 2008 17:40:09 UTC