[whatwg] video tag : loop for ever
Eric Carlson
eric.carlson at apple.com
Wed Oct 15 13:56:03 PDT 2008
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
> not
> just a number. You can work around it with script (just add
> onended="currentTime=0" to the <video> element).
>
> To be honest I'm not really convinced we need the looping feature at
> all.
> It seems like we should drop this from the current version. What
> benefit
> does it bring? Is looping really that common? If we got rid of it we
> could
> find better ways of picking the start time.
>
As we discussed on IRC today, I think a valid use case for looping
is background audio. It is possible to implement looping from script,
but as someone else in this thread commented, it will be very
difficult to do cleanly (eg. without artifacts).
Having said that, I don't think that "loopstart" and "loopend" will
be used frequently enough justify inclusion in the (first version of
the) spec.
eric
More information about the whatwg
mailing list