[html5] r2492 - [e] (0) Add another example for 'durationchange'.

whatwg at whatwg.org whatwg at whatwg.org
Mon Dec 1 01:59:12 PST 2008


Author: ianh
Date: 2008-12-01 01:59:11 -0800 (Mon, 01 Dec 2008)
New Revision: 2492

Modified:
   index
   source
Log:
[e] (0) Add another example for 'durationchange'.

Modified: index
===================================================================
--- index	2008-12-01 09:53:20 UTC (rev 2491)
+++ index	2008-12-01 09:59:11 UTC (rev 2492)
@@ -17794,7 +17794,12 @@
 
   <p class=example>If an "infinite" stream ends for some reason,
   then the duration would change from positive Infinity to the time of
-  the last frame or sample in the stream.</p>
+  the last frame or sample in the stream, and the <code title=event-durationchange><a href=#event-durationchange>durationchange</a></code> event would be
+  fired. Similarly, if the user agent initially estimated the
+  <a href=#media-resource>media resource</a>'s duration instead of determining it
+  precisely, and later revises the estimate based on new information,
+  then the duration would change and the <code title=event-durationchange><a href=#event-durationchange>durationchange</a></code> event would be
+  fired.</p>
 
   <p><a href=#media-element title="media element">Media elements</a> have a
   <dfn id=current-playback-position>current playback position</dfn>, which must initially be

Modified: source
===================================================================
--- source	2008-12-01 09:53:20 UTC (rev 2491)
+++ source	2008-12-01 09:59:11 UTC (rev 2492)
@@ -19221,7 +19221,14 @@
 
   <p class="example">If an "infinite" stream ends for some reason,
   then the duration would change from positive Infinity to the time of
-  the last frame or sample in the stream.</p>
+  the last frame or sample in the stream, and the <code
+  title="event-durationchange">durationchange</code> event would be
+  fired. Similarly, if the user agent initially estimated the
+  <span>media resource</span>'s duration instead of determining it
+  precisely, and later revises the estimate based on new information,
+  then the duration would change and the <code
+  title="event-durationchange">durationchange</code> event would be
+  fired.</p>
 
   <p><span title="media element">Media elements</span> have a
   <dfn>current playback position</dfn>, which must initially be




More information about the Commit-Watchers mailing list