Skip to content

Commit

Permalink
[giow] (2) Try to define what happens when you have tracks that don't…
Browse files Browse the repository at this point in the history
… cover the whole media timeline

Fixing https://www.w3.org/Bugs/Public/show_bug.cgi?id=26460
Affected topics: Video and Audio

git-svn-id: http://svn.whatwg.org/webapps@8754 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Sep 8, 2014
1 parent 49900ac commit 53c5067
Show file tree
Hide file tree
Showing 3 changed files with 47 additions and 11 deletions.
20 changes: 16 additions & 4 deletions complete.html
Expand Up @@ -291,7 +291,7 @@
</style><link rel=stylesheet href=status.css><body onload=init()>
<header id=head class="head with-buttons">
<p><a href=//www.whatwg.org/ class=logo><img src=/images/logo width=101 alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1><h2 id=living-standard-—-last-updated-[date:-01-jan-1901] class="no-num no-toc">Living Standard — Last Updated <span class=pubdate>5 September 2014</span></h2></hgroup>
<hgroup><h1 class=allcaps>HTML</h1><h2 id=living-standard-—-last-updated-[date:-01-jan-1901] class="no-num no-toc">Living Standard — Last Updated <span class=pubdate>8 September 2014</span></h2></hgroup>

<nav>
<div>
Expand Down Expand Up @@ -24139,6 +24139,10 @@ <h6 id=audiotracklist-and-videotracklist-objects>4.8.14.10.1 <code id=audiotrack
disabled is enabled, and whenever one that was enabled is disabled, the user agent must
<a href=#queue-a-task id=audiotracklist-and-videotracklist-objects:queue-a-task>queue a task</a> to <a href=#fire-a-simple-event id=audiotracklist-and-videotracklist-objects:fire-a-simple-event>fire a simple event</a> named <code id=audiotracklist-and-videotracklist-objects:event-media-change><a href=#event-media-change>change</a></code> at the <code id=audiotracklist-and-videotracklist-objects:audiotracklist-12><a href=#audiotracklist>AudioTrackList</a></code> object.</p>

<p>An audio track that has no data for a particular position on the <a href=#media-timeline id=audiotracklist-and-videotracklist-objects:media-timeline>media timeline</a>,
or that does not exist at that position, must be interpreted as being silent at that point on the
timeline.</p>

<p>The <dfn id=dom-videotracklist-selectedindex><code>VideoTrackList.selectedIndex</code></dfn> attribute
must return the index of the currently selected track, if any. If the <code id=audiotracklist-and-videotracklist-objects:videotracklist-11><a href=#videotracklist>VideoTrackList</a></code>
object does not currently represent any tracks, or if none of the tracks are selected, it must
Expand All @@ -24159,6 +24163,17 @@ <h6 id=audiotracklist-and-videotracklist-objects>4.8.14.10.1 <code id=audiotrack
<code id=audiotracklist-and-videotracklist-objects:videotracklist-16><a href=#videotracklist>VideoTrackList</a></code> object. This <a href=#concept-task id=audiotracklist-and-videotracklist-objects:concept-task>task</a> must be <a href=#queue-a-task id=audiotracklist-and-videotracklist-objects:queue-a-task-3>queued</a> before the <a href=#concept-task id=audiotracklist-and-videotracklist-objects:concept-task-2>task</a> that fires
the <code id=audiotracklist-and-videotracklist-objects:event-media-resize><a href=#event-media-resize>resize</a></code> event, if any.</p>

<p>A video track that has no data for a particular position on the <a href=#media-timeline id=audiotracklist-and-videotracklist-objects:media-timeline-2>media timeline</a>
must be interpreted as being fully transparent black at that point on the timeline, with the same
dimensions as the last frame before that position, or, if the position is before all the data for
that track, the same dimensions as the first frame for that track. A track that does not exist at
all at the current position must be treated as if it existed but had no data.</p>

<p class=example>For instance, if a video has a track that is only introduced after one hour of
playback, and the user selects that track then goes back to the start, then the user agent will
act as if that track started at the start of the <a href=#media-resource id=audiotracklist-and-videotracklist-objects:media-resource-10>media resource</a> but was simply
transparent until one hour in.</p>

<hr>

<p>The following are the <a href=#event-handlers id=audiotracklist-and-videotracklist-objects:event-handlers>event handlers</a> (and their corresponding <a href=#event-handler-event-type id=audiotracklist-and-videotracklist-objects:event-handler-event-type>event handler event types</a>) that must be supported, as <a href=#event-handler-idl-attributes id=audiotracklist-and-videotracklist-objects:event-handler-idl-attributes>event handler IDL attributes</a>,
Expand Down Expand Up @@ -84883,6 +84898,3 @@ <h2 id=acknowledgements class=no-num>Acknowledgements</h2>






20 changes: 16 additions & 4 deletions index
Expand Up @@ -291,7 +291,7 @@
</style><link rel=stylesheet href=status.css><body onload=init()>
<header id=head class="head with-buttons">
<p><a href=//www.whatwg.org/ class=logo><img src=/images/logo width=101 alt=WHATWG height=101></a></p>
<hgroup><h1 class=allcaps>HTML</h1><h2 id=living-standard-—-last-updated-[date:-01-jan-1901] class="no-num no-toc">Living Standard — Last Updated <span class=pubdate>5 September 2014</span></h2></hgroup>
<hgroup><h1 class=allcaps>HTML</h1><h2 id=living-standard-—-last-updated-[date:-01-jan-1901] class="no-num no-toc">Living Standard — Last Updated <span class=pubdate>8 September 2014</span></h2></hgroup>

