[html5] r2496 - [gow] (2) Fire 'waiting' after play() if playback is not immediately started.

whatwg at whatwg.org whatwg at whatwg.org
Mon Dec 1 03:36:33 PST 2008


Author: ianh
Date: 2008-12-01 03:36:32 -0800 (Mon, 01 Dec 2008)
New Revision: 2496

Modified:
   index
   source
Log:
[gow] (2) Fire 'waiting' after play() if playback is not immediately started.

Modified: index
===================================================================
--- index	2008-12-01 11:25:06 UTC (rev 2495)
+++ index	2008-12-01 11:36:32 UTC (rev 2496)
@@ -18105,19 +18105,28 @@
 
    </li>
 
-   <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-paused><a href=#dom-media-paused>paused</a></code> attribute is true, it must
-   be set to false.</li>
+   <li>
 
+    <p>If the <a href=#media-element>media element</a>'s <code title=dom-media-paused><a href=#dom-media-paused>paused</a></code> attribute is true, it must
+    be set to false.</p>
+
+    <p>If this changed the value of <code title=dom-media-paused><a href=#dom-media-paused>paused</a></code>, 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>
+    called <code title=event-play><a href=#event-play>play</a></code> at the element.</p>
+
+   </li>
+
    <li><p>The <a href=#media-element>media element</a>'s <a href=#autoplaying-flag>autoplaying
    flag</a> must be set to false.</li>
 
+   <li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a
+   value lower than <code title=dom-media-HAVE_FUTURE_DATA><a href=#dom-media-have_future_data>HAVE_FUTURE_DATA</a></code>, 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> called <code title=event-waiting><a href=#event-waiting>waiting</a></code> at
+   the element.</li>
+
    <li><p>The method must then return.</li>
 
-   <li><p>If the fourth step above changed the value of <code title=dom-media-paused><a href=#dom-media-paused>paused</a></code>, 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>
-   called <code title=event-play><a href=#event-play>play</a></code> at the
-   element.</li>
-
   </ol><hr><p>When the <dfn id=dom-media-pause title=dom-media-pause><code>pause()</code></dfn>
   method is invoked, the user agent must run the following steps:</p>
 
@@ -18312,7 +18321,7 @@
    <li><p>If the <a href=#media-element>media element</a> was <a href=#potentially-playing>potentially
    playing</a> immediately before it started seeking, but seeking
    caused its <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code>
-   attribute to change to a value lower than <code title=dom-media-HAVE_FUTURE_FRAME>HAVE_FUTURE_FRAME</code>, the
+   attribute to change to a value lower than <code title=dom-media-HAVE_FUTURE_DATA><a href=#dom-media-have_future_data>HAVE_FUTURE_DATA</a></code>, 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> called <code title=event-waiting><a href=#event-waiting>waiting</a></code> at
    the element.</li>

Modified: source
===================================================================
--- source	2008-12-01 11:25:06 UTC (rev 2495)
+++ source	2008-12-01 11:36:32 UTC (rev 2496)
@@ -19606,21 +19606,32 @@
 
    </li>
 
-   <li><p>If the <span>media element</span>'s <code
-   title="dom-media-paused">paused</code> attribute is true, it must
-   be set to false.</p></li>
+   <li>
 
+    <p>If the <span>media element</span>'s <code
+    title="dom-media-paused">paused</code> attribute is true, it must
+    be set to false.</p>
+
+    <p>If this changed the value of <code
+    title="dom-media-paused">paused</code>, the user agent must
+    <span>queue a task</span> to <span>fire a simple event</span>
+    called <code title="event-play">play</code> at the element.</p>
+
+   </li>
+
    <li><p>The <span>media element</span>'s <span>autoplaying
    flag</span> must be set to false.</p></li>
 
+   <li><p>If the <span>media element</span>'s <code
+   title="dom-media-readyState">readyState</code> attribute has a
+   value lower than <code
+   title="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</code>, the
+   user agent must <span>queue a task</span> to <span>fire a simple
+   event</span> called <code title="event-waiting">waiting</code> at
+   the element.</p></li>
+
    <li><p>The method must then return.</p></li>
 
-   <li><p>If the fourth step above changed the value of <code
-   title="dom-media-paused">paused</code>, the user agent must
-   <span>queue a task</span> to <span>fire a simple event</span>
-   called <code title="event-play">play</code> at the
-   element.</p></li>
-
   </ol>
 
   <hr>
@@ -19858,7 +19869,7 @@
    playing</span> immediately before it started seeking, but seeking
    caused its <code title="dom-media-readyState">readyState</code>
    attribute to change to a value lower than <code
-   title="dom-media-HAVE_FUTURE_FRAME">HAVE_FUTURE_FRAME</code>, the
+   title="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</code>, the
    user agent must <span>queue a task</span> to <span>fire a simple
    event</span> called <code title="event-waiting">waiting</code> at
    the element.</p></li>




More information about the Commit-Watchers mailing list