HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2407[Gecko] [Opera] [Webkit] Specify how frequently the timeupdate event should fire.2008-11-17 01:11
@@ -19664,27 +19664,36 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
    element.</p></li>
 
    <li><p>If none of the <span title="cue range">cue ranges</span> in
    <var title="">current ranges</var> have their "active" boolean set
    to "false" (inactive) and none of the <span title="cue range">cue
    ranges</span> in <var title="">other ranges</var> have their
    "active" boolean set to "true" (active), then abort these
    steps.</p></li>
 
    <li><p>If the time was reached through the usual monotonic increase
-   of the current playback position during normal playback, the user
-   agent must then <span>queue a task</span> to <span>fire a simple
-   event</span> called <code
+   of the current playback position during normal playback, and if the
+   user agent has not fired a <code
+   title="event-timeupdate">timeupdate</code> event at the element in
+   the past 15 to 250ms, the user agent must then <span>queue a
+   task</span> to <span>fire a simple event</span> called <code
    title="event-timeupdate">timeupdate</code> 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.)</p></li>
+   position.)</p>
+
+   <p class="note">The event thus is not to be fired faster than about
+   66Hz or slower than 4Hz. User agents are encouraged to vary the
+   frequency of the event based on the system load and the average
+   cost of processing the event each time, so that the UI updates are
+   not any more frequent than the user agent can comfortably handle
+   while decoding the video.</p></li>
 
    <li><p>If the time was reached through the usual monotonic increase
    of the current playback position during normal playback, and there
    are <span title="cue range">cue ranges</span> in <var
    title="">other ranges</var> that have both their "active" boolean
    and their "pause" boolean set to "true", then immediately act as if
    the element's <code title="dom-media-pause">pause()</code> method
    had been invoked. <!-- pause() can in theory call load(), but never
    can it do so as part of this invokation, since we wouldn't be in
    this algorithm if the media element was empty. So, no need to couch

|