[whatwg] video tag : loop for ever
mjs at apple.com
Fri Oct 24 08:26:25 PDT 2008
On Oct 24, 2008, at 6:44 AM, timeless wrote:
> Sounds like what you really want is an audio/video stiching api so
> that you could concatenate a second sound track and achieve a smooth
That might be useful in its own right but seems irrelevant to the use
case of looping a single sound.
(Probably the best way to do something like this (short of a realtime
sound API) would be the ability to queue up an audio file (or range
thereof) to play next when the current one finishes, because then the
media framework can take care of ensuring a smooth transition.)
> On 10/23/08, Maciej Stachowiak <mjs at apple.com> wrote:
>> On Oct 14, 2008, at 5:40 PM, Ian Hickson wrote:
>>> 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
>>> just a number. You can work around it with script (just add
>>> onended="currentTime=0" to the <video> element).
>> This would lead to perceptible glitches in looped audio, compared to
>> being able to represent the looping to the media framework.
>>> To be honest I'm not really convinced we need the looping feature at
>>> It seems like we should drop this from the current version. What
>>> does it bring? Is looping really that common? If we got rid of it we
>>> find better ways of picking the start time.
>> For example: I think looped audio would be a common thing for games
>> want to do, and they wouldn't want it to glitch when it loops.
> Sent from Gmail for mobile | mobile.google.com
More information about the whatwg