Skip to content
Permalink
Browse files

[giow] (0) Captions - Stage 20.2b: fix markup error (oops)

git-svn-id: http://svn.whatwg.org/webapps@5139 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information...
Hixie committed Jul 8, 2010
1 parent 4a10526 commit 5f00c9d19ee144fbaebf1b8add0320588bead7b6
Showing with 161 additions and 77 deletions.
  1. +75 −33 complete.html
  2. +75 −33 index
  3. +11 −11 source
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-onload title=handler-TimedTrack-onload>onload</a>;
readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-onerror title=handler-TimedTrack-onerror>onerror</a>;

const unsigned short <span title=dom-TimedTrack-OFF>OFF</span> = 0;
const unsigned short <span title=dom-TimedTrack-HIDDEN>HIDDEN</span> = 1;
const unsigned short <span title=dom-TimedTrack-SHOWING>SHOWING</span> = 2;
attribute unsigned short <span title=dom-TimedTrack-mode>mode</span>;
const unsigned short <a href=#dom-timedtrack-off title=dom-TimedTrack-OFF>OFF</a> = 0;
const unsigned short <a href=#dom-timedtrack-hidden title=dom-TimedTrack-HIDDEN>HIDDEN</a> = 1;
const unsigned short <a href=#dom-timedtrack-showing title=dom-TimedTrack-SHOWING>SHOWING</a> = 2;
attribute unsigned short <a href=#dom-timedtrack-mode title=dom-TimedTrack-mode>mode</a>;

readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <span title=dom-TimedTrack-cues>cues</span>;
readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <span title=dom-TimedTrack-activeCues>activeCues</span>;
readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <a href=#dom-timedtrack-cues title=dom-TimedTrack-cues>cues</a>;
readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <a href=#dom-timedtrack-activecues title=dom-TimedTrack-activeCues>activeCues</a>;

readonly attribute <a href=#function>Function</a> <a href=#handler-timedtrack-oncuechange title=handler-TimedTrack-oncuechange>oncuechange</a>;
};</pre>
</dd>
</dl></dd>

<dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-mode>mode</code></dt>
<dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-mode><a href=#dom-timedtrack-mode>mode</a></code></dt>
<dd>
<p>Returns the <a href=#timed-track-mode>timed track mode</a>, represented by a
number from the following list:</p>
<dl><dt><code><a href=#timedtrack>TimedTrack</a></code> . <code title=dom-TimedTrack-OFF>OFF</code> (0)</dt>
<dl><dt><code><a href=#timedtrack>TimedTrack</a></code> . <code title=dom-TimedTrack-OFF><a href=#dom-timedtrack-off>OFF</a></code> (0)</dt>
<dd>
<p>The <a href=#timed-track-disabled>timed track disabled</a> mode.</p>
</dd>
<dt><code><a href=#timedtrack>TimedTrack</a></code> . <code title=dom-TimedTrack-HIDDEN>HIDDEN</code> (0)</dt>
<dt><code><a href=#timedtrack>TimedTrack</a></code> . <code title=dom-TimedTrack-HIDDEN><a href=#dom-timedtrack-hidden>HIDDEN</a></code> (0)</dt>
<dd>
<p>The <a href=#timed-track-hidden>timed track hidden</a> mode.</p>
</dd>
<dt><code><a href=#timedtrack>TimedTrack</a></code> . <code title=dom-TimedTrack-SHOWING>SHOWING</code> (0)</dt>
<dt><code><a href=#timedtrack>TimedTrack</a></code> . <code title=dom-TimedTrack-SHOWING><a href=#dom-timedtrack-showing>SHOWING</a></code> (0)</dt>
<dd>
<p>The <a href=#timed-track-showing>timed track showing</a> mode.</p>
</dd>
</dl><p>Can be set, to change the mode.</p>
</dd>

<dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-cues>cues</code></dt>
<dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-cues><a href=#dom-timedtrack-cues>cues</a></code></dt>
<dd>
<p>Returns the <a href=#timed-track-list-of-cues>timed track list of cues</a>, as a <code><a href=#timedtrackcuelist>TimedTrackCueList</a></code> object.</p>
</dd>

<dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-activeCues>activeCues</code></dt>
<dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-activeCues><a href=#dom-timedtrack-activecues>activeCues</a></code></dt>
<dd>
<p>Returns the <a href=#timed-track-cue title="timed track cue">timed track cues</a> from the <a href=#timed-track-list-of-cues>timed track list of cues</a> that are currently active (i.e. that start before the <a href=#current-playback-position>current playback position</a> and end after it), as a <code><a href=#timedtrackcuelist>TimedTrackCueList</a></code> object.</p>
</dd>
represents.</p>

<p>The <dfn id=dom-timedtrack-readystate title=dom-TimedTrack-readyState><code>readyState</code></dfn>
attribute must return the code corresponding to the <a href=#timed-track-readiness-state>timed
track readiness state</a> of the <a href=#timed-track>timed track</a> that
the <code><a href=#timedtrack>TimedTrack</a></code> object represents, as defined by the
following list:</p>
attribute must return the numeric value corresponding to the
<a href=#timed-track-readiness-state>timed track readiness state</a> of the <a href=#timed-track>timed
track</a> that the <code><a href=#timedtrack>TimedTrack</a></code> object represents, as
defined by the following list:</p>

<dl><dt><dfn id=dom-timedtrack-none title=dom-TimedTrack-NONE><code>NONE</code></dfn> (numeric value 0)</dt>
<dd>The <a href=#timed-track-not-loaded>timed track not loaded</a> state.</dd>
<dd>The <a href=#timed-track-loaded>timed track loaded</a> state.</dd>
<dt><dfn id=dom-timedtrack-error title=dom-TimedTrack-ERROR><code>ERROR</code></dfn> (numeric value 3)</dt>
<dd>The <a href=#timed-track-failed-to-load>timed track failed to load</a> state.</dd>
</dl><!-- XXX

const unsigned short <dfn title="dom-TimedTrack-OFF"><code>OFF</code></dfn> = 0
const unsigned short <dfn title="dom-TimedTrack-HIDDEN"><code>HIDDEN</code></dfn> = 1
const unsigned short <dfn title="dom-TimedTrack-SHOWING"><code>SHOWING</code></dfn> = 2
attribute unsigned short <dfn title="dom-TimedTrack-mode"><code>mode</code></dfn>

readonly attribute <span>TimedTrackCueList</span> <dfn title="dom-TimedTrack-cues"><code>cues</code></dfn>
readonly attribute <span>TimedTrackCueList</span> <dfn title="dom-TimedTrack-activeCues"><code>activeCues</code></dfn>

Make sure that .cues and .activeCues doesn't change while script is
running, except for addCue/removeCue and the removal of all cues in
the face of a dynamic track.src change.
</dl><p>The <dfn id=dom-timedtrack-mode title=dom-TimedTrack-mode><code>mode</code></dfn>
attribute, on getting, must return the numeric value corresponding
to the <a href=#timed-track-mode>timed track mode</a> of the <a href=#timed-track>timed track</a>
that the <code><a href=#timedtrack>TimedTrack</a></code> object represents, as defined by
the following list:</p>

<p>User agents must not expose cues whose start and end times are
entirely prior to the <span>media resource</span>'s <span>earliest
possible position</span>.</p>
<dl><dt><dfn id=dom-timedtrack-off title=dom-TimedTrack-OFF><code>OFF</code></dfn> (numeric value 0)</dt>
<dd>The <a href=#timed-track-disabled>timed track disabled</a> mode.</dd>
<dt><dfn id=dom-timedtrack-hidden title=dom-TimedTrack-HIDDEN><code>HIDDEN</code></dfn> (numeric value 1)</dt>
<dd>The <a href=#timed-track-hidden>timed track hidden</a> mode.</dd>
<dt><dfn id=dom-timedtrack-showing title=dom-TimedTrack-SHOWING><code>SHOWING</code></dfn> (numeric value 2)</dt>
<dd>The <a href=#timed-track-showing>timed track showing</a> mode.</dd>
</dl><p class=XXX>On setting, ...</p>

