Skip to content
Permalink
Browse files

[e] (0) remove old cuerange stuff

git-svn-id: http://svn.whatwg.org/webapps@5070 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed May 4, 2010
1 parent a430555 commit 2cb1f5c56f7b697967173373d1219aee58a837b5
Showing with 12 additions and 330 deletions.
  1. +4 −110 complete.html
  2. +4 −110 index
  3. +4 −110 source
attribute boolean <a href=#dom-media-loop title=dom-media-loop>loop</a>;
void <a href=#dom-media-play title=dom-media-play>play</a>();
void <a href=#dom-media-pause title=dom-media-pause>pause</a>();
<!--v2CUERANGE
// cue ranges
void <span title="dom-media-addCueRange">addCueRange</span>(in DOMString className, in DOMString id, in float start, in float end, in boolean pauseOnExit, in <span>CueRangeCallback</span> enterCallback, in <span>CueRangeCallback</span> exitCallback);
void <span title="dom-media-removeCueRanges">removeCueRanges</span>(in DOMString className);
-->

// controls
attribute boolean <a href=#dom-media-controls title=dom-media-controls>controls</a>;
attribute float <a href=#dom-media-volume title=dom-media-volume>volume</a>;
attribute boolean <a href=#dom-media-muted title=dom-media-muted>muted</a>;
};<!--v2CUERANGE

[Callback=FunctionOnly, NoInterfaceObject]
interface <dfn>CueRangeCallback</dfn> {
void <span title="dom-CueRangeCallback-handleEvent">handleEvent</span>(in DOMString id);
};--></pre>
};</pre>

<p>The <dfn id=media-element-attributes>media element attributes</dfn>, <code title=attr-media-src><a href=#attr-media-src>src</a></code>, <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code>, <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code>, <code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code>, apply to all <a href=#media-element title="media element">media elements</a>. They are defined in
this section.</p>
</div>


<!--v2CUERANGE
<h5>Cue ranges</h5>

<dl class="domintro">

<dt><var title="">media</var> . <code title="dom-media-addCueRange">addCueRange</code>(<var title="">className</var>, <var title="">id</var>, <var title="">start</var>, <var title="">end</var>, <var title="">pauseOnExit</var>, <var title="">enterCallback</var>, <var title="">exitCallback</var>)</dt>

<dd>

<p>Registers a range of time, given in seconds, and a pair of
callbacks, the first of which will be invoked when the
<span>current playback position</span> enters the range, and the
second of which will be invoked when it exits the range. The
callbacks are invoked with the given ID as their argument.</p>

<p>In addition, if the <var title="">pauseOnExit</var> argument is
true, then playback will pause when it reaches the end of the
range.</p>

</dd>

<dt><var title="">media</var> . <code title="dom-media-removeCueRange">removeCueRange</code>(<var title="">className</var>)</dt>

<dd>

<p>Removes all the ranges that were registered with the given
class name.</p>

</dd>

</dl>

<div class="impl">

<p><span title="media element">Media elements</span> have a set of
<dfn title="cue range">cue ranges</dfn>. Each cue range is made up
of the following information:</p>

<dl>

<dt>A class name</dt>
<dd>A group of related ranges can be given the same class name so
that they can all be removed at the same time.</dd>

<dt>An identifier</dt>
<dd>A string can be assigned to each cue range for identification
by script. The string need not be unique and can contain any
value.</dd>

<dt>A start time</dt>
<dt>An end time</dt>
<dd>The actual time range, using the same timeline as the
<span>media resource</span> itself.</dd>

<dt>A "pause" boolean</dt>
<dd>A flag indicating whether to pause playback on exit.</dd>

<dt>An "enter" callback</dt>
<dd>A callback that is called when the <span>current playback
position</span> enters the range.</dd>

<dt>An "exit" callback</dt>
<dd>A callback that is called when the <span>current playback
position</span> exits the range.</dd>

<dt>An "active" boolean</dt>
<dd>A flag indicating whether the range is active or not.</dd>

</dl>

