html5/spec spec.html,1.1445,1.1446 video.html,1.940,1.941

Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv3964

Modified Files:
	spec.html video.html 
Log Message:
Make 'playing' fire even if the video is paused for user interaction, since otherwise you never get that event, which could be rather confusing for authors. Sadly this makes 'playing' somewhat redundant with a combination of 'canplay', 'canplaythrough', and 'play', but it's probably still useful enough. (whatwg r6017)

[updated by splitter]


Index: video.html
===================================================================
RCS file: /sources/public/html5/spec/video.html,v
retrieving revision 1.940
retrieving revision 1.941
diff -u -d -r1.940 -r1.941
--- video.html	15 Apr 2011 19:46:44 -0000	1.940
+++ video.html	15 Apr 2011 21:46:55 -0000	1.941
@@ -2486,9 +2486,9 @@
     <p>The user agent must <a href="webappapis.html#queue-a-task">queue a task</a> to <a href="webappapis.html#fire-a-simple-event">fire a
     simple event</a> named <code title="event-media-canplay"><a href="#event-media-canplay">canplay</a></code>.</p>
 
-    <p>If the element is <a href="#potentially-playing">potentially playing</a>, the user
-    agent must <a href="webappapis.html#queue-a-task">queue a task</a> to <a href="webappapis.html#fire-a-simple-event">fire a simple
-    event</a> named <code title="event-media-playing"><a href="#event-media-playing">playing</a></code>.</p>
+    <p>If the element's <code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code>
+    attribute is false, the user agent must <a href="webappapis.html#queue-a-task">queue a task</a>
+    to <a href="webappapis.html#fire-a-simple-event">fire a simple event</a> named <code title="event-media-playing"><a href="#event-media-playing">playing</a></code>.</p>
 
    </dd>
 
@@ -2499,9 +2499,10 @@
 
     <p>If the previous ready state was <code title="dom-media-HAVE_CURRENT_DATA"><a href="#dom-media-have_current_data">HAVE_CURRENT_DATA</a></code> or
     less, the user agent must <a href="webappapis.html#queue-a-task">queue a task</a> to <a href="webappapis.html#fire-a-simple-event">fire
-    a simple event</a> named <code title="event-media-canplay"><a href="#event-media-canplay">canplay</a></code>, and, if the element is also
-    <a href="#potentially-playing">potentially playing</a>, <a href="webappapis.html#queue-a-task">queue a task</a> to
-    <a href="webappapis.html#fire-a-simple-event">fire a simple event</a> named <code title="event-media-playing"><a href="#event-media-playing">playing</a></code>.</p>
+    a simple event</a> named <code title="event-media-canplay"><a href="#event-media-canplay">canplay</a></code>, and, if the element's
+    <code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code> attribute is false,
+    <a href="webappapis.html#queue-a-task">queue a task</a> to <a href="webappapis.html#fire-a-simple-event">fire a simple event</a>
+    named <code title="event-media-playing"><a href="#event-media-playing">playing</a></code>.</p>
 
     <p>If the <a href="#autoplaying-flag">autoplaying flag</a> is true, and the <code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code> attribute is true, and the
     <a href="#media-element">media element</a> has an <code title="attr-media-autoplay"><a href="#attr-media-autoplay">autoplay</a></code> attribute specified,
@@ -2826,10 +2827,10 @@
 
       <p>Otherwise, the <a href="#media-element">media element</a>'s <code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> attribute has the
       value <code title="dom-media-HAVE_FUTURE_DATA"><a href="#dom-media-have_future_data">HAVE_FUTURE_DATA</a></code> or
-      <code title="dom-media-HAVE_ENOUGH_DATA"><a href="#dom-media-have_enough_data">HAVE_ENOUGH_DATA</a></code>; if
-      the <a href="#media-element">media element</a> is <a href="#potentially-playing">potentially
-      playing</a>, then <a href="webappapis.html#queue-a-task">queue a task</a> to <a href="webappapis.html#fire-a-simple-event">fire a
-      simple event</a> named <code title="event-media-playing"><a href="#event-media-playing">playing</a></code> at the element.</p>
+      <code title="dom-media-HAVE_ENOUGH_DATA"><a href="#dom-media-have_enough_data">HAVE_ENOUGH_DATA</a></code>:
+      <a href="webappapis.html#queue-a-task">queue a task</a> to <a href="webappapis.html#fire-a-simple-event">fire a simple event</a>
+      named <code title="event-media-playing"><a href="#event-media-playing">playing</a></code> at the
+      element.</p>
 
      </li>
 
@@ -4671,10 +4672,9 @@
      </td><td><code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> is newly equal to <code title="dom-media-HAVE_ENOUGH_DATA"><a href="#dom-media-have_enough_data">HAVE_ENOUGH_DATA</a></code>.
     </td></tr><tr><td><dfn id="event-media-playing" title="event-media-playing"><code>playing</code></dfn>
      </td><td><code><a href="infrastructure.html#event">Event</a></code>
-     </td><td>Playback has started after having been delayed due to lack of <a href="#media-data">media data</a>.
-     </td><td>The element is newly <a href="#potentially-playing">potentially playing</a>, either because <code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> is newly equal to or greater than <code title="dom-media-HAVE_FUTURE_DATA"><a href="#dom-media-have_future_data">HAVE_FUTURE_DATA</a></code>, or because <code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code> is newly false. It is possible for playback to start without this event firing, e.g. if when playback would have started, 
-     the element had been <a href="#paused-for-user-interaction">paused for user interaction</a>.
-     
+     </td><td>Playback is ready to start after having been paused or delayed due to lack of <a href="#media-data">media data</a>.
+     </td><td><code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> is newly equal to or greater than <code title="dom-media-HAVE_FUTURE_DATA"><a href="#dom-media-have_future_data">HAVE_FUTURE_DATA</a></code> and <code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code> is false, or <code title="dom-media-paused"><a href="#dom-media-paused">paused</a></code> is newly false and <code title="dom-media-readyState"><a href="#dom-media-readystate">readyState</a></code> is equal to or greater than <code title="dom-media-HAVE_FUTURE_DATA"><a href="#dom-media-have_future_data">HAVE_FUTURE_DATA</a></code>. Even if this event fires, the element might still not be <a href="#potentially-playing">potentially playing</a>, e.g. if
+     the element is <a href="#paused-for-user-interaction">paused for user interaction</a>.
     </td></tr><tr><td><dfn id="event-media-waiting" title="event-media-waiting"><code>waiting</code></dfn>
      </td><td><code><a href="infrastructure.html#event">Event</a></code>
      </td><td>Playback has stopped because the next frame is not available, but the user agent expects that frame to become available in due course.

Index: spec.html
===================================================================
RCS file: /sources/public/html5/spec/spec.html,v
retrieving revision 1.1445
retrieving revision 1.1446
diff -u -d -r1.1445 -r1.1446
--- spec.html	15 Apr 2011 20:47:19 -0000	1.1445
+++ spec.html	15 Apr 2011 21:46:55 -0000	1.1446
@@ -367,7 +367,7 @@
     <a href="Overview.html">single page HTML</a>,
     <a href="spec.html">multipage HTML</a>,
     <a href="author/">web developer edition</a>.
-This is revision 1.4837.
+This is revision 1.4839.
    </p> 
      <p class="copyright"><a href="http://www.w3.org/Consortium/Legal/ipr-notice#Copyright">Copyright</a>
    &#169; 2010 <a href="http://www.w3.org/"><abbr title="World Wide

Received on Friday, 15 April 2011 21:46:58 UTC