Skip to content

Commit

Permalink
Allow delaying autoplay until video elements become visible
Browse files Browse the repository at this point in the history
Starting autoplay when media elements loaded is too agressive. Added
supplementary saying that the user agent may delay autoplay until video
elements become visible.
  • Loading branch information
Zhiqiang Zhang committed Jun 9, 2016
1 parent f8bc379 commit 71adc34
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion source
Original file line number Diff line number Diff line change
Expand Up @@ -32463,7 +32463,9 @@ interface <dfn>HTMLMediaElement</dfn> : <span>HTMLElement</span> {
has an <code data-x="attr-media-autoplay">autoplay</code> attribute specified, and the
<span>media element</span>'s <span>node document</span>'s <span>active sandboxing flag set</span>
does not have the <span>sandboxed automatic features browsing context flag</span> set, then
the user agent may also run the following substeps:</p>
the user agent may also run the following substeps immediately or wait until the
<span>media element</span> becomes visible in the user <span>viewport</span> if it is a
<code>video</code> element:</p>

<ol>

Expand Down Expand Up @@ -119272,6 +119274,7 @@ INSERT INTERFACES HERE
Yonathan Randolph,
Yuzo Fujishima,
Zhenbin Xu,
Zhiqiang Zhang,
Zoltan Herczeg,
and
&Oslash;istein E. Andersen,
Expand Down

0 comments on commit 71adc34

Please sign in to comment.