<!-- XXX
changing dom-TimedTrack-mode to disabled/hidden should hide all the
titles, changing it to showing should show them. (Only 'showing'
tracks get updated automatically.)
-->

<p>If the <a href=#timed-track-mode>timed track mode</a> of the <a href=#timed-track>timed
track</a> that the <code><a href=#timedtrack>TimedTrack</a></code> object represents is
not the <a href=#timed-track-disabled>timed track disabled</a> mode, then the <dfn id=dom-timedtrack-cues title=dom-TimedTrack-cues><code>cues</code></dfn> attribute must
return a <code><a href=#timedtrackcuelist>TimedTrackCueList</a></code> object that represents the
subset of the <a href=#timed-track-list-of-cues>timed track list of cues</a> of the
<a href=#timed-track>timed track</a> that the <code><a href=#timedtrack>TimedTrack</a></code> object
represents whose <a href=#timed-track-cue-start-time title="timed track cue start time">start
times</a> occur before the <span>earliest possible position when
the script started</span>, in <a href=#timed-track-cue-order>timed track cue
order</a>. Otherwise, it must return null. When an object is
returned, the same object must be returned each time.</p>

<p>The <dfn id=earliest-possibly-position-when-the-script-started>earliest possibly position when the script started</dfn>
is whatever the <span>earliest possibly position</span> was the last
time the <a href=#event-loop>event loop</a> reached step 1.</p>

<p>If the <a href=#timed-track-mode>timed track mode</a> of the <a href=#timed-track>timed
track</a> that the <code><a href=#timedtrack>TimedTrack</a></code> object represents is
not the <a href=#timed-track-disabled>timed track disabled</a> mode, then the <dfn id=dom-timedtrack-activecues title=dom-TimedTrack-activeCues><code>activeCues</code></dfn>
attribute must return a <code><a href=#timedtrackcuelist>TimedTrackCueList</a></code> object that
represents the subset of the <a href=#timed-track-list-of-cues>timed track list of cues</a>
of the <a href=#timed-track>timed track</a> that the <code><a href=#timedtrack>TimedTrack</a></code>
object represents whose <a href=#timed-track-cue-start-time title="timed track cue start
time">start times</a> occur before the <a href=#current-playback-position-when-the-script-started>current playback
position when the script started</a> and whose <a href=#timed-track-cue-end-time title="timed
track cue end time">end times</a> occur after the <a href=#current-playback-position-when-the-script-started>current
playback position when the script started</a>, in <a href=#timed-track-cue-order>timed
track cue order</a>. Otherwise, it must return null. When an
object is returned, the same object must be returned each time.</p>

<p>The <dfn id=current-playback-position-when-the-script-started>current playback position when the script started</dfn>
is whatever the <a href=#current-playback-position>current playback position</a> was the last
time the <a href=#event-loop>event loop</a> reached step 1.</p>

<!-- XXX
- <span>MutableTimedTrack</span> <span title="dom-media-addTrack">addTrack</span>(in DOMString label, in DOMString kind, in DOMString language);
- addTrack should add it as Loaded, Disabled, and with the rules for WebSRT.
--></div>
-->

</div>

<hr><pre class=idl>interface <dfn id=mutabletimedtrack>MutableTimedTrack</dfn> : <a href=#timedtrack>TimedTrack</a> {
void <span title=dom-MutableTimedTrack-addCue>addCue</span>(in <a href=#timedtrackcue>TimedTrackCue</a> cue);

<p class=XXX>...</p>

<!-- XXX
Make sure that <code>TimedTrackCueList</code>s don't change while
script is running, except for addCue/removeCue and the removal of
all cues in the face of a dynamic track.src change.
(right now only in-band cues can change this, I think)
-->

</div>

<hr><pre class=idl>interface <dfn id=timedtrackcuelist>TimedTrackCueList</dfn> {

0 comments on commit 5f00c9d

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