From 71adc34933bf8425f90e79aa83296407913f2835 Mon Sep 17 00:00:00 2001
From: Zhiqiang Zhang
Date: Thu, 9 Jun 2016 15:03:09 +0100
Subject: [PATCH] Allow delaying autoplay until video elements become visible
Starting autoplay when media elements loaded is too agressive. Added
supplementary saying that the user agent may delay autoplay until video
elements become visible.
---
source | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/source b/source
index 95ef8cf904a..7db48784e5c 100644
--- a/source
+++ b/source
@@ -32463,7 +32463,9 @@ interface HTMLMediaElement : HTMLElement {
has an autoplay
attribute specified, and the
media element's node document's active sandboxing flag set
does not have the sandboxed automatic features browsing context flag set, then
- the user agent may also run the following substeps:
+ the user agent may also run the following substeps immediately or wait until the
+ media element becomes visible in the user viewport if it is a
+ video
element:
@@ -119272,6 +119274,7 @@ INSERT INTERFACES HERE
Yonathan Randolph,
Yuzo Fujishima,
Zhenbin Xu,
+ Zhiqiang Zhang,
Zoltan Herczeg,
and
Øistein E. Andersen,