Skip to content

Commit

Permalink
Clear the media element's autoplaying flag when autoplaying
Browse files Browse the repository at this point in the history
The problem was pointed out by Frank Liberato:
https://codereview.chromium.org/1470153004/diff/40001/third_party/WebKit/Source/core/html/HTMLMediaElement.cpp#newcode2976

"letting a video element with an autoplay attribute play to completion,
then seeking to the middle, starts playback immediately when updating
the network state. that seems really weird."
  • Loading branch information
foolip committed Nov 26, 2015
1 parent 80ba4fa commit 2b9320c
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source
Original file line number Diff line number Diff line change
Expand Up @@ -31484,6 +31484,8 @@ interface <dfn>HTMLMediaElement</dfn> : <span>HTMLElement</span> {
<li><span>Queue a task</span> to <span>fire a simple event</span> named <code
data-x="event-media-playing">playing</code> at the element.</li>

<li>Set the <span>autoplaying flag</span> to false.</li>

</ol>

<p class="note">User agents do not need to support autoplay, and it is suggested that user
Expand Down Expand Up @@ -118108,6 +118110,7 @@ INSERT INTERFACES HERE
Francis Brosnan Blazquez,
Franck 'Shift' Qu&eacute;lain,
Frank Barchard,
Frank Liberato,
Fredrik S&ouml;derquist,
&#40284;&#39164;&#25991;&#25935; (Fumitoshi Ukai),
Futomi Hatano,
Expand Down

0 comments on commit 2b9320c

Please sign in to comment.