Skip to content

Commit

Permalink
[gow] (2) Drop HAVE_SOME_DATA. (credit: ec)
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.whatwg.org/webapps@2489 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 1, 2008
1 parent c9d7776 commit 94418ad
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 46 deletions.
40 changes: 17 additions & 23 deletions index
Expand Up @@ -17,7 +17,7 @@
<div class=head>
<p><a class=logo href=http://www.whatwg.org/ rel=home><img alt=WHATWG src=/images/logo></a></p>
<h1>HTML 5</h1>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 30 November 2008</h2>
<h2 class="no-num no-toc" id=draft-recommendation-&mdash;-date:-01-jan-1901>Draft Recommendation &mdash; 1 December 2008</h2>
<p>You can take part in this work. <a href=http://www.whatwg.org/mailing-list>Join the working group's discussion list.</a></p>
<p><strong>Web designers!</strong> We have a <a href=http://blog.whatwg.org/faq/>FAQ</a>, a <a href=http://forums.whatwg.org/>forum</a>, and a <a href=http://www.whatwg.org/mailing-list#help>help mailing list</a> for you!</p>
<dl><dt>Multiple-page version:</dt>
Expand Down Expand Up @@ -16976,10 +16976,9 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
// ready state
const unsigned short <a href=#dom-media-have_nothing title=dom-media-HAVE_NOTHING>HAVE_NOTHING</a> = 0;
const unsigned short <a href=#dom-media-have_metadata title=dom-media-HAVE_METADATA>HAVE_METADATA</a> = 1;
const unsigned short <a href=#dom-media-have_some_data title=dom-media-HAVE_SOME_DATA>HAVE_SOME_DATA</a> = 2;
const unsigned short <a href=#dom-media-have_current_data title=dom-media-HAVE_CURRENT_DATA>HAVE_CURRENT_DATA</a> = 3;
const unsigned short <a href=#dom-media-have_future_data title=dom-media-HAVE_FUTURE_DATA>HAVE_FUTURE_DATA</a> = 4;
const unsigned short <a href=#dom-media-have_enough_data title=dom-media-HAVE_ENOUGH_DATA>HAVE_ENOUGH_DATA</a> = 5;
const unsigned short <a href=#dom-media-have_current_data title=dom-media-HAVE_CURRENT_DATA>HAVE_CURRENT_DATA</a> = 2;
const unsigned short <a href=#dom-media-have_future_data title=dom-media-HAVE_FUTURE_DATA>HAVE_FUTURE_DATA</a> = 3;
const unsigned short <a href=#dom-media-have_enough_data title=dom-media-HAVE_ENOUGH_DATA>HAVE_ENOUGH_DATA</a> = 4;
readonly attribute unsigned short <a href=#dom-media-readystate title=dom-media-readyState>readyState</a>;
readonly attribute boolean <a href=#dom-media-seeking title=dom-media-seeking>seeking</a>;

Expand Down Expand Up @@ -17839,39 +17838,34 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael

<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>

<dt><dfn id=dom-media-have_some_data title=dom-media-HAVE_SOME_DATA><code>HAVE_SOME_DATA</code></dfn> (numeric value 2)</dt>

<dd>Data for the immediate <a href=#current-playback-position>current playback position</a>
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><a href=#dom-media-have_current_data>HAVE_CURRENT_DATA</a></code> or
greater.</dd>
no longer raise an exception when seeking. No video data is
available for the immediate <a href=#current-playback-position>current playback position</a>,
</dd>

<dt><dfn id=dom-media-have_current_data title=dom-media-HAVE_CURRENT_DATA><code>HAVE_CURRENT_DATA</code></dfn> (numeric value 3)</dt>
<dt><dfn id=dom-media-have_current_data title=dom-media-HAVE_CURRENT_DATA><code>HAVE_CURRENT_DATA</code></dfn> (numeric value 2)</dt>

<dd>Data for the immediate <a href=#current-playback-position>current playback position</a>
is available, but not enough data is available that the user agent
could successfully advance the <a href=#current-playback-position>current playback
position</a> at all without immediately reverting to the <code title=dom-media-HAVE_SOME_DATA><a href=#dom-media-have_some_data>HAVE_SOME_DATA</a></code> state. For
position</a> at all without immediately reverting to the <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></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 id=dom-media-have_future_data title=dom-media-HAVE_FUTURE_DATA><code>HAVE_FUTURE_DATA</code></dfn> (numeric value 4)</dt>
<dt><dfn id=dom-media-have_future_data title=dom-media-HAVE_FUTURE_DATA><code>HAVE_FUTURE_DATA</code></dfn> (numeric value 3)</dt>

