W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] video tag : loop for ever

From: Kristof Zelechovski <giecrilj@stegny.2a.pl>
Date: Wed, 15 Oct 2008 18:59:29 +0200
Message-ID: <CC376A19F980432AAFB2FA0CC8F2055F@POCZTOWIEC>
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

This archive was generated by hypermail 2.3.1 : Monday, 13 April 2015 23:08:44 UTC