[whatwg] Apple Proposal for Timed Media Elements

Kristof Zelechovski giecrilj at stegny.2a.pl
Thu Apr 5 22:05:16 PDT 2007

Sorry for breaking into your realm, I just could not resist.
It seems that a recording that plays just once should have the loop-count
set to 0 (or left unspecified, of course).  This means that the loop-count
attribute cannot be used to specify that the recording should not play at
all - which hardly is what you would like to do anyway.  Using the name
loop-count is logical and viable under this semantic correction.
Christopher Yeleighton

-----Original Message-----
From: whatwg-bounces at lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Michael A. Puls II
Sent: Thursday, April 05, 2007 8:09 PM
To: whatwg at whatwg.org
Subject: Re: [whatwg] Apple Proposal for Timed Media Elements

On 4/5/07, Vladimir Vukicevic <vladimir at pobox.com> wrote:
> Maciej Stachowiak wrote:
> >
> > On Apr 4, 2007, at 7:31 PM, Vladimir Vukicevic wrote:
> >> 1. 'media-loop-count' is an awkward name, especially with "The default
> >> value of 1 means the item will play through once but will not loop."
> >> We went through this with APNG, and ended up renaming that member.  I
> >> would suggest 'media-play-count' instead -- that way there is no
> >> ambiguity with what the number means.
> >
> > We considered 'media-repeat-count' instead of 'media-loop-count', but
> > that turned out to be more confusing. We really wanted all the
> > looping-related properties to have consistent naming, and I don't think
> > 'play' would work in the other places mentioned.
> The problem is that 'media-loop-count' with a value of 1, as defined,
> doesn't have anything to do with looping... play-count is much more
> descriptive of its actual purpose, IMO, despite not containing 'loop' in
> the name.  The others should definitely stay "loop-", though.

I agree.

To me, a loop-count of 1 means that it will play once and then loop
once. If a loop-count of 1 means that it only plays once, then it's
not really a loop-count. It's a play-count.

I myself like how the Windows Media 6.4 API does it. It has a
PlayCount  that specifies how many times to play, but 0 is a valid
value that means to repeat forever.


More information about the whatwg mailing list