[html5] r2848 - [gw] (2) Avoid firing 'canplay' twice if media buffers slowly. Also, what's this [...]

whatwg at whatwg.org whatwg at whatwg.org
Sun Feb 22 01:28:31 PST 2009


Author: ianh
Date: 2009-02-22 01:28:30 -0800 (Sun, 22 Feb 2009)
New Revision: 2848

Modified:
   index
   source
Log:
[gw] (2) Avoid firing 'canplay' twice if media buffers slowly. Also, what's this about a 'prevous' ready state...?

Modified: index
===================================================================
--- index	2009-02-22 09:24:32 UTC (rev 2847)
+++ index	2009-02-22 09:28:30 UTC (rev 2848)
@@ -19136,7 +19136,7 @@
   </dl><p>When the ready state of a <a href=#media-element>media element</a> whose <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> is not <code title=dom-media-NETWORK_EMPTY><a href=#dom-media-network_empty>NETWORK_EMPTY</a></code> changes, the
   user agent must follow the steps given below:</p>
 
-  <dl class=switch><!-- going up to metadata --><dt>If the prevous ready state was <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, and the new
+  <dl class=switch><!-- going up to metadata --><dt>If the previous ready state was <code title=dom-media-HAVE_NOTHING><a href=#dom-media-have_nothing>HAVE_NOTHING</a></code>, and the new
    ready state is <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></code></dt>
 
    <dd>
@@ -19147,7 +19147,7 @@
 
    <!-- going up to current for the first time -->
 
-   <dt id=handling-first-frame-available>If the prevous ready state
+   <dt id=handling-first-frame-available>If the previous ready state
    was <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></code> and
    the new ready state is <code title=dom-media-HAVE_CURRENT_DATA><a href=#dom-media-have_current_data>HAVE_CURRENT_DATA</a></code></dt>
 
@@ -19161,7 +19161,7 @@
    </dd>
 
    <!-- going down -->
-   <dt>If the prevous ready state was <code title=dom-media-HAVE_FUTURE_DATA><a href=#dom-media-have_future_data>HAVE_FUTURE_DATA</a></code> or more,
+   <dt>If the previous ready state was <code title=dom-media-HAVE_FUTURE_DATA><a href=#dom-media-have_future_data>HAVE_FUTURE_DATA</a></code> or more,
    and the new ready state is <code title=dom-media-HAVE_CURRENT_DATA><a href=#dom-media-have_current_data>HAVE_CURRENT_DATA</a></code> or
    less</dt>
 
@@ -19174,7 +19174,7 @@
    </dd>
 
    <!-- going up to future -->
-   <dt>If the prevous ready state was <code title=dom-media-HAVE_CURRENT_DATA><a href=#dom-media-have_current_data>HAVE_CURRENT_DATA</a></code> or
+   <dt>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, and the new ready state is <code title=dom-media-HAVE_FUTURE_DATA><a href=#dom-media-have_future_data>HAVE_FUTURE_DATA</a></code></dt>
 
    <dd>
@@ -19193,8 +19193,11 @@
 
    <dd>
 
-    <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> called <code title=event-canplay><a href=#event-canplay>canplay</a></code>, and then <a href=#queue-a-task>queue a
+    <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> called <code title=event-canplay><a href=#event-canplay>canplay</a></code>.</p>
+
+    <p>In either case, the user agent must then <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-canplaythrough><a href=#event-canplaythrough>canplaythrough</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

Modified: source
===================================================================
--- source	2009-02-22 09:24:32 UTC (rev 2847)
+++ source	2009-02-22 09:28:30 UTC (rev 2848)
@@ -20623,7 +20623,7 @@
   <dl class="switch">
 
    <!-- going up to metadata -->
-   <dt>If the prevous ready state was <code
+   <dt>If the previous ready state was <code
    title="dom-media-HAVE_NOTHING">HAVE_NOTHING</code>, and the new
    ready state is <code
    title="dom-media-HAVE_METADATA">HAVE_METADATA</code></dt>
@@ -20639,7 +20639,7 @@
 
    <!-- going up to current for the first time -->
 
-   <dt id="handling-first-frame-available">If the prevous ready state
+   <dt id="handling-first-frame-available">If the previous ready state
    was <code title="dom-media-HAVE_METADATA">HAVE_METADATA</code> and
    the new ready state is <code
    title="dom-media-HAVE_CURRENT_DATA">HAVE_CURRENT_DATA</code></dt>
@@ -20656,7 +20656,7 @@
    </dd>
 
    <!-- going down -->
-   <dt>If the prevous ready state was <code
+   <dt>If the previous ready state was <code
    title="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</code> or more,
    and the new ready state is <code
    title="dom-media-HAVE_CURRENT_DATA">HAVE_CURRENT_DATA</code> or
@@ -20671,7 +20671,7 @@
    </dd>
 
    <!-- going up to future -->
-   <dt>If the prevous ready state was <code
+   <dt>If the previous ready state was <code
    title="dom-media-HAVE_CURRENT_DATA">HAVE_CURRENT_DATA</code> or
    less, and the new ready state is <code
    title="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</code></dt>
@@ -20695,9 +20695,13 @@
 
    <dd>
 
-    <p>The user agent must <span>queue a task</span> to <span>fire a
-    simple event</span> called <code
-    title="event-canplay">canplay</code>, and then <span>queue a
+    <p>If the previous ready state was <code
+    title="dom-media-HAVE_CURRENT_DATA">HAVE_CURRENT_DATA</code> or
+    less, the user agent must <span>queue a task</span> to <span>fire
+    a simple event</span> called <code
+    title="event-canplay">canplay</code>.</p>
+
+    <p>In either case, the user agent must then <span>queue a
     task</span> to <span>fire a simple event</span> called <code
     title="event-canplaythrough">canplaythrough</code>.</p>
 




More information about the Commit-Watchers mailing list