[html5] r3619 - [gow] (2) Trigger a 'progress' event once all media data has been downloaded, to [...]

whatwg at whatwg.org whatwg at whatwg.org
Fri Aug 14 02:17:14 PDT 2009


Author: ianh
Date: 2009-08-14 02:17:13 -0700 (Fri, 14 Aug 2009)
New Revision: 3619

Modified:
   index
   source
Log:
[gow] (2) Trigger a 'progress' event once all media data has been downloaded, to ensure that progress bars complete even if the decoding hasn't finished.

Modified: index
===================================================================
--- index	2009-08-14 06:56:07 UTC (rev 3618)
+++ index	2009-08-14 09:17:13 UTC (rev 3619)
@@ -21254,6 +21254,18 @@
      </dd>
 
 
+     <dt>Once the entire <a href=#media-resource>media resource</a> has been <a href=#fetch title=fetch>fetched</a> (but potentially before any of it
+     has been decoded)</dt>
+
+     <dd>
+
+      <p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-progress-event>fire a progress
+      event</a> called <code title=event-progress><a href=#event-progress>progress</a></code>
+      at the element.</p>
+
+     </dd>
+
+
      <dt>If the connection is interrupted, causing the user agent to
      give up trying to fetch the resource</dt>
 
@@ -21290,6 +21302,7 @@
 
       </ol></dd>
 
+
      <dt id=fatal-decode-error>If the <a href=#media-data>media data</a> is
      corrupted</dt>
 
@@ -21325,6 +21338,7 @@
 
       </ol></dd>
 
+
      <dt>If the <a href=#media-data>media data</a> fetching process is aborted by
      the user</dt>
 
@@ -21367,6 +21381,7 @@
 
       </ol></dd>
 
+
      <dt id=non-fatal-media-error>If the <a href=#media-data>media data</a> can
      be fetched but has non-fatal errors or uses, in part, codecs that
      are unsupported, preventing the user agent from rendering the
@@ -21390,9 +21405,9 @@
 
    </li>
 
-   <li><p>If the fetching process completes without errors, then set
-   the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code>
-   attribute to <code title=dom-media-NETWORK_LOADED><a href=#dom-media-network_loaded>NETWORK_LOADED</a></code>, and
+   <li><p>If the fetching process completes without errors, including
+   decoding the media data, then set the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute to
+   <code title=dom-media-NETWORK_LOADED><a href=#dom-media-network_loaded>NETWORK_LOADED</a></code>, and
    <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-progress-event>fire a progress event</a>
    called <code title=event-load><a href=#event-load>load</a></code> at the
    element.</li>

Modified: source
===================================================================
--- source	2009-08-14 06:56:07 UTC (rev 3618)
+++ source	2009-08-14 09:17:13 UTC (rev 3619)
@@ -22904,6 +22904,19 @@
      </dd>
 
 
+     <dt>Once the entire <span>media resource</span> has been <span
+     title="fetch">fetched</span> (but potentially before any of it
+     has been decoded)</dt>
+
+     <dd>
+
+      <p><span>Queue a task</span> to <span>fire a progress
+      event</span> called <code title="event-progress">progress</code>
+      at the element.</p>
+
+     </dd>
+
+
      <dt>If the connection is interrupted, causing the user agent to
      give up trying to fetch the resource</dt>
 
@@ -22948,6 +22961,7 @@
 
      </dd>
 
+
      <dt id="fatal-decode-error">If the <span>media data</span> is
      corrupted</dt>
 
@@ -22992,6 +23006,7 @@
 
      </dd>
 
+
      <dt>If the <span>media data</span> fetching process is aborted by
      the user</dt>
 
@@ -23045,6 +23060,7 @@
 
      </dd>
 
+
      <dt id="non-fatal-media-error">If the <span>media data</span> can
      be fetched but has non-fatal errors or uses, in part, codecs that
      are unsupported, preventing the user agent from rendering the
@@ -23073,10 +23089,10 @@
 
    </li>
 
-   <li><p>If the fetching process completes without errors, then set
-   the <code title="dom-media-networkState">networkState</code>
-   attribute to <code
-   title="dom-media-NETWORK_LOADED">NETWORK_LOADED</code>, and
+   <li><p>If the fetching process completes without errors, including
+   decoding the media data, then set the <code
+   title="dom-media-networkState">networkState</code> attribute to
+   <code title="dom-media-NETWORK_LOADED">NETWORK_LOADED</code>, and
    <span>queue a task</span> to <span>fire a progress event</span>
    called <code title="event-load">load</code> at the
    element.</p></li>




More information about the Commit-Watchers mailing list