Skip to content

Commit

Permalink
Merge pull request #2437 from TehDmitry/dev
Browse files Browse the repository at this point in the history
Allowing autoplay in data-background-iframe for audio and video elements
  • Loading branch information
hakimel committed Dec 9, 2019
2 parents bb8b4d8 + bdda443 commit 201e831
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions js/reveal.js
Original file line number Diff line number Diff line change
Expand Up @@ -3862,6 +3862,7 @@
iframe.setAttribute( 'allowfullscreen', '' );
iframe.setAttribute( 'mozallowfullscreen', '' );
iframe.setAttribute( 'webkitallowfullscreen', '' );
iframe.setAttribute( 'allow', 'autoplay' );

iframe.setAttribute( 'data-src', backgroundIframe );

Expand Down

0 comments on commit 201e831

Please sign in to comment.