- From: poot <cvsmail@w3.org>
- Date: Mon, 1 Dec 2008 19:01:58 +0900 (JST)
- To: public-html-diffs@w3.org
Add another example for 'durationchange'. (whatwg r2492) currentTime http://people.w3.org/mike/diffs/html5/spec/Overview.1.1663.html#dom-media-currenttime current playback position http://people.w3.org/mike/diffs/html5/spec/Overview.1.1663.html#current-playback-position When the length of the media resource changes (e.g. from being unknown to known, or from a previously established length to a new length) the user agent must queue a task to fire a simple event called durationchange at the media element. http://people.w3.org/mike/diffs/html5/spec/Overview.1.1663.html#durationChange http://people.w3.org/mike/diffs/html5/spec/Overview.diff.html http://dev.w3.org/cvsweb/html5/spec/Overview.html?r1=1.1662&r2=1.1663&f=h http://html5.org/tools/web-apps-tracker?from=2491&to=2492 =================================================================== RCS file: /sources/public/html5/spec/Overview.html,v retrieving revision 1.1662 retrieving revision 1.1663 diff -u -d -r1.1662 -r1.1663 --- Overview.html 1 Dec 2008 09:53:24 -0000 1.1662 +++ Overview.html 1 Dec 2008 09:59:16 -0000 1.1663 @@ -14534,7 +14534,12 @@ <code title=event-durationchange><a href=#event-durationchange>durationchange</a></code> at the <a href=#media-element>media element</a>.<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><a href=#media-element title="media element">Media elements</a> have a + 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><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 zero. The current position is a time.<p>The <dfn id=dom-media-currenttime title=dom-media-currentTime><code>currentTime</code></dfn> attribute must, on getting, return the <a href=#current-playback-position>current playback
Received on Monday, 1 December 2008 10:02:34 UTC