[html5] r1622 - /

whatwg at whatwg.org whatwg at whatwg.org
Wed May 14 20:27:01 PDT 2008


Author: ianh
Date: 2008-05-14 20:27:00 -0700 (Wed, 14 May 2008)
New Revision: 1622

Modified:
   index
   source
Log:
[gow] (2) Change the 'begin' event to 'loadstart'; clarify firing of events for .play()

Modified: index
===================================================================
--- index	2008-05-15 01:54:24 UTC (rev 1621)
+++ index	2008-05-15 03:27:00 UTC (rev 1622)
@@ -15753,8 +15753,9 @@
 
    <li>
     <p>The user agent must then set the <a href="#begun">begun flag</a> to
-     true and <a href="#firing6">fire a progress event</a> called
-     <code>begin</code> at the <a href="#media7">media element</a>.
+     true and <a href="#firing6">fire a progress event</a> called <code
+     title=event-loadstart><a href="#loadstart">loadstart</a></code> at the
+     <a href="#media7">media element</a>.
 
    <li>
     <p>The method must return, but these steps must continue.
@@ -16575,8 +16576,9 @@
    (either by being set by script or by being changed directly by the user
    agent, e.g. in response to user control) the user agent must, once any
    running scripts have finished, <a href="#firing2">fire a simple event</a>
-   called <code title=event-ratechange>ratechange</code> at the <a
-   href="#media7">media element</a>.
+   called <code title=event-ratechange><a
+   href="#ratechange">ratechange</a></code> at the <a href="#media7">media
+   element</a>.
 
   <p>When the <dfn id=play title=dom-media-play><code>play()</code></dfn>
    method on a <a href="#media7">media element</a> is invoked, the user agent
@@ -16600,12 +16602,25 @@
      title=dom-media-seek>seek</a> to the <var><a href="#effective">effective
      start</a></var>.</p>
 
+    <p class=note>If this involved a seek, the user agent will<!--
+    XXX queued-->
+     <a href="#firing2">fire a simple event</a> called <code
+     title=event-timeupdate><a href="#timeupdate">timeupdate</a></code> at
+     the <a href="#media7">media element</a>.</p>
+
    <li>
     <p>The <code title=dom-media-playbackRate><a
      href="#playbackrate">playbackRate</a></code> attribute must be set to
      the value of the <code title=dom-media-defaultPlaybackRate><a
-     href="#defaultplaybackrate">defaultPlaybackRate</a></code> attribute.
+     href="#defaultplaybackrate">defaultPlaybackRate</a></code> attribute.</p>
 
+    <p class=note>If this caused the <code title=dom-media-playbackRate><a
+     href="#playbackrate">playbackRate</a></code> attribute to change value,
+     the user agent will<!-- XXX queued--> <a href="#firing2">fire a simple
+     event</a> called <code title=event-ratechange><a
+     href="#ratechange">ratechange</a></code> at the <a href="#media7">media
+     element</a>.</p>
+
    <li>
     <p>If the <a href="#media7">media element</a>'s <code
      title=dom-media-paused><a href="#paused">paused</a></code> attribute is
@@ -16617,26 +16632,19 @@
 
    <li>
     <p>The method must then return.
+
+   <li>
+    <p>If the fourth step above changed the value of <code
+     title=dom-media-paused><a href="#paused">paused</a></code>, the user
+     agent must, after any running scripts have finished executing, and after
+     any other events triggered by this algorithm (specifically <code
+     title=event-timeupdate><a href="#timeupdate">timeupdate</a></code> and
+     <code title=event-ratechange><a
+     href="#ratechange">ratechange</a></code>) have fired, <a
+     href="#firing2">fire a simple event</a> called <code
+     title=event-pause><a href="#pause1">play</a></code> at the element.
   </ol>
 
-  <p class=note>If the second step above involved a seek, the user agent will
-   <a href="#firing2">fire a simple event</a> called <code
-   title=event-timeupdate><a href="#timeupdate">timeupdate</a></code> at the
-   <a href="#media7">media element</a>.
-
-  <p class=note>If the third step above caused the <code
-   title=dom-media-playbackRate><a
-   href="#playbackrate">playbackRate</a></code> attribute to change value,
-   the user agent will <a href="#firing2">fire a simple event</a> called
-   <code title=event-ratechange>ratechange</code> at the <a
-   href="#media7">media element</a>.
-
-  <p class=note>If the fourth step above changed the value of <code
-   title=dom-media-paused><a href="#paused">paused</a></code>, the user agent
-   must <a href="#firing2">fire a simple event</a> called <code
-   title=event-play><a href="#play0">play</a></code> at the <a
-   href="#media7">media element</a>.
-
   <p>When the <dfn id=pause0 title=dom-media-pause><code>pause()</code></dfn>
    method is invoked, the user agent must run the following steps:
 
@@ -17089,7 +17097,8 @@
 
    <tbody>
     <tr>
-     <td><dfn id=begin title=event-begin><code>begin</code></dfn>
+     <td><dfn id=loadstart title=event-loadstart><code>loadstart</code></dfn>
+      
 
      <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a>
 
@@ -17356,7 +17365,7 @@
 
     <tr>
      <td><dfn id=ratechange
