Skip to content

Commit

Permalink
Apply the rules for audio playback to media elements
Browse files Browse the repository at this point in the history
  • Loading branch information
donovanglover authored and foolip committed Feb 27, 2018
1 parent 869d451 commit 2a305fc
Showing 1 changed file with 8 additions and 12 deletions.
20 changes: 8 additions & 12 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -31939,18 +31939,6 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
data-x="attr-media-controls">controls</code> attributes are <span data-x="media element
attributes">the attributes common to all media elements</span>.</p>

<div w-nodev>

<p>When an <code>audio</code> element is <span>potentially playing</span>, it must have its audio
data played synchronized with the <span>current playback position</span>, at the element's
<span>effective media volume</span>. The user agent must play the audio from audio tracks that
were enabled when the <span>event loop</span> last reached <a href="#step1">step 1</a>.</p>

<p>When an <code>audio</code> element is not <span>potentially playing</span>, audio must not play
for the element.</p>

</div>

<dl class="domintro">

<dt><var>audio</var> = new <code subdfn data-x="dom-Audio">Audio</code>( [ <var>url</var> ] )</dt>
Expand Down Expand Up @@ -35132,6 +35120,14 @@ interface <dfn>MediaError</dfn> {
data-x="dom-media-playbackRate">playbackRate</code> is not 1.0, the user agent may apply pitch
adjustments to the audio as necessary to render it faithfully.</p>

<p>When a <span>media element</span> is <span>potentially playing</span>, its audio data played
must be synchronized with the <span>current playback position</span>, at the element's
<span>effective media volume</span>. The user agent must play the audio from audio tracks that
were enabled when the <span>event loop</span> last reached <a href="#step1">step 1</a>.</p>

<p>When a <span>media element</span> is not <span>potentially playing</span>, audio must not play
for the element.</p>

<p><span data-x="media element">Media elements</span> that are <span>potentially playing</span>
while not <span>in a document</span> must not play any video, but should play any audio component.
Media elements must not stop playing just because all references to them have been removed; only
Expand Down

0 comments on commit 2a305fc

Please sign in to comment.