HTML Standard Tracker

Diff (omit for latest revision)
Filter

Short URL: http://html5.org/r/4132

File a bug

SVNBugCommentTime (UTC)
4132[Gecko] [Opera] [Webkit] <video> and <audio> never fire 'load' anymore.2009-10-14 10:00
Index: source
===================================================================
--- source	(revision 4131)
+++ source	(revision 4132)
@@ -23319,8 +23319,7 @@
   const unsigned short <span title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</span> = 0;
   const unsigned short <span title="dom-media-NETWORK_IDLE">NETWORK_IDLE</span> = 1;
   const unsigned short <span title="dom-media-NETWORK_LOADING">NETWORK_LOADING</span> = 2;
-  const unsigned short <span title="dom-media-NETWORK_LOADED">NETWORK_LOADED</span> = 3;
-  const unsigned short <span title="dom-media-NETWORK_NO_SOURCE">NETWORK_NO_SOURCE</span> = 4;
+  const unsigned short <span title="dom-media-NETWORK_NO_SOURCE">NETWORK_NO_SOURCE</span> = 3;
   readonly attribute unsigned short <span title="dom-media-networkState">networkState</span>;
            attribute boolean <span title="dom-media-autobuffer">autobuffer</span>;
 <!--v3BUF  readonly attribute float <span title="dom-media-bufferingRate">bufferingRate</span>;
@@ -23728,14 +23727,8 @@
 
    <dd>The user agent is actively trying to download data.</dd>
 
-   <dt><dfn title="dom-media-NETWORK_LOADED"><code>NETWORK_LOADED</code></dfn> (numeric value 3)</dt>
+   <dt><dfn title="dom-media-NETWORK_NO_SOURCE"><code>NETWORK_NO_SOURCE</code></dfn> (numeric value 3)</dt>
 
-   <dd>The entire <span>media resource</span> has been obtained and is
-   available to the user agent locally. Network connectivity could be
-   lost without affecting the media playback.</dd>
-
-   <dt><dfn title="dom-media-NETWORK_NO_SOURCE"><code>NETWORK_NO_SOURCE</code></dfn> (numeric value 4)</dt>
-
    <dd>The element<span class="impl">'s <span
    title="concept-media-load-algorithm">resource selection
    algorithm</span> is active, but it</span> has failed to find a
@@ -23752,13 +23745,9 @@
 
   </div>
 
-  <p class="note">Some resources, e.g. streaming Web radio, can never
-  reach the <code
-  title="dom-media-NETWORK_LOADED">NETWORK_LOADED</code> state.</p>
 
 
 
-
   <h5>Loading the media resource</h5>
 
   <dl class="domintro">
@@ -24025,7 +24014,8 @@
      the load event</span>.</p></li>
 
      <li><p>Abort these steps. Until the <code
-     title="dom-media-load">load()</code> method is invoked, the
+     title="dom-media-load">load()</code> method is invoked or the
+     <code title="attr-media-src">src</code> attribute is changed, the
      element won't attempt to load another resource.</p></li>
      <!-- it took its ball and went home, sulking. -->
 
@@ -24674,24 +24664,9 @@
 
    </li>
 
-   <li><p>Set the <code
-   title="dom-media-networkState">networkState</code> attribute to
-   <code
-   title="dom-media-NETWORK_LOADED">NETWORK_LOADED</code>.</p></li>
-
-   <li><p><span>Queue a task</span> to <span>fire a progress
-   event</span> named <code title="event-media-load">load</code> at the
-   <span>media element</span>, in the context of the <span
-   title="fetch">fetching process</span> started by this instance of
-   this algorithm.</p></li>
-
-   <li><p><span>Queue a task</span> to <span>fire a progress
-   event</span> named <code title="event-media-loadend">loadend</code> at
-   the <span>media element</span>, in the context of the <span
-   title="fetch">fetching process</span> started by this instance of
-   this algorithm.</p></li>
-
-   <li><p>Finally, abort the overall <span
+   <li><p>If the user agent ever reaches this step (which can only
+   happen if the entire resource gets loaded and kept available):
+   abort the overall <span
    title="concept-media-load-algorithm">resource selection
    algorithm</span>.</p></li>
 
@@ -26184,11 +26159,6 @@
      <td>The user agent is intentionally not currently fetching <span>media data</span>, but does not have the entire <span>media resource</span> downloaded.
      <td><code title="dom-media-networkState">networkState</code> equals <code title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code>
     <tr>
-     <td><dfn title="event-media-load"><code>load</code></dfn>
-     <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a>
-     <td>The user agent finishes fetching the entire <span>media resource</span>.
-     <td><code title="dom-media-networkState">networkState</code> equals <code title="dom-media-NETWORK_LOADED">NETWORK_LOADED</code>
-    <tr>
      <td><dfn title="event-media-abort"><code>abort</code></dfn>
      <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a>
      <td>The user agent stops fetching the <span>media data</span> before it is completely downloaded, but not due to an error.
@@ -26199,12 +26169,12 @@
      <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a>
      <td>An error occurs while fetching the <span>media data</span>.
      <td><code title="dom-media-error">error</code> is an object with the code <code title="dom-MediaError-MEDIA_ERR_NETWORK">MEDIA_ERR_NETWORK</code> or higher.
-         <code title="dom-media-networkState">networkState</code> equals either <code title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code> or <code title="dom-media-NETWORK_LOADED">NETWORK_LOADED</code>, depending on when the download was aborted.
+         <code title="dom-media-networkState">networkState</code> equals either <code title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code> or <code title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code>, depending on when the download was aborted.
     <tr>
      <td><dfn title="event-media-loadend"><code>loadend</code></dfn>
      <td><code>ProgressEvent</code> <a href="#refsPROGRESS">[PROGRESS]</a>
      <td>The user agent stops fetching the <span>media data</span>, for whatever reason.
-     <td>One of <code title="event-media-load">load</code>, <code title="event-media-abort">abort</code>, or <code title="event-media-error">error</code> has just fired.
+     <td>One of <code title="event-media-abort">abort</code> or <code title="event-media-error">error</code> has just fired.
     <tr>
      <td><dfn title="event-media-emptied"><code>emptied</code></dfn>
      <td><code>Event</code>

|