[html5] r4903 - [giow] (0) Cleanup of preload='' and autoplay=''. Fixing http://www.w3.org/Bugs/ [...]

whatwg at whatwg.org whatwg at whatwg.org
Mon Mar 29 19:45:04 PDT 2010


Author: ianh
Date: 2010-03-29 19:45:02 -0700 (Mon, 29 Mar 2010)
New Revision: 4903

Modified:
   complete.html
   index
   source
Log:
[giow] (0) Cleanup of preload='' and autoplay=''.
Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=9155

Modified: complete.html
===================================================================
--- complete.html	2010-03-30 01:52:04 UTC (rev 4902)
+++ complete.html	2010-03-30 02:45:02 UTC (rev 4903)
@@ -23783,10 +23783,7 @@
         network usage while still fetching the metadata for each
         <a href=#media-resource>media resource</a> would also stop buffering at this
         point, causing the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute
-        to switch to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value. This
-        is also where a user agent would stop buffering when honoring
-        the <a href=#media-element>media element</a>'s <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code>'s <a href=#attr-media-preload-metadata-state title=attr-media-preload-metadata-state>Metadata</a>
-        state.</p>
+        to switch to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value.</p>
 
        </li>
 
@@ -23992,8 +23989,9 @@
      <td>Hints to the user agent that the user agent can put the user's needs first without risk to the server, up to and including optimistically downloading the entire resource.
   </table><p>The empty string is also a valid keyword, and maps to the <a href=#attr-media-preload-auto-state title=attr-media-preload-auto-state>Automatic</a> state. The
   attribute's <i>missing value default</i> is user-agent defined,
-  though the <a href=#attr-media-preload-auto-state title=attr-media-preload-auto-state>Automatic</a> state is
-  suggested in high-bandwidth situations.</p>
+  though the <a href=#attr-media-preload-auto-state title=attr-media-preload-auto-state>Metadata</a> state is
+  suggested as a compromise between reducing server load and providing
+  an optimal user experience.</p>
 
   <div class=impl>
 
@@ -24001,9 +23999,7 @@
   intended to provide a hint to the user agent about what the author
   thinks will lead to the best user experience. The attribute may be
   ignored altogether, for example based on explicit user preferences
-  or based on the available connectivity. The attribute must be
-  ignored if the <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code>
-  attribute is present.</p>
+  or based on the available connectivity.</p>
 
   <p>The <dfn id=dom-media-preload title=dom-media-preload><code>preload</code></dfn> IDL
   attribute must <a href=#reflect>reflect</a> the content attribute of the
@@ -24011,9 +24007,11 @@
 
   </div>
 
-  <p class=note>The <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code>
-  attribute has no effect if used in conjunction with the <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code> attribute, though
-  including both is not an error.</p>
+  <p class=note>The <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code> attribute can overrride
+  the <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code> attribute (since
+  if the media plays, it naturally has to buffer first, regardless of
+  the hint given by the <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code> attribute). Including
+  both is not an error, however.</p>
 
   <hr><!--v3BUF (when readding this, also add a domintro block)
   <p>The <dfn

Modified: index
===================================================================
--- index	2010-03-30 01:52:04 UTC (rev 4902)
+++ index	2010-03-30 02:45:02 UTC (rev 4903)
@@ -23684,10 +23684,7 @@
         network usage while still fetching the metadata for each
         <a href=#media-resource>media resource</a> would also stop buffering at this
         point, causing the <code title=dom-media-networkState><a href=#dom-media-networkstate>networkState</a></code> attribute
-        to switch to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value. This
-        is also where a user agent would stop buffering when honoring
-        the <a href=#media-element>media element</a>'s <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code>'s <a href=#attr-media-preload-metadata-state title=attr-media-preload-metadata-state>Metadata</a>
-        state.</p>
+        to switch to the <code title=dom-media-NETWORK_IDLE><a href=#dom-media-network_idle>NETWORK_IDLE</a></code> value.</p>
 
        </li>
 
