Skip to content
Permalink
Browse files
[giow] (1) Make the events around seeking more predictable and reliable.
git-svn-id: http://svn.whatwg.org/webapps@5219 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Jul 28, 2010
1 parent ffbddce commit 4bd5b3ac3a13eeeff56af0d031e2d0ed8811ce2e
Showing 3 changed files with 37 additions and 42 deletions.
@@ -26092,10 +26092,6 @@ <h5 id=seeking><span class=secno>4.8.10.9 </span>Seeking</h5>
<li><p>Set the <code title=dom-media-seeking><a href=#dom-media-seeking>seeking</a></code> IDL
attribute to true.</li>

<li id=seekUpdate><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a
simple event</a> named <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> at the
element.</li>

<li><p>If the seek was in response to a DOM method call or setting
of an IDL attribute, then continue the script. The remainder of
these steps must be run asynchronously. With the exception of the
@@ -26125,6 +26121,14 @@ <h5 id=seeking><span class=secno>4.8.10.9 </span>Seeking</h5>
<li><p>Set the <a href=#current-playback-position>current playback position</a> to the given
<var title="">new playback position</var>.</li>

<li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple
event</a> named <code title=event-media-seeking><a href=#event-media-seeking>seeking</a></code>
at the element.</li>

<li id=seekUpdate><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a
simple event</a> named <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> at the
element.</li>

<li><p>If the <a href=#media-element>media element</a> was <a href=#potentially-playing>potentially
playing</a> immediately before it started seeking, but seeking
caused its <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code>
@@ -26133,15 +26137,10 @@ <h5 id=seeking><span class=secno>4.8.10.9 </span>Seeking</h5>
<code title=event-media-waiting><a href=#event-media-waiting>waiting</a></code> at the
element.</li>

<li><p>If, when it reaches this step, the user agent has still not
established whether or not the <a href=#media-data>media data</a> for the <var title="">new playback position</var> is available, and, if it is,
decoded enough data to play back that position, then <a href=#queue-a-task>queue a
task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-seeking><a href=#event-media-seeking>seeking</a></code> at the element.</li>

<li><p>Wait until it has established whether or not the <a href=#media-data>media
data</a> for the <var title="">new playback position</var> is
available, and, if it is, until it has decoded enough data to play
back that position.</li>
<li><p>Wait until the user agent has established whether or not the
<a href=#media-data>media data</a> for the <var title="">new playback
position</var> is available, and, if it is, until it has decoded
enough data to play back that position.</li>

<li><p><a href=#await-a-stable-state>Await a stable state</a>. The <a href=#synchronous-section>synchronous
section</a> consists of all the remaining steps of this
25 index
@@ -26019,10 +26019,6 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
<li><p>Set the <code title=dom-media-seeking><a href=#dom-media-seeking>seeking</a></code> IDL
attribute to true.</li>

<li id=seekUpdate><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a
simple event</a> named <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> at the
element.</li>

<li><p>If the seek was in response to a DOM method call or setting
of an IDL attribute, then continue the script. The remainder of
these steps must be run asynchronously. With the exception of the
@@ -26052,6 +26048,14 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
<li><p>Set the <a href=#current-playback-position>current playback position</a> to the given
<var title="">new playback position</var>.</li>

<li><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a simple
event</a> named <code title=event-media-seeking><a href=#event-media-seeking>seeking</a></code>
at the element.</li>

<li id=seekUpdate><p><a href=#queue-a-task>Queue a task</a> to <a href=#fire-a-simple-event>fire a
simple event</a> named <code title=event-media-timeupdate><a href=#event-media-timeupdate>timeupdate</a></code> at the
element.</li>

<li><p>If the <a href=#media-element>media element</a> was <a href=#potentially-playing>potentially
playing</a> immediately before it started seeking, but seeking
caused its <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code>
@@ -26060,15 +26064,10 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
<code title=event-media-waiting><a href=#event-media-waiting>waiting</a></code> at the
element.</li>

<li><p>If, when it reaches this step, the user agent has still not
established whether or not the <a href=#media-data>media data</a> for the <var title="">new playback position</var> is available, and, if it is,
decoded enough data to play back that position, then <a href=#queue-a-task>queue a
task</a> to <a href=#fire-a-simple-event>fire a simple event</a> named <code title=event-media-seeking><a href=#event-media-seeking>seeking</a></code> at the element.</li>

<li><p>Wait until it has established whether or not the <a href=#media-data>media
data</a> for the <var title="">new playback position</var> is
available, and, if it is, until it has decoded enough data to play
back that position.</li>
<li><p>Wait until the user agent has established whether or not the
<a href=#media-data>media data</a> for the <var title="">new playback
position</var> is available, and, if it is, until it has decoded
enough data to play back that position.</li>

<li><p><a href=#await-a-stable-state>Await a stable state</a>. The <a href=#synchronous-section>synchronous
section</a> consists of all the remaining steps of this
29 source
@@ -28234,11 +28234,6 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
<li><p>Set the <code title="dom-media-seeking">seeking</code> IDL
attribute to true.</p></li>

<li id="seekUpdate"><p><span>Queue a task</span> to <span>fire a
simple event</span> named <code
title="event-media-timeupdate">timeupdate</code> at the
element.</p></li>

<li><p>If the seek was in response to a DOM method call or setting
of an IDL attribute, then continue the script. The remainder of
these steps must be run asynchronously. With the exception of the
@@ -28271,6 +28266,15 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
<li><p>Set the <span>current playback position</span> to the given
<var title="">new playback position</var>.</p></li>

<li><p><span>Queue a task</span> to <span>fire a simple
event</span> named <code title="event-media-seeking">seeking</code>
at the element.</p></li>

<li id="seekUpdate"><p><span>Queue a task</span> to <span>fire a
simple event</span> named <code
title="event-media-timeupdate">timeupdate</code> at the
element.</p></li>

<li><p>If the <span>media element</span> was <span>potentially
playing</span> immediately before it started seeking, but seeking
caused its <code title="dom-media-readyState">readyState</code>
@@ -28280,17 +28284,10 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
<code title="event-media-waiting">waiting</code> at the
element.</p></li>

<li><p>If, when it reaches this step, the user agent has still not
established whether or not the <span>media data</span> for the <var
title="">new playback position</var> is available, and, if it is,
decoded enough data to play back that position, then <span>queue a
task</span> to <span>fire a simple event</span> named <code
title="event-media-seeking">seeking</code> at the element.</p></li>

<li><p>Wait until it has established whether or not the <span>media
data</span> for the <var title="">new playback position</var> is
available, and, if it is, until it has decoded enough data to play
back that position.</p></li>
<li><p>Wait until the user agent has established whether or not the
<span>media data</span> for the <var title="">new playback
position</var> is available, and, if it is, until it has decoded
enough data to play back that position.</p></li>

<li><p><span>Await a stable state</span>. The <span>synchronous
section</span> consists of all the remaining steps of this

0 comments on commit 4bd5b3a

Please sign in to comment.