<dd>Data for the immediate <a href=#current-playback-position>current playback position</a>
is available, as well as enough data for the user agent to advance
the <a href=#current-playback-position>current playback position</a> at least a little
without immediately reverting to the <code title=dom-media-HAVE_SOME_DATA><a href=#dom-media-have_some_data>HAVE_SOME_DATA</a></code> state. For
without immediately reverting to the <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></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 id=dom-media-have_enough_data title=dom-media-HAVE_ENOUGH_DATA><code>HAVE_ENOUGH_DATA</code></dfn> (numeric value 5)</dt>
<dt><dfn id=dom-media-have_enough_data title=dom-media-HAVE_ENOUGH_DATA><code>HAVE_ENOUGH_DATA</code></dfn> (numeric value 4)</dt>

<dd>Data for the immediate <a href=#current-playback-position>current playback position</a>
is available, as well as enough data for the user agent to advance
the <a href=#current-playback-position>current playback position</a> at least a little
without immediately reverting to the <code title=dom-media-HAVE_SOME_DATA><a href=#dom-media-have_some_data>HAVE_SOME_DATA</a></code> state, and,
without immediately reverting to the <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></code> state, and,
in addition, the user agent estimates that data is being fetched at
a rate where the <a href=#current-playback-position>current playback position</a>, if it were
to advance at the rate given by the <code title=dom-media-defaultPlaybackRate><a href=#dom-media-defaultplaybackrate>defaultPlaybackRate</a></code>
Expand All @@ -17893,9 +17887,9 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
<!-- 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><a href=#dom-media-have_metadata>HAVE_METADATA</a></code> or
<code title=dom-media-HAVE_SOME_DATA><a href=#dom-media-have_some_data>HAVE_SOME_DATA</a></code>, and
was <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></code> and
the new ready state is <code title=dom-media-HAVE_CURRENT_DATA><a href=#dom-media-have_current_data>HAVE_CURRENT_DATA</a></code></dt>

<dd>

<p id=fire-loadeddata>If this is the first time this occurs for
Expand Down Expand Up @@ -17950,7 +17944,7 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael

</dl><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><a href=#dom-media-have_some_data>HAVE_SOME_DATA</a></code> to <code title=dom-media-HAVE_ENOUGH_DATA><a href=#dom-media-have_enough_data>HAVE_ENOUGH_DATA</a></code> without
the state of a media element can jump straight from <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></code> to <code title=dom-media-HAVE_ENOUGH_DATA><a href=#dom-media-have_enough_data>HAVE_ENOUGH_DATA</a></code> without
passing through the <code title=dom-media-HAVE_CURRENT_DATA><a href=#dom-media-have_current_data>HAVE_CURRENT_DATA</a></code> and
<code title=dom-media-HAVE_FUTURE_DATA><a href=#dom-media-have_future_data>HAVE_FUTURE_DATA</a></code>
states.</p>
Expand Down Expand Up @@ -18039,7 +18033,7 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
<a href=#paused-for-user-interaction>paused for user interaction</a>.</p>

<p>A <a href=#media-element>media element</a> is said to have <dfn id=ended-playback>ended
playback</dfn> when the element's <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute is <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAD_METADATA</a></code> or greater, and
playback</dfn> when the element's <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute is <code title=dom-media-HAVE_METADATA><a href=#dom-media-have_metadata>HAVE_METADATA</a></code> or greater, and
the <a href=#current-playback-position>current playback position</a> is the end of the
<a href=#media-resource>media resource</a>, and the <a href=#media-element>media element</a> does
not have a <code title=attr-media-loop><a href=#attr-media-loop>loop</a></code> attribute
Expand Down
39 changes: 16 additions & 23 deletions source
Expand Up @@ -18237,10 +18237,9 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
// 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>;

Expand Down Expand Up @@ -19270,43 +19269,37 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {

<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>

<dt><dfn title="dom-media-HAVE_SOME_DATA"><code>HAVE_SOME_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>
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_CURRENT_DATA"><code>HAVE_CURRENT_DATA</code></dfn> (numeric value 3)</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 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
Expand Down Expand Up @@ -19341,10 +19334,10 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
<!-- 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
Expand Down Expand Up @@ -19416,7 +19409,7 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
<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
Expand Down Expand Up @@ -19526,7 +19519,7 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
<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
Expand Down

0 comments on commit 94418ad

Please sign in to comment.