Skip to content

Commit

Permalink
[giow] (0) Prevent 'timeupdate' from firing faster than it is handled.
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@4684 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Feb 10, 2010
1 parent 110033d commit a44fbad
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 26 deletions.
20 changes: 11 additions & 9 deletions complete.html
Expand Up @@ -110,7 +110,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>Web Applications 1.0</h1>
<h2 class="no-num no-toc">Draft Standard &mdash; 6 February 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 10 February 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
Expand Down Expand Up @@ -23014,8 +23014,9 @@ <h5 id=offsets-into-the-media-resource><span class=secno>4.8.9.6 </span>Offsets
<p>When the <a href=#earliest-possible-position>earliest possible position</a> changes, then:
if the <a href=#current-playback-position>current playback position</a> is before the
<a href=#earliest-possible-position>earliest possible position</a>, the user agent must <a href=#dom-media-seek title=dom-media-seek>seek</a> to the <a href=#earliest-possible-position>earliest possible
position</a>; otherwise, if the user agent has not fired a <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> event at the element in
the past 15 to 250ms, then the user agent must <a href=#queue-a-task>queue a
position</a>; otherwise, if the user agent has not fired a <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> event at the
element in the past 15 to 250ms and is not still running event
handlers for such an event, then the user agent must <a href=#queue-a-task>queue a
task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> at the element.</p>

<p class=note>Because of the above requirement and the requirement
Expand Down Expand Up @@ -23726,12 +23727,13 @@ <h5 id=playing-the-media-resource><span class=secno>4.8.9.8 </span>Playing the m
element.</p></li>
--><li><p>If the time was reached through the usual monotonic increase
of the current playback position during normal playback, and if the
user agent has not fired a <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> event at the element in
the past 15 to 250ms, then the user agent must <a href=#queue-a-task>queue a
task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></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>
user agent has not fired a <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> event at the
element in the past 15 to 250ms and is not still running event
handlers for such an event, then the user agent must <a href=#queue-a-task>queue a
task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></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>

<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
Expand Down
20 changes: 11 additions & 9 deletions index
Expand Up @@ -112,7 +112,7 @@

<header class=head id=head><p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<hgroup><h1>HTML5 (including next generation additions still in development)</h1>
<h2 class="no-num no-toc">Draft Standard &mdash; 6 February 2010</h2>
<h2 class="no-num no-toc">Draft Standard &mdash; 10 February 2010</h2>
</hgroup><p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<!--<p class="impl"><strong>Implementors!</strong> We have a <a href="http://www.whatwg.org/mailing-list#implementors">mailing list</a> for you too!</p>-->
Expand Down Expand Up @@ -22913,8 +22913,9 @@ interface <dfn>CueRangeCallback</dfn> {
<p>When the <a href=#earliest-possible-position>earliest possible position</a> changes, then:
if the <a href=#current-playback-position>current playback position</a> is before the
<a href=#earliest-possible-position>earliest possible position</a>, the user agent must <a href=#dom-media-seek title=dom-media-seek>seek</a> to the <a href=#earliest-possible-position>earliest possible
position</a>; otherwise, if the user agent has not fired a <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> event at the element in
the past 15 to 250ms, then the user agent must <a href=#queue-a-task>queue a
position</a>; otherwise, if the user agent has not fired a <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> event at the
element in the past 15 to 250ms and is not still running event
handlers for such an event, then the user agent must <a href=#queue-a-task>queue a
task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> at the element.</p>

<p class=note>Because of the above requirement and the requirement
Expand Down Expand Up @@ -23625,12 +23626,13 @@ interface <dfn>CueRangeCallback</dfn> {
element.</p></li>
--><li><p>If the time was reached through the usual monotonic increase
of the current playback position during normal playback, and if the
user agent has not fired a <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> event at the element in
the past 15 to 250ms, then the user agent must <a href=#queue-a-task>queue a
task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></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>
user agent has not fired a <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> event at the
element in the past 15 to 250ms and is not still running event
handlers for such an event, then the user agent must <a href=#queue-a-task>queue a
task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></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>

<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
Expand Down
18 changes: 10 additions & 8 deletions source
Expand Up @@ -24782,8 +24782,9 @@ interface <dfn>CueRangeCallback</dfn> {
<span>earliest possible position</span>, the user agent must <span
title="dom-media-seek">seek</span> to the <span>earliest possible
position</span>; otherwise, if the user agent has not fired a <code
title="event-media-timeupdate">timeupdate</code> event at the element in
the past 15 to 250ms, then the user agent must <span>queue a
title="event-media-timeupdate">timeupdate</code> event at the
element in the past 15 to 250ms and is not still running event
handlers for such an event, then the user agent must <span>queue a
task</span> to <span>fire a simple event</span> named <code
title="event-media-timeupdate">timeupdate</code> at the element.</p>

Expand Down Expand Up @@ -25627,13 +25628,14 @@ interface <dfn>CueRangeCallback</dfn> {
<li><p>If the time was reached through the usual monotonic increase
of the current playback position during normal playback, and if the
user agent has not fired a <code
title="event-media-timeupdate">timeupdate</code> event at the element in
the past 15 to 250ms, then the user agent must <span>queue a
title="event-media-timeupdate">timeupdate</code> event at the
element in the past 15 to 250ms and is not still running event
handlers for such an event, then the user agent must <span>queue a
task</span> to <span>fire a simple event</span> named <code
title="event-media-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>
title="event-media-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>

<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
Expand Down

0 comments on commit a44fbad

Please sign in to comment.