[whatwg] Apple Proposal for Timed Media Elements

Kevin Marks kevinmarks at gmail.com
Sat Mar 24 10:32:08 PDT 2007


On 3/21/07, Chris Double <chris.double at double.co.nz> wrote:
>
> > Looping is useful for more presentational uses of video. Start and
> > end time are useful in case you want to package a bunch of small bits
> > of video in one file and just play different segments, similar to the
> > way content authors sometimes have one big image and use different
> > subregions. Or consider looping audio, or a single audio file with
> > multiple sound effects. These are two examples.
>
> Could the looping be done via javascript rather than having explicit
> support for it with loopStartTime, etc? If an event is raised when the
> video reaches endTime then event handler could then restart it.


For smooth looping, you need to have the next buffer ready and cued up when
the previous one finishes. Doing this consistently with a roundtrip through
javascript events is going to stutter or gap. For video at 30fps, you can
make the interval, but audio at 48khz means you are more likely to hear a
click or gap.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.whatwg.org/pipermail/whatwg-whatwg.org/attachments/20070324/f586adfa/attachment-0001.htm>


More information about the whatwg mailing list