[html5] r6021 - [giow] (0) in-band audio and video tracks have IDs; expose them
whatwg at whatwg.org
whatwg at whatwg.org
Wed Apr 20 15:45:21 PDT 2011
Author: ianh
Date: 2011-04-20 15:45:20 -0700 (Wed, 20 Apr 2011)
New Revision: 6021
Modified:
complete.html
index
source
Log:
[giow] (0) in-band audio and video tracks have IDs; expose them
Modified: complete.html
===================================================================
--- complete.html 2011-04-20 20:44:23 UTC (rev 6020)
+++ complete.html 2011-04-20 22:45:20 UTC (rev 6021)
@@ -28670,6 +28670,7 @@
<pre class=idl>interface <dfn id=tracklist>TrackList</dfn> {
readonly attribute unsigned long <a href=#dom-tracklist-length title=dom-TrackList-length>length</a>;
+ DOMString <a href=#dom-tracklist-getid title=dom-TrackList-getID>getID</a>(in unsigned long index);
DOMString <a href=#dom-tracklist-getlabel title=dom-TrackList-getLabel>getLabel</a>(in unsigned long index);
DOMString <a href=#dom-tracklist-getlanguage title=dom-TrackList-getLanguage>getLanguage</a>(in unsigned long index);
@@ -28695,6 +28696,16 @@
</dd>
+ <dt><var title="">id</var> = <var title="">tracks</var> . <code title=dom-TrackList-getID><a href=#dom-tracklist-getid>getID</a></code>( <var title="">index</var> )</dt>
+
+ <dd>
+
+ <p>Returns the ID of the given track. This is the ID that can be
+ used with a fragment identifier if the format supports the
+ <cite>Media Fragments URI</cite> syntax. <a href=#hrefMEDIAFRAG>[MEDIAFRAG]</a></p>
+
+ </dd>
+
<dt><var title="">label</var> = <var title="">tracks</var> . <code title=dom-TrackList-getLabel><a href=#dom-tracklist-getlabel>getLabel</a></code>( <var title="">index</var> )</dt>
<dd>
@@ -28765,6 +28776,16 @@
thus has an index; the first has the index 0, and each subsequent
track is numbered one higher than the previous one.</p>
+ <p>The <dfn id=dom-tracklist-getid title=dom-TrackList-getID><code>getID(<var title="">index</var>)</code></dfn> method must return the identifier
+ of the track with index <var title="">index</var>, if there is one.
+ If there is no such track, then the method must instead throw an
+ <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception. If the <a href=#media-resource>media
+ resource</a> is in a format that supports the <cite>Media
+ Fragments URI</cite> fragment identifier syntax, the returned
+ identifier must be the same identifier that would enable the track
+ if used as the name of a track in the track dimension of such a
+ fragment identifier. <a href=#refsMEDIAFRAG>[MEDIAFRAG]</a></p>
+
<p>The <dfn id=dom-tracklist-getlabel title=dom-TrackList-getLabel><code>getLabel(<var title="">index</var>)</code></dfn> method must return the label of
the track with index <var title="">index</var>, if there is one and
it has a label. If there is no such track, then the method must
Modified: index
===================================================================
--- index 2011-04-20 20:44:23 UTC (rev 6020)
+++ index 2011-04-20 22:45:20 UTC (rev 6021)
@@ -28682,6 +28682,7 @@
<pre class=idl>interface <dfn id=tracklist>TrackList</dfn> {
readonly attribute unsigned long <a href=#dom-tracklist-length title=dom-TrackList-length>length</a>;
+ DOMString <a href=#dom-tracklist-getid title=dom-TrackList-getID>getID</a>(in unsigned long index);
DOMString <a href=#dom-tracklist-getlabel title=dom-TrackList-getLabel>getLabel</a>(in unsigned long index);
DOMString <a href=#dom-tracklist-getlanguage title=dom-TrackList-getLanguage>getLanguage</a>(in unsigned long index);
@@ -28707,6 +28708,16 @@
</dd>
+ <dt><var title="">id</var> = <var title="">tracks</var> . <code title=dom-TrackList-getID><a href=#dom-tracklist-getid>getID</a></code>( <var title="">index</var> )</dt>
+
+ <dd>
+
+ <p>Returns the ID of the given track. This is the ID that can be
+ used with a fragment identifier if the format supports the
+ <cite>Media Fragments URI</cite> syntax. <a href=#hrefMEDIAFRAG>[MEDIAFRAG]</a></p>
+
+ </dd>
+
<dt><var title="">label</var> = <var title="">tracks</var> . <code title=dom-TrackList-getLabel><a href=#dom-tracklist-getlabel>getLabel</a></code>( <var title="">index</var> )</dt>
<dd>
@@ -28777,6 +28788,16 @@
thus has an index; the first has the index 0, and each subsequent
track is numbered one higher than the previous one.</p>
+ <p>The <dfn id=dom-tracklist-getid title=dom-TrackList-getID><code>getID(<var title="">index</var>)</code></dfn> method must return the identifier
+ of the track with index <var title="">index</var>, if there is one.
+ If there is no such track, then the method must instead throw an
+ <code><a href=#index_size_err>INDEX_SIZE_ERR</a></code> exception. If the <a href=#media-resource>media
+ resource</a> is in a format that supports the <cite>Media
+ Fragments URI</cite> fragment identifier syntax, the returned
+ identifier must be the same identifier that would enable the track
+ if used as the name of a track in the track dimension of such a
+ fragment identifier. <a href=#refsMEDIAFRAG>[MEDIAFRAG]</a></p>
+
<p>The <dfn id=dom-tracklist-getlabel title=dom-TrackList-getLabel><code>getLabel(<var title="">index</var>)</code></dfn> method must return the label of
the track with index <var title="">index</var>, if there is one and
it has a label. If there is no such track, then the method must
Modified: source
===================================================================
--- source 2011-04-20 20:44:23 UTC (rev 6020)
+++ source 2011-04-20 22:45:20 UTC (rev 6021)
@@ -31249,6 +31249,7 @@
<pre class="idl">interface <dfn>TrackList</dfn> {
readonly attribute unsigned long <span title="dom-TrackList-length">length</span>;
+ DOMString <span title="dom-TrackList-getID">getID</span>(in unsigned long index);
DOMString <span title="dom-TrackList-getLabel">getLabel</span>(in unsigned long index);
DOMString <span title="dom-TrackList-getLanguage">getLanguage</span>(in unsigned long index);
@@ -31276,6 +31277,17 @@
</dd>
+ <dt><var title="">id</var> = <var title="">tracks</var> . <code title="dom-TrackList-getID">getID</code>( <var title="">index</var> )</dt>
+
+ <dd>
+
+ <p>Returns the ID of the given track. This is the ID that can be
+ used with a fragment identifier if the format supports the
+ <cite>Media Fragments URI</cite> syntax. <a
+ href="#hrefMEDIAFRAG">[MEDIAFRAG]</a></p>
+
+ </dd>
+
<dt><var title="">label</var> = <var title="">tracks</var> . <code title="dom-TrackList-getLabel">getLabel</code>( <var title="">index</var> )</dt>
<dd>
@@ -31348,6 +31360,17 @@
thus has an index; the first has the index 0, and each subsequent
track is numbered one higher than the previous one.</p>
+ <p>The <dfn title="dom-TrackList-getID"><code>getID(<var
+ title="">index</var>)</code></dfn> method must return the identifier
+ of the track with index <var title="">index</var>, if there is one.
+ If there is no such track, then the method must instead throw an
+ <code>INDEX_SIZE_ERR</code> exception. If the <span>media
+ resource</span> is in a format that supports the <cite>Media
+ Fragments URI</cite> fragment identifier syntax, the returned
+ identifier must be the same identifier that would enable the track
+ if used as the name of a track in the track dimension of such a
+ fragment identifier. <a href="#refsMEDIAFRAG">[MEDIAFRAG]</a></p>
+
<p>The <dfn title="dom-TrackList-getLabel"><code>getLabel(<var
title="">index</var>)</code></dfn> method must return the label of
the track with index <var title="">index</var>, if there is one and
More information about the Commit-Watchers
mailing list