[html5] r5134 - [e] (0) Captions - Stage 18.1: rearrange the domintro blocks for timed track API [...]
whatwg at whatwg.org
whatwg at whatwg.org
Wed Jul 7 16:37:59 PDT 2010
Author: ianh
Date: 2010-07-07 16:37:58 -0700 (Wed, 07 Jul 2010)
New Revision: 5134
Modified:
complete.html
index
source
Log:
[e] (0) Captions - Stage 18.1: rearrange the domintro blocks for timed track APIs around their IDLs.
Modified: complete.html
===================================================================
--- complete.html 2010-07-07 23:30:24 UTC (rev 5133)
+++ complete.html 2010-07-07 23:37:58 UTC (rev 5134)
@@ -26701,7 +26701,32 @@
<h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
- <pre class=idl>interface <dfn id=timedtrack>TimedTrack</dfn> {
+ <dl class=domintro><dt><var title="">media</var> . <code title=dom-media-tracks>tracks</code> . <code title="">length</code></dt>
+ <dd>
+ <p>Returns the number of timed tracks associated with the element (e.g. from <code><a href=#the-track-element>track</a></code> elements).</p>
+ </dd>
+
+ <dt><var title="">media</var> . <code title=dom-media-tracks>tracks[</code> <var title="">n</var> <code title="">]</code></dt>
+ <dd>
+ <p>Returns the <code><a href=#timedtrack>TimedTrack</a></code> object representing the <var title="">n</var>th timed track.</p>
+ </dd>
+
+ <dt><var title="">track</var> . <code title=dom-track-track><a href=#dom-track-track>track</a></code></dt>
+ <dd>
+ <p>Returns the <code><a href=#timedtrack>TimedTrack</a></code> object representing the <code><a href=#the-track-element>track</a></code> element's timed track.</p>
+ </dd>
+
+ </dl><div class=impl>
+
+<!-- XXX
+ - readonly attribute <span>TimedTrack</span>[] <span title="dom-media-tracks">tracks</span>
+-->
+
+ <p class=XXX>...</p>
+
+ </div>
+
+ <hr><pre class=idl>interface <dfn id=timedtrack>TimedTrack</dfn> {
readonly attribute DOMString <span title=dom-TimedTrack-kind>kind</span>;
readonly attribute DOMString <span title=dom-TimedTrack-label>label</span>;
readonly attribute DOMString <span title=dom-TimedTrack-language>language</span>;
@@ -26723,60 +26748,10 @@
readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <span title=dom-TimedTrack-activeCues>activeCues</span>;
readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrack-oncuechange>oncuechange</span>;
-};
-
-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);
- void <span title=dom-MutableTimedTrack-removeCue>removeCue</span>(in <a href=#timedtrackcue>TimedTrackCue</a> cue);
-};
-
-interface <dfn id=timedtrackcuelist>TimedTrackCueList</dfn> {
- readonly attribute unsigned long <span title=dom-TimedTrackCueList-length>length</span>;
- getter <a href=#timedtrackcue>TimedTrackCue</a> (in unsigned long index);
- <a href=#timedtrackcue>TimedTrackCue</a> <span title=dom-TimedTrackCueList-getCueById>getCueById</span>(in DOMString id);
-};
-
-[<span title=dom-TimedTrackCue>Constructor</span>(in DOMString id, in float startTime, in float endTime, in DOMString text, in optional DOMString settings, in optional DOMString voice, in optional boolean pauseOnExit)]
-interface <dfn id=timedtrackcue>TimedTrackCue</dfn> {
- readonly attribute <a href=#timedtrack>TimedTrack</a> <span title=dom-TimedTrackCue-track>track</span>;
- readonly attribute DOMString <span title=dom-TimedTrackCue-id>id</span>;
-
- readonly attribute float <span title=dom-TimedTrackCue-startTime>startTime</span>;
- readonly attribute float <span title=dom-TimedTrackCue-endTime>endTime</span>;
- readonly attribute boolean <span title=dom-TimedTrackCue-pauseOnExit>pauseOnExit</span>;
-
- readonly attribute DOMString <span title=dom-TimedTrackCue-direction>direction</span>;
- readonly attribute boolean <span title=dom-TimedTrackCue-snapToLines>snapToLines</span>;
- readonly attribute long <span title=dom-TimedTrackCue-linePosition>linePosition</span>;
- readonly attribute long <span title=dom-TimedTrackCue-textPosition>textPosition</span>;
- readonly attribute long <span title=dom-TimedTrackCue-size>size</span>;
- readonly attribute DOMString <span title=dom-TimedTrackCue-alignment>alignment</span>;
-
- readonly attribute DOMString <span title=dom-TimedTrackCue-voice>voice</span>;
- DOMString <span title=dom-TimedTrackCue-getCueAsSource()>getCueAsSource</span>();
- <a href=#documentfragment>DocumentFragment</a> <span title=dom-TimedTrackCue-getCueAsHTML()>getCueAsHTML</span>();
-
- readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrackCue-onenter>onenter</span>;
- readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrackCue-onexit>onexit</span>;
};</pre>
- <dl class=domintro><dt><var title="">media</var> . <code title=dom-media-tracks>tracks</code> . <code title="">length</code></dt>
+ <dl class=domintro><dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-kind>kind</code></dt>
<dd>
- <p>Returns the number of timed tracks associated with the element (e.g. from <code><a href=#the-track-element>track</a></code> elements).</p>
- </dd>
-
- <dt><var title="">media</var> . <code title=dom-media-tracks>tracks[</code> <var title="">n</var> <code title="">]</code></dt>
- <dd>
- <p>Returns the <code><a href=#timedtrack>TimedTrack</a></code> object representing the <var title="">n</var>th timed track.</p>
- </dd>
-
- <dt><var title="">track</var> . <code title=dom-track-track><a href=#dom-track-track>track</a></code></dt>
- <dd>
- <p>Returns the <code><a href=#timedtrack>TimedTrack</a></code> object representing the <code><a href=#the-track-element>track</a></code> element's timed track.</p>
- </dd>
-
- </dl><dl class=domintro><dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-kind>kind</code></dt>
- <dd>
<p>Returns the <a href=#timed-track-kind>timed track kind</a> string.</p>
</dd>
@@ -26841,7 +26816,35 @@
<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>
- </dl><dl class=domintro><dt><var title="">mutableTimedTrack</var> = <var title="">media</var> . <code title=dom-media-addTrack>addTrack</code>( <var title="">label</var>, <var title="">kind</var>, <var title="">language</var> )</dt>
+ </dl><div class=impl>
+
+ <p class=XXX>...</p>
+
+<!-- XXX
+ 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.
+
+ <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>
+
+ 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.)
+
+ - <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>
+
+ <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);
+ void <span title=dom-MutableTimedTrack-removeCue>removeCue</span>(in <a href=#timedtrackcue>TimedTrackCue</a> cue);
+};</pre>
+
+ <dl class=domintro><dt><var title="">mutableTimedTrack</var> = <var title="">media</var> . <code title=dom-media-addTrack>addTrack</code>( <var title="">label</var>, <var title="">kind</var>, <var title="">language</var> )</dt>
<dd>
<p>Creates and returns a new <code><a href=#mutabletimedtrack>MutableTimedTrack</a></code> object, which is also added to the <a href=#media-element>media element</a>'s <a href=#list-of-timed-tracks>list of timed tracks</a>.</p>
</dd>
@@ -26858,7 +26861,19 @@
<!-- XXX exception thrown if it's not there -->
</dd>
- </dl><dl class=domintro><dt><var title="">cuelist</var> . <code title=dom-TimedTrackCueList-length>length</code></dt>
+ </dl><div class=impl>
+
+ <p class=XXX>...</p>
+
+ </div>
+
+ <hr><pre class=idl>interface <dfn id=timedtrackcuelist>TimedTrackCueList</dfn> {
+ readonly attribute unsigned long <span title=dom-TimedTrackCueList-length>length</span>;
+ getter <a href=#timedtrackcue>TimedTrackCue</a> (in unsigned long index);
+ <a href=#timedtrackcue>TimedTrackCue</a> <span title=dom-TimedTrackCueList-getCueById>getCueById</span>(in DOMString id);
+};</pre>
+
+ <dl class=domintro><dt><var title="">cuelist</var> . <code title=dom-TimedTrackCueList-length>length</code></dt>
<dd>
<p>Returns the number of <a href=#timed-track-cue title="timed track cue">cues</a> in the list.</p>
</dd>
@@ -26875,7 +26890,37 @@
<p>Returns null if none of the cues have the given identifier.</p>
</dd>
- </dl><dl class=domintro><dt><var title="">cue</var> = new <code title=dom-TimedTrackCue>TimedTrackCue</code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">voice</var> [, <var title="">pauseOnExit</var> ] ] ] )</dt>
+ </dl><div class=impl>
+
+ <p class=XXX>...</p>
+
+ </div>
+
+ <hr><pre class=idl>[<span title=dom-TimedTrackCue>Constructor</span>(in DOMString id, in float startTime, in float endTime, in DOMString text, in optional DOMString settings, in optional DOMString voice, in optional boolean pauseOnExit)]
+interface <dfn id=timedtrackcue>TimedTrackCue</dfn> {
+ readonly attribute <a href=#timedtrack>TimedTrack</a> <span title=dom-TimedTrackCue-track>track</span>;
+ readonly attribute DOMString <span title=dom-TimedTrackCue-id>id</span>;
+
+ readonly attribute float <span title=dom-TimedTrackCue-startTime>startTime</span>;
+ readonly attribute float <span title=dom-TimedTrackCue-endTime>endTime</span>;
+ readonly attribute boolean <span title=dom-TimedTrackCue-pauseOnExit>pauseOnExit</span>;
+
+ readonly attribute DOMString <span title=dom-TimedTrackCue-direction>direction</span>;
+ readonly attribute boolean <span title=dom-TimedTrackCue-snapToLines>snapToLines</span>;
+ readonly attribute long <span title=dom-TimedTrackCue-linePosition>linePosition</span>;
+ readonly attribute long <span title=dom-TimedTrackCue-textPosition>textPosition</span>;
+ readonly attribute long <span title=dom-TimedTrackCue-size>size</span>;
+ readonly attribute DOMString <span title=dom-TimedTrackCue-alignment>alignment</span>;
+
+ readonly attribute DOMString <span title=dom-TimedTrackCue-voice>voice</span>;
+ DOMString <span title=dom-TimedTrackCue-getCueAsSource()>getCueAsSource</span>();
+ <a href=#documentfragment>DocumentFragment</a> <span title=dom-TimedTrackCue-getCueAsHTML()>getCueAsHTML</span>();
+
+ readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrackCue-onenter>onenter</span>;
+ readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrackCue-onexit>onexit</span>;
+};</pre>
+
+ <dl class=domintro><dt><var title="">cue</var> = new <code title=dom-TimedTrackCue>TimedTrackCue</code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">voice</var> [, <var title="">pauseOnExit</var> ] ] ] )</dt>
<dd>
<p>Returns a new <code><a href=#timedtrackcue>TimedTrackCue</a></code> object, for use with the <code title=dom-MutableTimedTrack-addCue>addCue()</code> method.</p>
<p>The <var title="">id</var> argument sets the <a href=#timed-track-cue-identifier>timed track cue identifier</a>.</p>
@@ -26975,46 +27020,23 @@
</dl><div class=impl>
- <p class=XXX>...
+ <p class=XXX>...</p>
-<!-- XXX
- - readonly attribute <span>TimedTrack</span>[] <span title="dom-media-tracks">tracks</span>;
- - <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>
- <!-- XXX
- 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.
- <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>
- 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.)
-
- -->
-
- </div>
-
-
<h6 id=cue-events><span class=secno>4.8.10.10.6 </span>Event definitions</h6>
<!-- XXX
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onload">onload</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onerror">onerror</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-oncuechange">oncuechange</span>;
--->
-
-<!-- XXX
readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onenter">onenter</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onexit">onexit</span>;
-->
- <p class=XXX>...
+ <p class=XXX>...</p>
<h5 id=websrt-0><span class=secno>4.8.10.11 </span>WebSRT</h5>
Modified: index
===================================================================
--- index 2010-07-07 23:30:24 UTC (rev 5133)
+++ index 2010-07-07 23:37:58 UTC (rev 5134)
@@ -26628,7 +26628,32 @@
<h6 id=timed-track-api><span class=secno>4.8.10.10.5 </span>Timed track API</h6>
- <pre class=idl>interface <dfn id=timedtrack>TimedTrack</dfn> {
+ <dl class=domintro><dt><var title="">media</var> . <code title=dom-media-tracks>tracks</code> . <code title="">length</code></dt>
+ <dd>
+ <p>Returns the number of timed tracks associated with the element (e.g. from <code><a href=#the-track-element>track</a></code> elements).</p>
+ </dd>
+
+ <dt><var title="">media</var> . <code title=dom-media-tracks>tracks[</code> <var title="">n</var> <code title="">]</code></dt>
+ <dd>
+ <p>Returns the <code><a href=#timedtrack>TimedTrack</a></code> object representing the <var title="">n</var>th timed track.</p>
+ </dd>
+
+ <dt><var title="">track</var> . <code title=dom-track-track><a href=#dom-track-track>track</a></code></dt>
+ <dd>
+ <p>Returns the <code><a href=#timedtrack>TimedTrack</a></code> object representing the <code><a href=#the-track-element>track</a></code> element's timed track.</p>
+ </dd>
+
+ </dl><div class=impl>
+
+<!-- XXX
+ - readonly attribute <span>TimedTrack</span>[] <span title="dom-media-tracks">tracks</span>
+-->
+
+ <p class=XXX>...</p>
+
+ </div>
+
+ <hr><pre class=idl>interface <dfn id=timedtrack>TimedTrack</dfn> {
readonly attribute DOMString <span title=dom-TimedTrack-kind>kind</span>;
readonly attribute DOMString <span title=dom-TimedTrack-label>label</span>;
readonly attribute DOMString <span title=dom-TimedTrack-language>language</span>;
@@ -26650,60 +26675,10 @@
readonly attribute <a href=#timedtrackcuelist>TimedTrackCueList</a> <span title=dom-TimedTrack-activeCues>activeCues</span>;
readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrack-oncuechange>oncuechange</span>;
-};
-
-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);
- void <span title=dom-MutableTimedTrack-removeCue>removeCue</span>(in <a href=#timedtrackcue>TimedTrackCue</a> cue);
-};
-
-interface <dfn id=timedtrackcuelist>TimedTrackCueList</dfn> {
- readonly attribute unsigned long <span title=dom-TimedTrackCueList-length>length</span>;
- getter <a href=#timedtrackcue>TimedTrackCue</a> (in unsigned long index);
- <a href=#timedtrackcue>TimedTrackCue</a> <span title=dom-TimedTrackCueList-getCueById>getCueById</span>(in DOMString id);
-};
-
-[<span title=dom-TimedTrackCue>Constructor</span>(in DOMString id, in float startTime, in float endTime, in DOMString text, in optional DOMString settings, in optional DOMString voice, in optional boolean pauseOnExit)]
-interface <dfn id=timedtrackcue>TimedTrackCue</dfn> {
- readonly attribute <a href=#timedtrack>TimedTrack</a> <span title=dom-TimedTrackCue-track>track</span>;
- readonly attribute DOMString <span title=dom-TimedTrackCue-id>id</span>;
-
- readonly attribute float <span title=dom-TimedTrackCue-startTime>startTime</span>;
- readonly attribute float <span title=dom-TimedTrackCue-endTime>endTime</span>;
- readonly attribute boolean <span title=dom-TimedTrackCue-pauseOnExit>pauseOnExit</span>;
-
- readonly attribute DOMString <span title=dom-TimedTrackCue-direction>direction</span>;
- readonly attribute boolean <span title=dom-TimedTrackCue-snapToLines>snapToLines</span>;
- readonly attribute long <span title=dom-TimedTrackCue-linePosition>linePosition</span>;
- readonly attribute long <span title=dom-TimedTrackCue-textPosition>textPosition</span>;
- readonly attribute long <span title=dom-TimedTrackCue-size>size</span>;
- readonly attribute DOMString <span title=dom-TimedTrackCue-alignment>alignment</span>;
-
- readonly attribute DOMString <span title=dom-TimedTrackCue-voice>voice</span>;
- DOMString <span title=dom-TimedTrackCue-getCueAsSource()>getCueAsSource</span>();
- <a href=#documentfragment>DocumentFragment</a> <span title=dom-TimedTrackCue-getCueAsHTML()>getCueAsHTML</span>();
-
- readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrackCue-onenter>onenter</span>;
- readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrackCue-onexit>onexit</span>;
};</pre>
- <dl class=domintro><dt><var title="">media</var> . <code title=dom-media-tracks>tracks</code> . <code title="">length</code></dt>
+ <dl class=domintro><dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-kind>kind</code></dt>
<dd>
- <p>Returns the number of timed tracks associated with the element (e.g. from <code><a href=#the-track-element>track</a></code> elements).</p>
- </dd>
-
- <dt><var title="">media</var> . <code title=dom-media-tracks>tracks[</code> <var title="">n</var> <code title="">]</code></dt>
- <dd>
- <p>Returns the <code><a href=#timedtrack>TimedTrack</a></code> object representing the <var title="">n</var>th timed track.</p>
- </dd>
-
- <dt><var title="">track</var> . <code title=dom-track-track><a href=#dom-track-track>track</a></code></dt>
- <dd>
- <p>Returns the <code><a href=#timedtrack>TimedTrack</a></code> object representing the <code><a href=#the-track-element>track</a></code> element's timed track.</p>
- </dd>
-
- </dl><dl class=domintro><dt><var title="">timedTrack</var> . <code title=dom-TimedTrack-kind>kind</code></dt>
- <dd>
<p>Returns the <a href=#timed-track-kind>timed track kind</a> string.</p>
</dd>
@@ -26768,7 +26743,35 @@
<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>
- </dl><dl class=domintro><dt><var title="">mutableTimedTrack</var> = <var title="">media</var> . <code title=dom-media-addTrack>addTrack</code>( <var title="">label</var>, <var title="">kind</var>, <var title="">language</var> )</dt>
+ </dl><div class=impl>
+
+ <p class=XXX>...</p>
+
+<!-- XXX
+ 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.
+
+ <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>
+
+ 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.)
+
+ - <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>
+
+ <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);
+ void <span title=dom-MutableTimedTrack-removeCue>removeCue</span>(in <a href=#timedtrackcue>TimedTrackCue</a> cue);
+};</pre>
+
+ <dl class=domintro><dt><var title="">mutableTimedTrack</var> = <var title="">media</var> . <code title=dom-media-addTrack>addTrack</code>( <var title="">label</var>, <var title="">kind</var>, <var title="">language</var> )</dt>
<dd>
<p>Creates and returns a new <code><a href=#mutabletimedtrack>MutableTimedTrack</a></code> object, which is also added to the <a href=#media-element>media element</a>'s <a href=#list-of-timed-tracks>list of timed tracks</a>.</p>
</dd>
@@ -26785,7 +26788,19 @@
<!-- XXX exception thrown if it's not there -->
</dd>
- </dl><dl class=domintro><dt><var title="">cuelist</var> . <code title=dom-TimedTrackCueList-length>length</code></dt>
+ </dl><div class=impl>
+
+ <p class=XXX>...</p>
+
+ </div>
+
+ <hr><pre class=idl>interface <dfn id=timedtrackcuelist>TimedTrackCueList</dfn> {
+ readonly attribute unsigned long <span title=dom-TimedTrackCueList-length>length</span>;
+ getter <a href=#timedtrackcue>TimedTrackCue</a> (in unsigned long index);
+ <a href=#timedtrackcue>TimedTrackCue</a> <span title=dom-TimedTrackCueList-getCueById>getCueById</span>(in DOMString id);
+};</pre>
+
+ <dl class=domintro><dt><var title="">cuelist</var> . <code title=dom-TimedTrackCueList-length>length</code></dt>
<dd>
<p>Returns the number of <a href=#timed-track-cue title="timed track cue">cues</a> in the list.</p>
</dd>
@@ -26802,7 +26817,37 @@
<p>Returns null if none of the cues have the given identifier.</p>
</dd>
- </dl><dl class=domintro><dt><var title="">cue</var> = new <code title=dom-TimedTrackCue>TimedTrackCue</code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">voice</var> [, <var title="">pauseOnExit</var> ] ] ] )</dt>
+ </dl><div class=impl>
+
+ <p class=XXX>...</p>
+
+ </div>
+
+ <hr><pre class=idl>[<span title=dom-TimedTrackCue>Constructor</span>(in DOMString id, in float startTime, in float endTime, in DOMString text, in optional DOMString settings, in optional DOMString voice, in optional boolean pauseOnExit)]
+interface <dfn id=timedtrackcue>TimedTrackCue</dfn> {
+ readonly attribute <a href=#timedtrack>TimedTrack</a> <span title=dom-TimedTrackCue-track>track</span>;
+ readonly attribute DOMString <span title=dom-TimedTrackCue-id>id</span>;
+
+ readonly attribute float <span title=dom-TimedTrackCue-startTime>startTime</span>;
+ readonly attribute float <span title=dom-TimedTrackCue-endTime>endTime</span>;
+ readonly attribute boolean <span title=dom-TimedTrackCue-pauseOnExit>pauseOnExit</span>;
+
+ readonly attribute DOMString <span title=dom-TimedTrackCue-direction>direction</span>;
+ readonly attribute boolean <span title=dom-TimedTrackCue-snapToLines>snapToLines</span>;
+ readonly attribute long <span title=dom-TimedTrackCue-linePosition>linePosition</span>;
+ readonly attribute long <span title=dom-TimedTrackCue-textPosition>textPosition</span>;
+ readonly attribute long <span title=dom-TimedTrackCue-size>size</span>;
+ readonly attribute DOMString <span title=dom-TimedTrackCue-alignment>alignment</span>;
+
+ readonly attribute DOMString <span title=dom-TimedTrackCue-voice>voice</span>;
+ DOMString <span title=dom-TimedTrackCue-getCueAsSource()>getCueAsSource</span>();
+ <a href=#documentfragment>DocumentFragment</a> <span title=dom-TimedTrackCue-getCueAsHTML()>getCueAsHTML</span>();
+
+ readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrackCue-onenter>onenter</span>;
+ readonly attribute <a href=#function>Function</a> <span title=dom-TimedTrackCue-onexit>onexit</span>;
+};</pre>
+
+ <dl class=domintro><dt><var title="">cue</var> = new <code title=dom-TimedTrackCue>TimedTrackCue</code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">voice</var> [, <var title="">pauseOnExit</var> ] ] ] )</dt>
<dd>
<p>Returns a new <code><a href=#timedtrackcue>TimedTrackCue</a></code> object, for use with the <code title=dom-MutableTimedTrack-addCue>addCue()</code> method.</p>
<p>The <var title="">id</var> argument sets the <a href=#timed-track-cue-identifier>timed track cue identifier</a>.</p>
@@ -26902,46 +26947,23 @@
</dl><div class=impl>
- <p class=XXX>...
+ <p class=XXX>...</p>
-<!-- XXX
- - readonly attribute <span>TimedTrack</span>[] <span title="dom-media-tracks">tracks</span>;
- - <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>
- <!-- XXX
- 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.
- <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>
- 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.)
-
- -->
-
- </div>
-
-
<h6 id=cue-events><span class=secno>4.8.10.10.6 </span>Event definitions</h6>
<!-- XXX
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onload">onload</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onerror">onerror</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-oncuechange">oncuechange</span>;
--->
-
-<!-- XXX
readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onenter">onenter</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onexit">onexit</span>;
-->
- <p class=XXX>...
+ <p class=XXX>...</p>
<h5 id=websrt-0><span class=secno>4.8.10.11 </span>WebSRT</h5>
Modified: source
===================================================================
--- source 2010-07-07 23:30:24 UTC (rev 5133)
+++ source 2010-07-07 23:37:58 UTC (rev 5134)
@@ -28923,6 +28923,37 @@
<h6>Timed track API</h6>
+ <dl class="domintro">
+
+ <dt><var title="">media</var> . <code title="dom-media-tracks">tracks</code> . <code title="">length</code></dt>
+ <dd>
+ <p>Returns the number of timed tracks associated with the element (e.g. from <code>track</code> elements).</p>
+ </dd>
+
+ <dt><var title="">media</var> . <code title="dom-media-tracks">tracks[</code> <var title="">n</var> <code title="">]</code></dt>
+ <dd>
+ <p>Returns the <code>TimedTrack</code> object representing the <var title="">n</var>th timed track.</p>
+ </dd>
+
+ <dt><var title="">track</var> . <code title="dom-track-track">track</code></dt>
+ <dd>
+ <p>Returns the <code>TimedTrack</code> object representing the <code>track</code> element's timed track.</p>
+ </dd>
+
+ </dl>
+
+ <div class="impl">
+
+<!-- XXX
+ - readonly attribute <span>TimedTrack</span>[] <span title="dom-media-tracks">tracks</span>
+-->
+
+ <p class="XXX">...</p>
+
+ </div>
+
+ <hr>
+
<pre class="idl">interface <dfn>TimedTrack</dfn> {
readonly attribute DOMString <span title="dom-TimedTrack-kind">kind</span>;
readonly attribute DOMString <span title="dom-TimedTrack-label">label</span>;
@@ -28945,64 +28976,10 @@
readonly attribute <Span>TimedTrackCueList</span> <span title="dom-TimedTrack-activeCues">activeCues</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-oncuechange">oncuechange</span>;
-};
-
-interface <dfn>MutableTimedTrack</dfn> : <span>TimedTrack</span> {
- void <span title="dom-MutableTimedTrack-addCue">addCue</span>(in <span>TimedTrackCue</span> cue);
- void <span title="dom-MutableTimedTrack-removeCue">removeCue</span>(in <span>TimedTrackCue</span> cue);
-};
-
-interface <dfn>TimedTrackCueList</dfn> {
- readonly attribute unsigned long <span title="dom-TimedTrackCueList-length">length</span>;
- getter <span>TimedTrackCue</span> (in unsigned long index);
- <span>TimedTrackCue</span> <span title="dom-TimedTrackCueList-getCueById">getCueById</span>(in DOMString id);
-};
-
-[<span title="dom-TimedTrackCue">Constructor</span>(in DOMString id, in float startTime, in float endTime, in DOMString text, in optional DOMString settings, in optional DOMString voice, in optional boolean pauseOnExit)]
-interface <dfn>TimedTrackCue</dfn> {
- readonly attribute <span>TimedTrack</span> <span title="dom-TimedTrackCue-track">track</span>;
- readonly attribute DOMString <span title="dom-TimedTrackCue-id">id</span>;
-
- readonly attribute float <span title="dom-TimedTrackCue-startTime">startTime</span>;
- readonly attribute float <span title="dom-TimedTrackCue-endTime">endTime</span>;
- readonly attribute boolean <span title="dom-TimedTrackCue-pauseOnExit">pauseOnExit</span>;
-
- readonly attribute DOMString <span title="dom-TimedTrackCue-direction">direction</span>;
- readonly attribute boolean <span title="dom-TimedTrackCue-snapToLines">snapToLines</span>;
- readonly attribute long <span title="dom-TimedTrackCue-linePosition">linePosition</span>;
- readonly attribute long <span title="dom-TimedTrackCue-textPosition">textPosition</span>;
- readonly attribute long <span title="dom-TimedTrackCue-size">size</span>;
- readonly attribute DOMString <span title="dom-TimedTrackCue-alignment">alignment</span>;
-
- readonly attribute DOMString <span title="dom-TimedTrackCue-voice">voice</span>;
- DOMString <span title="dom-TimedTrackCue-getCueAsSource()">getCueAsSource</span>();
- <span>DocumentFragment</span> <span title="dom-TimedTrackCue-getCueAsHTML()">getCueAsHTML</span>();
-
- readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onenter">onenter</span>;
- readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onexit">onexit</span>;
};</pre>
<dl class="domintro">
- <dt><var title="">media</var> . <code title="dom-media-tracks">tracks</code> . <code title="">length</code></dt>
- <dd>
- <p>Returns the number of timed tracks associated with the element (e.g. from <code>track</code> elements).</p>
- </dd>
-
- <dt><var title="">media</var> . <code title="dom-media-tracks">tracks[</code> <var title="">n</var> <code title="">]</code></dt>
- <dd>
- <p>Returns the <code>TimedTrack</code> object representing the <var title="">n</var>th timed track.</p>
- </dd>
-
- <dt><var title="">track</var> . <code title="dom-track-track">track</code></dt>
- <dd>
- <p>Returns the <code>TimedTrack</code> object representing the <code>track</code> element's timed track.</p>
- </dd>
-
- </dl>
-
- <dl class="domintro">
-
<dt><var title="">timedTrack</var> . <code title="dom-TimedTrack-kind">kind</code></dt>
<dd>
<p>Returns the <span>timed track kind</span> string.</p>
@@ -29075,6 +29052,36 @@
</dl>
+ <div class="impl">
+
+ <p class="XXX">...</p>
+
+<!-- XXX
+ 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.
+
+ <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>
+
+ 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.)
+
+ - <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>
+
+ <hr>
+
+ <pre class="idl">interface <dfn>MutableTimedTrack</dfn> : <span>TimedTrack</span> {
+ void <span title="dom-MutableTimedTrack-addCue">addCue</span>(in <span>TimedTrackCue</span> cue);
+ void <span title="dom-MutableTimedTrack-removeCue">removeCue</span>(in <span>TimedTrackCue</span> cue);
+};</pre>
+
<dl class="domintro">
<dt><var title="">mutableTimedTrack</var> = <var title="">media</var> . <code title="dom-media-addTrack">addTrack</code>( <var title="">label</var>, <var title="">kind</var>, <var title="">language</var> )</dt>
@@ -29096,6 +29103,20 @@
</dl>
+ <div class="impl">
+
+ <p class="XXX">...</p>
+
+ </div>
+
+ <hr>
+
+ <pre class="idl">interface <dfn>TimedTrackCueList</dfn> {
+ readonly attribute unsigned long <span title="dom-TimedTrackCueList-length">length</span>;
+ getter <span>TimedTrackCue</span> (in unsigned long index);
+ <span>TimedTrackCue</span> <span title="dom-TimedTrackCueList-getCueById">getCueById</span>(in DOMString id);
+};</pre>
+
<dl class="domintro">
<dt><var title="">cuelist</var> . <code title="dom-TimedTrackCueList-length">length</code></dt>
@@ -29117,6 +29138,38 @@
</dl>
+ <div class="impl">
+
+ <p class="XXX">...</p>
+
+ </div>
+
+ <hr>
+
+ <pre class="idl">[<span title="dom-TimedTrackCue">Constructor</span>(in DOMString id, in float startTime, in float endTime, in DOMString text, in optional DOMString settings, in optional DOMString voice, in optional boolean pauseOnExit)]
+interface <dfn>TimedTrackCue</dfn> {
+ readonly attribute <span>TimedTrack</span> <span title="dom-TimedTrackCue-track">track</span>;
+ readonly attribute DOMString <span title="dom-TimedTrackCue-id">id</span>;
+
+ readonly attribute float <span title="dom-TimedTrackCue-startTime">startTime</span>;
+ readonly attribute float <span title="dom-TimedTrackCue-endTime">endTime</span>;
+ readonly attribute boolean <span title="dom-TimedTrackCue-pauseOnExit">pauseOnExit</span>;
+
+ readonly attribute DOMString <span title="dom-TimedTrackCue-direction">direction</span>;
+ readonly attribute boolean <span title="dom-TimedTrackCue-snapToLines">snapToLines</span>;
+ readonly attribute long <span title="dom-TimedTrackCue-linePosition">linePosition</span>;
+ readonly attribute long <span title="dom-TimedTrackCue-textPosition">textPosition</span>;
+ readonly attribute long <span title="dom-TimedTrackCue-size">size</span>;
+ readonly attribute DOMString <span title="dom-TimedTrackCue-alignment">alignment</span>;
+
+ readonly attribute DOMString <span title="dom-TimedTrackCue-voice">voice</span>;
+ DOMString <span title="dom-TimedTrackCue-getCueAsSource()">getCueAsSource</span>();
+ <span>DocumentFragment</span> <span title="dom-TimedTrackCue-getCueAsHTML()">getCueAsHTML</span>();
+
+ readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onenter">onenter</span>;
+ readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onexit">onexit</span>;
+};</pre>
+
<dl class="domintro">
<dt><var title="">cue</var> = new <code title="dom-TimedTrackCue">TimedTrackCue</code>( <var title="">id</var>, <var title="">startTime</var>, <var title="">endTime</var>, <var title="">text</var> [, <var title="">settings</var> [, <var title="">voice</var> [, <var title="">pauseOnExit</var> ] ] ] )</dt>
@@ -29225,46 +29278,23 @@
<div class="impl">
- <p class="XXX">...
+ <p class="XXX">...</p>
-<!-- XXX
- - readonly attribute <span>TimedTrack</span>[] <span title="dom-media-tracks">tracks</span>;
- - <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>
- <!-- XXX
- 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.
- <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>
- 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.)
-
- -->
-
- </div>
-
-
<h6 id="cue-events">Event definitions</h6>
<!-- XXX
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onload">onload</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-onerror">onerror</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrack-oncuechange">oncuechange</span>;
--->
-
-<!-- XXX
readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onenter">onenter</span>;
readonly attribute <span>Function</span> <span title="dom-TimedTrackCue-onexit">onexit</span>;
-->
- <p class="XXX">...
+ <p class="XXX">...</p>
<h5>WebSRT</h5>
More information about the Commit-Watchers
mailing list