@@ -23893,8 +23890,9 @@
      <td>Hints to the user agent that the user agent can put the user's needs first without risk to the server, up to and including optimistically downloading the entire resource.
   </table><p>The empty string is also a valid keyword, and maps to the <a href=#attr-media-preload-auto-state title=attr-media-preload-auto-state>Automatic</a> state. The
   attribute's <i>missing value default</i> is user-agent defined,
-  though the <a href=#attr-media-preload-auto-state title=attr-media-preload-auto-state>Automatic</a> state is
-  suggested in high-bandwidth situations.</p>
+  though the <a href=#attr-media-preload-auto-state title=attr-media-preload-auto-state>Metadata</a> state is
+  suggested as a compromise between reducing server load and providing
+  an optimal user experience.</p>
 
   <div class=impl>
 
@@ -23902,9 +23900,7 @@
   intended to provide a hint to the user agent about what the author
   thinks will lead to the best user experience. The attribute may be
   ignored altogether, for example based on explicit user preferences
-  or based on the available connectivity. The attribute must be
-  ignored if the <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code>
-  attribute is present.</p>
+  or based on the available connectivity.</p>
 
   <p>The <dfn id=dom-media-preload title=dom-media-preload><code>preload</code></dfn> IDL
   attribute must <a href=#reflect>reflect</a> the content attribute of the
@@ -23912,9 +23908,11 @@
 
   </div>
 
-  <p class=note>The <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code>
-  attribute has no effect if used in conjunction with the <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code> attribute, though
-  including both is not an error.</p>
+  <p class=note>The <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code> attribute can overrride
+  the <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code> attribute (since
+  if the media plays, it naturally has to buffer first, regardless of
+  the hint given by the <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code> attribute). Including
+  both is not an error, however.</p>
 
   <hr><!--v3BUF (when readding this, also add a domintro block)
   <p>The <dfn

Modified: source
===================================================================
--- source	2010-03-30 01:52:04 UTC (rev 4902)
+++ source	2010-03-30 02:45:02 UTC (rev 4903)
@@ -25517,12 +25517,7 @@
         point, causing the <code
         title="dom-media-networkState">networkState</code> attribute
         to switch to the <code
-        title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code> value. This
-        is also where a user agent would stop buffering when honoring
-        the <span>media element</span>'s <code
-        title="attr-media-preload">preload</code>'s <span
-        title="attr-media-preload-metadata-state">Metadata</span>
-        state.</p>
+        title="dom-media-NETWORK_IDLE">NETWORK_IDLE</code> value.</p>
 
        </li>
 
@@ -25782,8 +25777,9 @@
   title="attr-media-preload-auto-state">Automatic</span> state. The
   attribute's <i>missing value default</i> is user-agent defined,
   though the <span
-  title="attr-media-preload-auto-state">Automatic</span> state is
-  suggested in high-bandwidth situations.</p>
+  title="attr-media-preload-auto-state">Metadata</span> state is
+  suggested as a compromise between reducing server load and providing
+  an optimal user experience.</p>
 
   <div class="impl">
 
@@ -25791,9 +25787,7 @@
   intended to provide a hint to the user agent about what the author
   thinks will lead to the best user experience. The attribute may be
   ignored altogether, for example based on explicit user preferences
-  or based on the available connectivity. The attribute must be
-  ignored if the <code title="attr-media-autoplay">autoplay</code>
-  attribute is present.</p>
+  or based on the available connectivity.</p>
 
   <p>The <dfn
   title="dom-media-preload"><code>preload</code></dfn> IDL
@@ -25802,10 +25796,13 @@
 
   </div>
 
-  <p class="note">The <code title="attr-media-preload">preload</code>
-  attribute has no effect if used in conjunction with the <code
-  title="attr-media-autoplay">autoplay</code> attribute, though
-  including both is not an error.</p>
+  <p class="note">The <code
+  title="attr-media-autoplay">autoplay</code> attribute can overrride
+  the <code title="attr-media-preload">preload</code> attribute (since
+  if the media plays, it naturally has to buffer first, regardless of
+  the hint given by the <code
+  title="attr-media-preload">preload</code> attribute). Including
+  both is not an error, however.</p>
 
   <hr>
 




More information about the Commit-Watchers mailing list