-      title=event-ratehange><code>ratechange</code></dfn>
+      title=event-ratechange><code>ratechange</code></dfn>
 
      <td><code>Event</code>
 

Modified: source
===================================================================
--- source	2008-05-15 01:54:24 UTC (rev 1621)
+++ source	2008-05-15 03:27:00 UTC (rev 1622)
@@ -13691,8 +13691,9 @@
    returning the new value.</p></li>
 
    <li><p>The user agent must then set the <span>begun flag</span> to
-   true and <span>fire a progress event</span> called
-   <code>begin</code> at the <span>media element</span>.</p></li>
+   true and <span>fire a progress event</span> called <code
+   title="event-loadstart">loadstart</code> at the <span>media
+   element</span>.</p></li>
 
    <li><p>The method must return, but these steps must
    continue.</p></li>
@@ -14511,17 +14512,37 @@
    exception must be reraised by the <code
    title="dom-media-play">play()</code> method.</p></li>
 
-   <li><p>If the <span title="ended playback">playback has
-   ended</span>, then the user agent must set <code
-   title="dom-media-currentLoop">currentLoop</code> to zero and <span
-   title="dom-media-seek">seek</span> to the <var>effective
-   start</var>.</p>
+   <li>
 
-   <li><p>The <code title="dom-media-playbackRate">playbackRate</code>
-   attribute must be set to the value of the <code
-   title="dom-media-defaultPlaybackRate">defaultPlaybackRate</code>
-   attribute.</p></li>
+    <p>If the <span title="ended playback">playback has ended</span>,
+    then the user agent must set <code
+    title="dom-media-currentLoop">currentLoop</code> to zero and <span
+    title="dom-media-seek">seek</span> to the <var>effective
+    start</var>.</p>
 
+    <p class="note">If this involved a seek, the user agent will<!--
+    XXX queued--> <span>fire a simple event</span> called <code
+    title="event-timeupdate">timeupdate</code> at the <span>media
+    element</span>.</p>
+
+   </li>
+
+   <li>
+
+    <p>The <code title="dom-media-playbackRate">playbackRate</code>
+    attribute must be set to the value of the <code
+    title="dom-media-defaultPlaybackRate">defaultPlaybackRate</code>
+    attribute.</p>
+
+    <p class="note">If this caused the <code
+    title="dom-media-playbackRate">playbackRate</code> attribute to
+    change value, the user agent will<!-- XXX queued--> <span>fire a
+    simple event</span> called <code
+    title="event-ratechange">ratechange</code> at the <span>media
+    element</span>.</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></li>
@@ -14531,27 +14552,18 @@
 
    <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, after
+   any running scripts have finished executing, and after any other
+   events triggered by this algorithm (specifically <code
+   title="event-timeupdate">timeupdate</code> and <code
+   title="event-ratechange">ratechange</code>) have fired, <span>fire
+   a simple event</span> called <code title="event-pause">play</code>
+   at the element.</p></li>
+
   </ol>
 
-  <p class="note">If the second step above involved a seek, the user
-  agent will <span>fire a simple event</span> called <code
-  title="event-timeupdate">timeupdate</code> at the <span>media
-  element</span>.</p>
 
-  <p class="note">If the third step above caused the <code
-  title="dom-media-playbackRate">playbackRate</code> attribute to
-  change value, the user agent will <span>fire a simple event</span>
-  called <code title="event-ratechange">ratechange</code> at the
-  <span>media element</span>.</p>
-
-  <p class="note">If the fourth step above changed the value of <code
-  title="dom-media-paused">paused</code>, the user agent must
-  <span>fire a simple event</span> called <code
-  title="event-play">play</code> at the <span>media
-  element</span>.</p>
-
-
-
   <p>When the <dfn title="dom-media-pause"><code>pause()</code></dfn>
   method is invoked, the user agent must run the following steps:</p>
 
@@ -14989,7 +15001,7 @@
 
    <tbody>
     <tr>
-     <td><dfn title="event-begin"><code>begin</code></dfn>
+     <td><dfn title="event-loadstart"><code>loadstart</code></dfn>
      <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a>
      <td>The user agent begins fetching the <span>media data</span>, synchronously during the <code title="dom-media-load">load()</code> method call.
      <td><code title="dom-media-networkState">networkState</code> equals <code title="dom-media-LOADING">LOADING</code>
@@ -15081,7 +15093,7 @@
      <td>The user agent estimates that if playback were to be started now, the <span>media resource</span> could be rendered at the current playback rate all the way to its end without having to stop for further buffering.
      <td>The <code title="dom-media-readyState">readyState</code> attribute is newly equal to <code title="dom-media-CAN_PLAY_THROUGH">CAN_PLAY_THROUGH</code>.
     <tr>
-     <td><dfn title="event-ratehange"><code>ratechange</code></dfn>
+     <td><dfn title="event-ratechange"><code>ratechange</code></dfn>
      <td><code>Event</code>
      <td>Either the <code title="dom-media-defaultPlaybackRate">defaultPlaybackRate</code> or the <code title="dom-media-playbackRate">playbackRate</code> attribute has just been updated.
      <td>




More information about the Commit-Watchers mailing list