Short URL: http://html5.org/r/2489
| SVN | Bug | Comment | Time (UTC) |
|---|---|---|---|
| 2489 | 2008-12-01 06:53 |
Index: source
===================================================================
--- source (revision 2488)
+++ source (revision 2489)
@@ -18237,10 +18237,9 @@
// ready state
const unsigned short <span title="dom-media-HAVE_NOTHING">HAVE_NOTHING</span> = 0;
const unsigned short <span title="dom-media-HAVE_METADATA">HAVE_METADATA</span> = 1;
- const unsigned short <span title="dom-media-HAVE_SOME_DATA">HAVE_SOME_DATA</span> = 2;
- const unsigned short <span title="dom-media-HAVE_CURRENT_DATA">HAVE_CURRENT_DATA</span> = 3;
- const unsigned short <span title="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</span> = 4;
- const unsigned short <span title="dom-media-HAVE_ENOUGH_DATA">HAVE_ENOUGH_DATA</span> = 5;
+ const unsigned short <span title="dom-media-HAVE_CURRENT_DATA">HAVE_CURRENT_DATA</span> = 2;
+ const unsigned short <span title="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</span> = 3;
+ const unsigned short <span title="dom-media-HAVE_ENOUGH_DATA">HAVE_ENOUGH_DATA</span> = 4;
readonly attribute unsigned short <span title="dom-media-readyState">readyState</span>;
readonly attribute boolean <span title="dom-media-seeking">seeking</span>;
@@ -19270,43 +19269,37 @@
<dd>Enough of the resource has been obtained that the metadata
attributes are initialized (e.g. the length is known). The API will
- no longer raise an exception when seeking.</dd>
+ no longer raise an exception when seeking. No video data is
+ available for the immediate <span>current playback position</span>,
+ </dd>
- <dt><dfn title="dom-media-HAVE_SOME_DATA"><code>HAVE_SOME_DATA</code></dfn> (numeric value 2)</dt>
+ <dt><dfn title="dom-media-HAVE_CURRENT_DATA"><code>HAVE_CURRENT_DATA</code></dfn> (numeric value 2)</dt>
<dd>Data for the immediate <span>current playback position</span>
- is not available, but there is at least one playback position for
- which the <i>ready state</i> would have a value of <code
- title="dom-media-HAVE_CURRENT_DATA">HAVE_CURRENT_DATA</code> or
- greater.</dd>
-
- <dt><dfn title="dom-media-HAVE_CURRENT_DATA"><code>HAVE_CURRENT_DATA</code></dfn> (numeric value 3)</dt>
-
- <dd>Data for the immediate <span>current playback position</span>
is available, but not enough data is available that the user agent
could successfully advance the <span>current playback
position</span> at all without immediately reverting to the <code
- title="dom-media-HAVE_SOME_DATA">HAVE_SOME_DATA</code> state. For
+ title="dom-media-HAVE_METADATA">HAVE_METADATA</code> state. For
example, in video this corresponds to the user agent having data
from the current frame, but not the next frame.</dd>
- <dt><dfn title="dom-media-HAVE_FUTURE_DATA"><code>HAVE_FUTURE_DATA</code></dfn> (numeric value 4)</dt>
+ <dt><dfn title="dom-media-HAVE_FUTURE_DATA"><code>HAVE_FUTURE_DATA</code></dfn> (numeric value 3)</dt>
<dd>Data for the immediate <span>current playback position</span>
is available, as well as enough data for the user agent to advance
the <span>current playback position</span> at least a little
without immediately reverting to the <code
- title="dom-media-HAVE_SOME_DATA">HAVE_SOME_DATA</code> state. For
+ title="dom-media-HAVE_METADATA">HAVE_METADATA</code> state. For
example, In video this corresponds to the user agent having data
for at least the current frame and the next frame.</dd>
- <dt><dfn title="dom-media-HAVE_ENOUGH_DATA"><code>HAVE_ENOUGH_DATA</code></dfn> (numeric value 5)</dt>
+ <dt><dfn title="dom-media-HAVE_ENOUGH_DATA"><code>HAVE_ENOUGH_DATA</code></dfn> (numeric value 4)</dt>
<dd>Data for the immediate <span>current playback position</span>
is available, as well as enough data for the user agent to advance
the <span>current playback position</span> at least a little
without immediately reverting to the <code
- title="dom-media-HAVE_SOME_DATA">HAVE_SOME_DATA</code> state, and,
+ title="dom-media-HAVE_METADATA">HAVE_METADATA</code> state, and,
in addition, the user agent estimates that data is being fetched at
a rate where the <span>current playback position</span>, if it were
to advance at the rate given by the <code
@@ -19341,10 +19334,10 @@
<!-- going up to current for the first time -->
<dt id="handling-first-frame-available">If the prevous ready state
- was <code title="dom-media-HAVE_METADATA">HAVE_METADATA</code> or
- <code title="dom-media-HAVE_SOME_DATA">HAVE_SOME_DATA</code>, and
+ was <code title="dom-media-HAVE_METADATA">HAVE_METADATA</code> and
the new ready state is <code
title="dom-media-HAVE_CURRENT_DATA">HAVE_CURRENT_DATA</code></dt>
+
<dd>
<p id="fire-loadeddata">If this is the first time this occurs for
@@ -19416,7 +19409,7 @@
<p class="note">It is possible for the ready state of a media
element to jump between these states discontinuously. For example,
the state of a media element can jump straight from <code
- title="dom-media-HAVE_SOME_DATA">HAVE_SOME_DATA</code> to <code
+ title="dom-media-HAVE_METADATA">HAVE_METADATA</code> to <code
title="dom-media-HAVE_ENOUGH_DATA">HAVE_ENOUGH_DATA</code> without
passing through the <code
title="dom-media-HAVE_CURRENT_DATA">HAVE_CURRENT_DATA</code> and
@@ -19526,7 +19519,7 @@
<p>A <span>media element</span> is said to have <dfn>ended
playback</dfn> when the element's <code
title="dom-media-readyState">readyState</code> attribute is <code
- title="dom-media-HAVE_METADATA">HAD_METADATA</code> or greater, and
+ title="dom-media-HAVE_METADATA">HAVE_METADATA</code> or greater, and
the <span>current playback position</span> is the end of the
<span>media resource</span>, and the <span>media element</span> does
not have a <code title="attr-media-loop">loop</code> attribute