[whatwg] VIDEO Timeupdate event frequency.

Biju bijumaillist at gmail.com
Fri Sep 10 20:06:11 PDT 2010


On Fri, Sep 10, 2010 at 7:05 AM, Silvia Pfeiffer
<silviapfeiffer1 at gmail.com> wrote:
> Incidentally: What use case did you have in mind, Biju ?

I was thinking about applications like
https://developer.mozilla.org/samples/video/chroma-key/index.xhtml
( https://developer.mozilla.org/En/Manipulating_video_using_canvas )

Now it is using setTimeout so if processor is fast it will be
processing same frame more than on time. Hence wasting system
resource, which may affect other running process.

If we use timeupdate event we may be missing some frames as timeupdate
event is only happen every 200ms or 250ms, ie 4 or 5 frames per
second. And we know there are videos which a have more than 5 frames
per second.

Another Idea is to make timeupdate event frequency adjustable by Webdeveloper.

Thanks
Biju



More information about the whatwg mailing list