[whatwg] video tag : loop for ever

Played = 0
do
play
played = played + 1
loop until played = playcount

That loop makes play count "0" mean "forever".

Chris

-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Andy Lyttle
Sent: Wednesday, October 15, 2008 6:54 PM
To: whatwg at lists.whatwg.org
Subject: Re: [whatwg] video tag : loop for ever

On Oct 15, 2008, at 8:38 AM, Jo?o Eiras wrote:

> Why not just assuming that playcount="0" means loops forever ?

This was exactly my thought.

If playcount="5" causes the video to be played 5 times, what should  
the result of each of these be?

playcount="1"
playcount="0"
playcount="-5"
playcount="foobar"

Is there any possible usefulness whatsoever in making playcount="0"  
not play the video at all?  If not, I don't see a good reason not to  
use that to mean infinite looping.

Either that, or some keyword, but I don't know what it should be.   
"infinite" and "forever" come to mind.

-- 
Andy Lyttle
whatwg at phroggy.com

Received on Wednesday, 15 October 2008 09:59:29 UTC