Skip to content

Commit 2a305fc

Browse files
donovangloverfoolip
authored andcommitted
Apply the rules for audio playback to media elements
1 parent 869d451 commit 2a305fc

File tree

1 file changed

+8
-12
lines changed

1 file changed

+8
-12
lines changed

source

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -31939,18 +31939,6 @@ interface <dfn>HTMLAudioElement</dfn> : <span>HTMLMediaElement</span> {};</pre>
3193931939
data-x="attr-media-controls">controls</code> attributes are <span data-x="media element
3194031940
attributes">the attributes common to all media elements</span>.</p>
3194131941

31942-
<div w-nodev>
31943-
31944-
<p>When an <code>audio</code> element is <span>potentially playing</span>, it must have its audio
31945-
data played synchronized with the <span>current playback position</span>, at the element's
31946-
<span>effective media volume</span>. The user agent must play the audio from audio tracks that
31947-
were enabled when the <span>event loop</span> last reached <a href="#step1">step 1</a>.</p>
31948-
31949-
<p>When an <code>audio</code> element is not <span>potentially playing</span>, audio must not play
31950-
for the element.</p>
31951-
31952-
</div>
31953-
3195431942
<dl class="domintro">
3195531943

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

35123+
<p>When a <span>media element</span> is <span>potentially playing</span>, its audio data played
35124+
must be synchronized with the <span>current playback position</span>, at the element's
35125+
<span>effective media volume</span>. The user agent must play the audio from audio tracks that
35126+
were enabled when the <span>event loop</span> last reached <a href="#step1">step 1</a>.</p>
35127+
35128+
<p>When a <span>media element</span> is not <span>potentially playing</span>, audio must not play
35129+
for the element.</p>
35130+
3513535131
<p><span data-x="media element">Media elements</span> that are <span>potentially playing</span>
3513635132
while not <span>in a document</span> must not play any video, but should play any audio component.
3513735133
Media elements must not stop playing just because all references to them have been removed; only

0 commit comments

Comments
 (0)