Skip to content
Permalink
Browse files

[giow] (2) Try to define what happens when you have tracks that don't…

… 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 53c5067eb72590474b5191db0a677a67ea99aa3a
Showing with 47 additions and 11 deletions.
  1. +16 −4 complete.html
  2. +16 −4 index
  3. +15 −3 source
</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>
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
<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>,






20 index
</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>
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
<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>,






18 source
<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
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
<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.
You can’t perform that action at this time.