summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorTehDmitry2019-06-09 16:31:36 +0300
committerTehDmitry2019-06-09 16:31:36 +0300
commitbdda443335ceb39ea796ec185655e69e970c0698 (patch)
tree31f15df45a20ace7ac62b448b293e63614db3043
parent99c349825392e74aa15104367d73c248327eb7ba (diff)
Allowing autoplay in data-background-iframe for audio and video elements
It was restricted by «Autoplay Policy Changes»: https://developers.google.com/web/updates/2017/09/autoplay-policy-changes#iframe
-rw-r--r--js/reveal.js1
1 files changed, 1 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 0065e9b..2cb1dfb 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -3855,6 +3855,7 @@
iframe.setAttribute( 'allowfullscreen', '' );
iframe.setAttribute( 'mozallowfullscreen', '' );
iframe.setAttribute( 'webkitallowfullscreen', '' );
+ iframe.setAttribute( 'allow', 'autoplay' );
iframe.setAttribute( 'data-src', backgroundIframe );