<p>The <dfn title="dom-media-addCueRange"><code>addCueRange(<var
title="">className</var>, <var title="">id</var>, <var
title="">start</var>, <var title="">end</var>, <var
title="">pauseOnExit</var>, <var title="">enterCallback</var>, <var
title="">exitCallback</var>)</code></dfn> method must, when called,
add a <span>cue range</span> to the <span>media element</span>, that
cue range having the class name <var title="">className</var>, the
identifier <var title="">id</var>, the start time <var
title="">start</var> (in seconds), the end time <var
title="">end</var> (in seconds), the "pause" boolean with the same
value as <var title="">pauseOnExit</var>, the "enter" callback <var
title="">enterCallback</var>, the "exit" callback <var
title="">exitCallback</var>, and an "active" boolean that is true if
the <span>current playback position</span> is equal to or greater
than the start time and less than the end time, and false
otherwise.</p>

<p>The <dfn
title="dom-media-removeCueRanges"><code>removeCueRanges(<var
title="">className</var>)</code></dfn> method must, when called,
remove all the <span title="cue range">cue ranges</span> of the
<span>media element</span> which have the class name <var
title="">className</var>.</p>

</div>
-->


<h5 id=playing-the-media-resource><span class=secno>4.8.10.8 </span>Playing the media resource</h5>

certain ranges to be skipped over as the user agent rushes ahead to
"catch up".)</p>

<ol><!--v2CUERANGE
<ol><!--XXXTT - the text below is wrong, but we need to do something similar, updating the timed tracks, pausing if necessary (more below)
<li><p>Let <var title="">current ranges</var> be an ordered list of
<span title="cue range">cue ranges</span>, initialized to contain
all the <span title="cue range">cue ranges</span> of the
not any more frequent than the user agent can comfortably handle
while decoding the video.</li>

<!--v2CUERANGE [beware - - nested comments]
<!--XXXTT [beware - - nested comments]
<li><p>If none of the <span title="cue range">cue ranges</span> in
<var title="">current ranges</var> have their "active" boolean set
to "false" (inactive) and none of the <span title="cue range">cue
114 index
attribute boolean <a href=#dom-media-loop title=dom-media-loop>loop</a>;
void <a href=#dom-media-play title=dom-media-play>play</a>();
void <a href=#dom-media-pause title=dom-media-pause>pause</a>();
<!--v2CUERANGE
// cue ranges
void <span title="dom-media-addCueRange">addCueRange</span>(in DOMString className, in DOMString id, in float start, in float end, in boolean pauseOnExit, in <span>CueRangeCallback</span> enterCallback, in <span>CueRangeCallback</span> exitCallback);
void <span title="dom-media-removeCueRanges">removeCueRanges</span>(in DOMString className);
-->

// controls
attribute boolean <a href=#dom-media-controls title=dom-media-controls>controls</a>;
attribute float <a href=#dom-media-volume title=dom-media-volume>volume</a>;
attribute boolean <a href=#dom-media-muted title=dom-media-muted>muted</a>;
};<!--v2CUERANGE

[Callback=FunctionOnly, NoInterfaceObject]
interface <dfn>CueRangeCallback</dfn> {
void <span title="dom-CueRangeCallback-handleEvent">handleEvent</span>(in DOMString id);
};--></pre>
};</pre>

<p>The <dfn id=media-element-attributes>media element attributes</dfn>, <code title=attr-media-src><a href=#attr-media-src>src</a></code>, <code title=attr-media-preload><a href=#attr-media-preload>preload</a></code>, <code title=attr-media-autoplay><a href=#attr-media-autoplay>autoplay</a></code>, <code title=attr-media-loop><a href=#attr-media-loop>loop</a></code>, and <code title=attr-media-controls><a href=#attr-media-controls>controls</a></code>, apply to all <a href=#media-element title="media element">media elements</a>. They are defined in
this section.</p>
</div>


<!--v2CUERANGE
<h5>Cue ranges</h5>

<dl class="domintro">

