Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[] (0) Allow non-wall-clock clocks for media playback, since in pract…
…ice UAs sync things to the soundcard's ring buffer, or similar, to avoid stuttering.

Fixing http://www.w3.org/Bugs/Public/show_bug.cgi?id=12339

git-svn-id: http://svn.whatwg.org/webapps@5976 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Apr 8, 2011
1 parent 54096b4 commit 92cf98c
Show file tree
Hide file tree
Showing 3 changed files with 36 additions and 3 deletions.
13 changes: 12 additions & 1 deletion complete.html
Expand Up @@ -27150,6 +27150,17 @@ <h5 id=offsets-into-the-media-resource><span class=secno>4.8.10.6 </span>Offsets
possible position</a> (as defined below) using the established
<a href=#media-timeline>media timeline</a>, is greater than or equal to zero.</p>

<p>The <a href=#media-timeline>media timeline</a> also has an associated clock.
Which clock is used is user-agent defined, and may be <a href=#media-resource>media
resource</a>-dependent, but it should approximate the user's wall
clock.</p>

<!--CONTROLLER-->
<p class=note>All the <a href=#media-element title="media element">media
elements</a> that share <a href=#current-media-controller>current media controller</a> use
the same clock for their <a href=#media-timeline>media timeline</a>.</p>
<!--CONTROLLER-->

<p><a href=#media-element title="media element">Media elements</a> have a
<dfn id=current-playback-position>current playback position</dfn>, which must initially (i.e. in
the absence of <a href=#media-data>media data</a>) be zero seconds. The
Expand Down Expand Up @@ -27881,7 +27892,7 @@ <h5 id=playing-the-media-resource><span class=secno>4.8.10.8 </span>Playing the
<a href=#fully-active>fully active</a> <code><a href=#document>Document</a></code>, its <a href=#current-playback-position>current
playback position</a> must increase monotonically at
<a href=#effective-playback-rate>effective playback rate</a> units of media time per unit time
of wall clock time.</p> <!--XXX will change with bug 12339 -->
of the <a href=#media-timeline>media timeline</a>'s clock.</p>

<p class=note>The <a href=#effective-playback-rate>effective playback rate</a> can be 0.0,
in which case the <a href=#current-playback-position>current playback position</a> doesn't
Expand Down
13 changes: 12 additions & 1 deletion index
Expand Up @@ -27130,6 +27130,17 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
possible position</a> (as defined below) using the established
<a href=#media-timeline>media timeline</a>, is greater than or equal to zero.</p>

<p>The <a href=#media-timeline>media timeline</a> also has an associated clock.
Which clock is used is user-agent defined, and may be <a href=#media-resource>media
resource</a>-dependent, but it should approximate the user's wall
clock.</p>

<!--CONTROLLER-->
<p class=note>All the <a href=#media-element title="media element">media
elements</a> that share <a href=#current-media-controller>current media controller</a> use
the same clock for their <a href=#media-timeline>media timeline</a>.</p>
<!--CONTROLLER-->

<p><a href=#media-element title="media element">Media elements</a> have a
<dfn id=current-playback-position>current playback position</dfn>, which must initially (i.e. in
the absence of <a href=#media-data>media data</a>) be zero seconds. The
Expand Down Expand Up @@ -27861,7 +27872,7 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
<a href=#fully-active>fully active</a> <code><a href=#document>Document</a></code>, its <a href=#current-playback-position>current
playback position</a> must increase monotonically at
<a href=#effective-playback-rate>effective playback rate</a> units of media time per unit time
of wall clock time.</p> <!--XXX will change with bug 12339 -->
of the <a href=#media-timeline>media timeline</a>'s clock.</p>

<p class=note>The <a href=#effective-playback-rate>effective playback rate</a> can be 0.0,
in which case the <a href=#current-playback-position>current playback position</a> doesn't
Expand Down
13 changes: 12 additions & 1 deletion source
Expand Up @@ -29334,6 +29334,17 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
possible position</span> (as defined below) using the established
<span>media timeline</span>, is greater than or equal to zero.</p>

<p>The <span>media timeline</span> also has an associated clock.
Which clock is used is user-agent defined, and may be <span>media
resource</span>-dependent, but it should approximate the user's wall
clock.</p>

<!--END w3c-html--><!--CONTROLLER-->
<p class="note">All the <span title="media element">media
elements</span> that share <span>current media controller</span> use
the same clock for their <span>media timeline</span>.</p>
<!--START w3c-html--><!--CONTROLLER-->

<p><span title="media element">Media elements</span> have a
<dfn>current playback position</dfn>, which must initially (i.e. in
the absence of <span>media data</span>) be zero seconds. The
Expand Down Expand Up @@ -30221,7 +30232,7 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
<span>fully active</span> <code>Document</code>, its <span>current
playback position</span> must increase monotonically at
<span>effective playback rate</span> units of media time per unit time
of wall clock time.</p> <!--XXX will change with bug 12339 -->
of the <span>media timeline</span>'s clock.</p>

<p class="note">The <span>effective playback rate</span> can be 0.0,
in which case the <span>current playback position</span> doesn't
Expand Down

0 comments on commit 92cf98c

Please sign in to comment.