瀏覽代碼

Merge pull request #2437 from TehDmitry/dev

Allowing autoplay in data-background-iframe for audio and video elements
Hakim El Hattab 5 年之前
父節點
當前提交
201e8316a2
共有 1 個文件被更改,包括 1 次插入0 次删除
  1. 1 0
      js/reveal.js

+ 1 - 0
js/reveal.js

@@ -3862,6 +3862,7 @@
 					iframe.setAttribute( 'allowfullscreen', '' );
 					iframe.setAttribute( 'mozallowfullscreen', '' );
 					iframe.setAttribute( 'webkitallowfullscreen', '' );
+					iframe.setAttribute( 'allow', 'autoplay' );
 
 					iframe.setAttribute( 'data-src', backgroundIframe );