diff options
author | Hakim El Hattab <hakim.elhattab@gmail.com> | 2017-04-07 10:02:58 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-04-07 10:02:58 +0200 |
commit | 2289b92961912a06c14377bb5c6ff3404c1cfc4a (patch) | |
tree | d3663f21e4d8b40f0d5b4eca5b3d228de07e6012 /js | |
parent | d1d44cf6b711ca75ee1fde9d40200060c1ef4e8c (diff) | |
parent | d9dd9a92fb5fde644847eb839a3c37ff1860da07 (diff) | |
download | perl-software-in-gnu-guix-2289b92961912a06c14377bb5c6ff3404c1cfc4a.tar perl-software-in-gnu-guix-2289b92961912a06c14377bb5c6ff3404c1cfc4a.tar.gz |
Merge pull request #1851 from astone123/master
Fix data-background-video autoplay on iOS Safari
Diffstat (limited to 'js')
-rw-r--r-- | js/reveal.js | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/js/reveal.js b/js/reveal.js index c71b67d..8655f51 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -1462,7 +1462,7 @@ * target element. * * remaining height = [ configured parent height ] - [ current parent height ] - * + * * @param {HTMLElement} element * @param {number} [height] */ @@ -3113,6 +3113,8 @@ // Videos else if ( backgroundVideo && !isSpeakerNotes() ) { var video = document.createElement( 'video' ); + video.setAttribute( 'autoplay', '' ); + video.setAttribute( 'playsinline', '' ); if( backgroundVideoLoop ) { video.setAttribute( 'loop', '' ); |