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 20:03:21 +0200
Message-ID: <C8D7EDAB9D944A0C83017FD8D7C59085@POCZTOWIEC>
Play count 9999999999999 means just that number, it does not mean "forever"
by itself.  It is only functionally like "forever" because no one is likely
to let it loop till the play count specified is reached.  A 32-bit quantity
is enough to get this effect.

-----Original Message-----
From: whatwg-bounces@lists.whatwg.org
[mailto:whatwg-bounces at lists.whatwg.org] On Behalf Of Joao Eiras
Sent: Wednesday, October 15, 2008 1:19 PM
To: Henri Sivonen
Cc: whatwg group
Subject: Re: [whatwg] video tag : loop for ever

Using a high number like 9999999999999 is, IMO, stupid.

You'd be forced to tell in the spec that playcount would have to be a
16, 32, 64, or X bit big integer, and if anything overflows the
boundaries imposed by the internal integer representation, then
playcount would have to be rounded to the highest possible boundary or
assume infinite looping.
Else, some browser will use a 64bit representation while its neighbour
will use a 32bit integer (common sense might find 64bit too big and
awkward) but then an authoring tool or author use
playcount="9999999999" (10 digits) and somehow the browser with 32bit
playcount integer breaks.
Received on Wednesday, 15 October 2008 11:03:21 UTC

This archive was generated by hypermail 2.4.0 : Wednesday, 22 January 2020 16:59:06 UTC