瀏覽代碼

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

TehDmitry 5 年之前
父節點
當前提交
bdda443335
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      js/reveal.js

+ 1 - 0
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 );