W3C home > Mailing lists > Public > public-html-commits@w3.org > April 2011

html5/spec Overview.html,1.4838,1.4839

From: Ian Hickson via cvs-syncmail <cvsmail@w3.org>
Date: Fri, 15 Apr 2011 21:15:18 +0000
To: public-html-commits@w3.org
Message-Id: <E1QAqMI-00008E-KJ@lionel-hutz.w3.org>
Update of /sources/public/html5/spec
In directory hutz:/tmp/cvs-serv455

Modified Files:
	Overview.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)

Index: Overview.html
===================================================================
RCS file: /sources/public/html5/spec/Overview.html,v
retrieving revision 1.4838
retrieving revision 1.4839
diff -u -d -r1.4838 -r1.4839
--- Overview.html	15 Apr 2011 20:57:39 -0000	1.4838
+++ Overview.html	15 Apr 2011 21:15:14 -0000	1.4839
@@ -23201,9 +23201,9 @@
     <p>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-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="#queue-a-task">queue a task</a> to <a href="#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="#queue-a-task">queue a task</a>
+    to <a href="#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>
 
@@ -23214,9 +23214,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="#queue-a-task">queue a task</a> to <a href="#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="#queue-a-task">queue a task</a> to
-    <a href="#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="#queue-a-task">queue a task</a> to <a href="#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,
@@ -23541,10 +23542,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="#queue-a-task">queue a task</a> to <a href="#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="#queue-a-task">queue a task</a> to <a href="#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>
 
@@ -25386,10 +25387,9 @@
      <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>.
     <tr><td><dfn id="event-media-playing" title="event-media-playing"><code>playing</code></dfn>
      <td><code><a href="#event">Event</a></code>
-     <td>Playback has started after having been delayed due to lack of <a href="#media-data">media data</a>.
-     <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>Playback is ready to start after having been paused or delayed due to lack of <a href="#media-data">media data</a>.
+     <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>.
     <tr><td><dfn id="event-media-waiting" title="event-media-waiting"><code>waiting</code></dfn>
      <td><code><a href="#event">Event</a></code>
      <td>Playback has stopped because the next frame is not available, but the user agent expects that frame to become available in due course.
Received on Friday, 15 April 2011 21:15:20 GMT

This archive was generated by hypermail 2.2.0+W3C-0.50 : Friday, 15 April 2011 21:15:20 GMT