Skip to content

Commit

Permalink
[gow] (2) Fire 'waiting' after play() if playback is not immediately …
Browse files Browse the repository at this point in the history
…started.

git-svn-id: http://svn.whatwg.org/webapps@2496 340c8d12-0b0e-0410-8428-c7bf67bfef74
  • Loading branch information
Hixie committed Dec 1, 2008
1 parent 846a401 commit d17fff0
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 18 deletions.
25 changes: 17 additions & 8 deletions index
Expand Up @@ -18105,18 +18105,27 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael

</li>

<li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-paused><a href=#dom-media-paused>paused</a></code> attribute is true, it must
be set to false.</li>
<li>

<p>If the <a href=#media-element>media element</a>'s <code title=dom-media-paused><a href=#dom-media-paused>paused</a></code> attribute is true, it must
be set to false.</p>

<p>If this changed the value of <code title=dom-media-paused><a href=#dom-media-paused>paused</a></code>, the user agent must
<a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a>
called <code title=event-play><a href=#event-play>play</a></code> at the element.</p>

</li>

<li><p>The <a href=#media-element>media element</a>'s <a href=#autoplaying-flag>autoplaying
flag</a> must be set to false.</li>

<li><p>The method must then return.</li>
<li><p>If the <a href=#media-element>media element</a>'s <code title=dom-media-readyState><a href=#dom-media-readystate>readyState</a></code> attribute has a
value lower than <code title=dom-media-HAVE_FUTURE_DATA><a href=#dom-media-have_future_data>HAVE_FUTURE_DATA</a></code>, the
user agent must <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple
event</a> called <code title=event-waiting><a href=#event-waiting>waiting</a></code> at
the element.</li>

<li><p>If the fourth step above changed the value of <code title=dom-media-paused><a href=#dom-media-paused>paused</a></code>, the user agent must
<a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple event</a>
called <code title=event-play><a href=#event-play>play</a></code> at the
element.</li>
<li><p>The method must then return.</li>

</ol><hr><p>When the <dfn id=dom-media-pause title=dom-media-pause><code>pause()</code></dfn>
method is invoked, the user agent must run the following steps:</p>
Expand Down Expand Up @@ -18312,7 +18321,7 @@ interface <dfn id=htmlaudioelement>HTMLAudioElement</dfn> : <a href=#htmlmediael
<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>
attribute to change to a value lower than <code title=dom-media-HAVE_FUTURE_FRAME>HAVE_FUTURE_FRAME</code>, the
attribute to change to a value lower than <code title=dom-media-HAVE_FUTURE_DATA><a href=#dom-media-have_future_data>HAVE_FUTURE_DATA</a></code>, the
user agent must <a href=#queue-a-task>queue a task</a> to <a href=#fire-a-simple-event>fire a simple
event</a> called <code title=event-waiting><a href=#event-waiting>waiting</a></code> at
the element.</li>
Expand Down
31 changes: 21 additions & 10 deletions source
Expand Up @@ -19606,20 +19606,31 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {

</li>

<li><p>If the <span>media element</span>'s <code
title="dom-media-paused">paused</code> attribute is true, it must
be set to false.</p></li>
<li>

<p>If the <span>media element</span>'s <code
title="dom-media-paused">paused</code> attribute is true, it must
be set to false.</p>

<p>If this changed the value of <code
title="dom-media-paused">paused</code>, the user agent must
<span>queue a task</span> to <span>fire a simple event</span>
called <code title="event-play">play</code> at the element.</p>

</li>

<li><p>The <span>media element</span>'s <span>autoplaying
flag</span> must be set to false.</p></li>

<li><p>The method must then return.</p></li>
<li><p>If the <span>media element</span>'s <code
title="dom-media-readyState">readyState</code> attribute has a
value lower than <code
title="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</code>, the
user agent must <span>queue a task</span> to <span>fire a simple
event</span> called <code title="event-waiting">waiting</code> at
the element.</p></li>

<li><p>If the fourth step above changed the value of <code
title="dom-media-paused">paused</code>, the user agent must
<span>queue a task</span> to <span>fire a simple event</span>
called <code title="event-play">play</code> at the
element.</p></li>
<li><p>The method must then return.</p></li>

</ol>

Expand Down Expand Up @@ -19858,7 +19869,7 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {
playing</span> immediately before it started seeking, but seeking
caused its <code title="dom-media-readyState">readyState</code>
attribute to change to a value lower than <code
title="dom-media-HAVE_FUTURE_FRAME">HAVE_FUTURE_FRAME</code>, the
title="dom-media-HAVE_FUTURE_DATA">HAVE_FUTURE_DATA</code>, the
user agent must <span>queue a task</span> to <span>fire a simple
event</span> called <code title="event-waiting">waiting</code> at
the element.</p></li>
Expand Down

0 comments on commit d17fff0

Please sign in to comment.