<dt><var title="">media</var> . <code title="dom-media-addCueRange">addCueRange</code>(<var title="">className</var>, <var title="">id</var>, <var title="">start</var>, <var title="">end</var>, <var title="">pauseOnExit</var>, <var title="">enterCallback</var>, <var title="">exitCallback</var>)</dt>

<dd>

<p>Registers a range of time, given in seconds, and a pair of
callbacks, the first of which will be invoked when the
<span>current playback position</span> enters the range, and the
second of which will be invoked when it exits the range. The
callbacks are invoked with the given ID as their argument.</p>

<p>In addition, if the <var title="">pauseOnExit</var> argument is
true, then playback will pause when it reaches the end of the
range.</p>

</dd>

<dt><var title="">media</var> . <code title="dom-media-removeCueRange">removeCueRange</code>(<var title="">className</var>)</dt>

<dd>

<p>Removes all the ranges that were registered with the given
class name.</p>

</dd>

</dl>

<div class="impl">

<p><span title="media element">Media elements</span> have a set of
<dfn title="cue range">cue ranges</dfn>. Each cue range is made up
of the following information:</p>

<dl>

<dt>A class name</dt>
<dd>A group of related ranges can be given the same class name so
that they can all be removed at the same time.</dd>

<dt>An identifier</dt>
<dd>A string can be assigned to each cue range for identification
by script. The string need not be unique and can contain any
value.</dd>

<dt>A start time</dt>
<dt>An end time</dt>
<dd>The actual time range, using the same timeline as the
<span>media resource</span> itself.</dd>

<dt>A "pause" boolean</dt>
<dd>A flag indicating whether to pause playback on exit.</dd>

<dt>An "enter" callback</dt>
<dd>A callback that is called when the <span>current playback
position</span> enters the range.</dd>

<dt>An "exit" callback</dt>
<dd>A callback that is called when the <span>current playback
position</span> exits the range.</dd>

<dt>An "active" boolean</dt>
<dd>A flag indicating whether the range is active or not.</dd>

</dl>

<p>The <dfn title="dom-media-addCueRange"><code>addCueRange(<var
title="">className</var>, <var title="">id</var>, <var
title="">start</var>, <var title="">end</var>, <var
title="">pauseOnExit</var>, <var title="">enterCallback</var>, <var
title="">exitCallback</var>)</code></dfn> method must, when called,
add a <span>cue range</span> to the <span>media element</span>, that
cue range having the class name <var title="">className</var>, the
identifier <var title="">id</var>, the start time <var
title="">start</var> (in seconds), the end time <var
title="">end</var> (in seconds), the "pause" boolean with the same
value as <var title="">pauseOnExit</var>, the "enter" callback <var
title="">enterCallback</var>, the "exit" callback <var
title="">exitCallback</var>, and an "active" boolean that is true if
the <span>current playback position</span> is equal to or greater
than the start time and less than the end time, and false
otherwise.</p>

<p>The <dfn
title="dom-media-removeCueRanges"><code>removeCueRanges(<var
title="">className</var>)</code></dfn> method must, when called,
remove all the <span title="cue range">cue ranges</span> of the
<span>media element</span> which have the class name <var
title="">className</var>.</p>

</div>
-->


<h5 id=playing-the-media-resource><span class=secno>4.8.10.8 </span>Playing the media resource</h5>

certain ranges to be skipped over as the user agent rushes ahead to
"catch up".)</p>

<ol><!--v2CUERANGE
<ol><!--XXXTT - the text below is wrong, but we need to do something similar, updating the timed tracks, pausing if necessary (more below)
<li><p>Let <var title="">current ranges</var> be an ordered list of
<span title="cue range">cue ranges</span>, initialized to contain
all the <span title="cue range">cue ranges</span> of the
not any more frequent than the user agent can comfortably handle
while decoding the video.</li>

<!--v2CUERANGE [beware - - nested comments]
<!--XXXTT [beware - - nested comments]
<li><p>If none of the <span title="cue range">cue ranges</span> in
<var title="">current ranges</var> have their "active" boolean set
to "false" (inactive) and none of the <span title="cue range">cue

0 comments on commit 2cb1f5c

Please sign in to comment.
You can’t perform that action at this time.