W3C home > Mailing lists > Public > whatwg@whatwg.org > October 2008

[whatwg] Video Element Events? - Use Case: Custom Progress Bar

From: Chris Double <chris.double@double.co.nz>
Date: Wed, 29 Oct 2008 18:36:53 +1300
Message-ID: <c2e346f90810282236v558b228bif0077b4c8f4f9bf5@mail.gmail.com>
On Wed, Oct 29, 2008 at 5:22 PM, Charles Iliya Krempeaux
<supercanadian at gmail.com> wrote:
> Perhaps I didn't read the spec carefully enough, but I don't see any such
> event.

You're looking for the 'timeupdate' event. This gets raised whenever
the current playback position changes. From the spec section

"If the time was reached through the usual monotonic increase of the current
playback position during normal playback, the user agent must then queue a task
to fire a simple event called timeupdate at the element. (In the other cases,
such as explicit seeks, relevant events get fired as part of the overall
process of changing the current playback position.)"

Although this is hidden away in the cue ranges section, it happens on
normal playback without cue ranges.

Received on Tuesday, 28 October 2008 22:36:53 UTC

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