HTML Standard Tracker

Filter

File a bug

SVNBugCommentTime (UTC)
2489[Gecko] [Opera] [Webkit] Drop HAVE_SOME_DATA. (credit: ec)2008-12-01 06:53
@@ -18230,24 +18230,23 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
   readonly attribute unsigned short <span title="dom-media-networkState">networkState</span>;
   readonly attribute float <span title="dom-media-bufferingRate">bufferingRate</span>;
   readonly attribute boolean <span title="dom-media-bufferingThrottled">bufferingThrottled</span>;
   readonly attribute <span>TimeRanges</span> <span title="dom-media-buffered">buffered</span>;
   void <span title="dom-media-load">load</span>();
   DOMString <span title="dom-navigator-canPlayType">canPlayType</span>(in DOMString type);
 
   // 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>;
 
   // playback state
            attribute float <span title="dom-media-currentTime">currentTime</span>;
   readonly attribute float <span title="dom-media-duration">duration</span>;
   readonly attribute boolean <span title="dom-media-paused">paused</span>;
            attribute float <span title="dom-media-defaultPlaybackRate">defaultPlaybackRate</span>;
            attribute float <span title="dom-media-playbackRate">playbackRate</span>;
   readonly attribute <span>TimeRanges</span> <span title="dom-media-played">played</span>;
@@ -19263,57 +19262,51 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
    whose <code title="dom-media-networkState">networkState</code>
    attribute is <code
    title="dom-media-NETWORK_EMPTY">NETWORK_EMPTY</code> are always in
    the <code title="dom-media-HAVE_NOTHING">HAVE_NOTHING</code>
    state.</dd>
 
    <dt><dfn title="dom-media-HAVE_METADATA"><code>HAVE_METADATA</code></dfn> (numeric value 1)</dt>
 
    <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
    title="dom-media-defaultPlaybackRate">defaultPlaybackRate</code>
    attribute, would not overtake the available data before playback
    reaches the end of the <span>media resource</span>.</dd>
 
   </dl>
 
   <p>When the ready state of a <span>media element</span> whose <code
@@ -19334,24 +19327,24 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
     <p class="note">A <code
     title="event-loadedmetadata">loadedmetadata</code> DOM event <a
     href="#fire-loadedmetadata">will be fired</a> as part of the <code
     title="dom-event-load">load()</code> algorithm.</p>
 
    </dd>
 
    <!-- 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
     this <span>media element</span> since the <code
     title="dom-event-load">load()</code> algorithm was last invoked,
     the user agent must <span>queue a task</span> to <span>fire a
     simple event</span> called <code
     title="event-loadeddata">loadeddata</code> at the element.</p>
 
    </dd>
@@ -19409,21 +19402,21 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
     using script to force the video to play, so as to allow the user
     to override the behavior if so desired.</p>
 
    </dd>
 
   </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">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
   <code title="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</code>
   states.</p>
 
   <p>The <dfn
   title="dom-media-readyState"><code>readyState</code></dfn> DOM
   attribute must, on getting, return the value described above that
   describes the current ready state of the <span>media
@@ -19519,21 +19512,21 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
   title="dom-media-readyState">readyState</code> attribute is either
   <code title="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</code> or
   <code title="dom-media-HAVE_ENOUGH_DATA">HAVE_ENOUGH_DATA</code>,
   the element has not <span>ended playback</span>, playback has not
   <span>stopped due to errors</span>, and the element has not
   <span>paused for user interaction</span>.</p>
 
   <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
   specified.</p>
 
   <p>The <dfn title="dom-media-ended"><code>ended</code></dfn>
   attribute must return true if the <span>media element</span> has
   <span>ended playback</span>, and false otherwise.</p>
 
   <p>A <span>media element</span> is said to have <dfn>stopped due to

|