<nav>
<div>
Expand Down Expand Up @@ -24139,6 +24139,10 @@ interface <dfn id=videotrack>VideoTrack</dfn> {
disabled is enabled, and whenever one that was enabled is disabled, the user agent must
<a href=#queue-a-task id=audiotracklist-and-videotracklist-objects:queue-a-task>queue a task</a> to <a href=#fire-a-simple-event id=audiotracklist-and-videotracklist-objects:fire-a-simple-event>fire a simple event</a> named <code id=audiotracklist-and-videotracklist-objects:event-media-change><a href=#event-media-change>change</a></code> at the <code id=audiotracklist-and-videotracklist-objects:audiotracklist-12><a href=#audiotracklist>AudioTrackList</a></code> object.</p>

<p>An audio track that has no data for a particular position on the <a href=#media-timeline id=audiotracklist-and-videotracklist-objects:media-timeline>media timeline</a>,
or that does not exist at that position, must be interpreted as being silent at that point on the
timeline.</p>

<p>The <dfn id=dom-videotracklist-selectedindex><code>VideoTrackList.selectedIndex</code></dfn> attribute
must return the index of the currently selected track, if any. If the <code id=audiotracklist-and-videotracklist-objects:videotracklist-11><a href=#videotracklist>VideoTrackList</a></code>
object does not currently represent any tracks, or if none of the tracks are selected, it must
Expand All @@ -24159,6 +24163,17 @@ interface <dfn id=videotrack>VideoTrack</dfn> {
<code id=audiotracklist-and-videotracklist-objects:videotracklist-16><a href=#videotracklist>VideoTrackList</a></code> object. This <a href=#concept-task id=audiotracklist-and-videotracklist-objects:concept-task>task</a> must be <a href=#queue-a-task id=audiotracklist-and-videotracklist-objects:queue-a-task-3>queued</a> before the <a href=#concept-task id=audiotracklist-and-videotracklist-objects:concept-task-2>task</a> that fires
the <code id=audiotracklist-and-videotracklist-objects:event-media-resize><a href=#event-media-resize>resize</a></code> event, if any.</p>

<p>A video track that has no data for a particular position on the <a href=#media-timeline id=audiotracklist-and-videotracklist-objects:media-timeline-2>media timeline</a>
must be interpreted as being fully transparent black at that point on the timeline, with the same
dimensions as the last frame before that position, or, if the position is before all the data for
that track, the same dimensions as the first frame for that track. A track that does not exist at
all at the current position must be treated as if it existed but had no data.</p>

<p class=example>For instance, if a video has a track that is only introduced after one hour of
playback, and the user selects that track then goes back to the start, then the user agent will
act as if that track started at the start of the <a href=#media-resource id=audiotracklist-and-videotracklist-objects:media-resource-10>media resource</a> but was simply
transparent until one hour in.</p>

<hr>

<p>The following are the <a href=#event-handlers id=audiotracklist-and-videotracklist-objects:event-handlers>event handlers</a> (and their corresponding <a href=#event-handler-event-type id=audiotracklist-and-videotracklist-objects:event-handler-event-type>event handler event types</a>) that must be supported, as <a href=#event-handler-idl-attributes id=audiotracklist-and-videotracklist-objects:event-handler-idl-attributes>event handler IDL attributes</a>,
Expand Down Expand Up @@ -84883,6 +84898,3 @@ if (s = prompt('What is your name?')) {






18 changes: 15 additions & 3 deletions source
Expand Up @@ -31131,6 +31131,10 @@ interface <dfn>VideoTrack</dfn> {
<span>queue a task</span> to <span>fire a simple event</span> named <code
data-x="event-media-change">change</code> at the <code>AudioTrackList</code> object.</p>

<p>An audio track that has no data for a particular position on the <span>media timeline</span>,
or that does not exist at that position, must be interpreted as being silent at that point on the
timeline.</p>

<p>The <dfn><code data-x="dom-VideoTrackList-selectedIndex">VideoTrackList.selectedIndex</code></dfn> attribute
must return the index of the currently selected track, if any. If the <code>VideoTrackList</code>
object does not currently represent any tracks, or if none of the tracks are selected, it must
Expand All @@ -31152,6 +31156,17 @@ interface <dfn>VideoTrack</dfn> {
data-x="queue a task">queued</span> before the <span data-x="concept-task">task</span> that fires
the <code data-x="event-media-resize">resize</code> event, if any.</p>

<p>A video track that has no data for a particular position on the <span>media timeline</span>
must be interpreted as being fully transparent black at that point on the timeline, with the same
dimensions as the last frame before that position, or, if the position is before all the data for
that track, the same dimensions as the first frame for that track. A track that does not exist at
all at the current position must be treated as if it existed but had no data.</p>

<p class="example">For instance, if a video has a track that is only introduced after one hour of
playback, and the user selects that track then goes back to the start, then the user agent will
act as if that track started at the start of the <span>media resource</span> but was simply
transparent until one hour in.</p>

<hr>

<p>The following are the <span>event handlers</span> (and their corresponding <span data-x="event
Expand Down Expand Up @@ -116458,6 +116473,3 @@ Consistency in editorial style:
<li><img alt="A calendar grid with a clock in the upper right
hand corner." src="sample-datetime-ui-3"></li>
-->



0 comments on commit 53c5067

Please sign in to comment.