1
0
Fork 0

Merge pull request #1851 from astone123/master

Fix data-background-video autoplay on iOS Safari
This commit is contained in:
Hakim El Hattab 2017-04-07 10:02:58 +02:00 committed by GitHub
commit 2289b92961
1 changed files with 3 additions and 1 deletions

View File

@ -3113,6 +3113,8 @@
// Videos // Videos
else if ( backgroundVideo && !isSpeakerNotes() ) { else if ( backgroundVideo && !isSpeakerNotes() ) {
var video = document.createElement( 'video' ); var video = document.createElement( 'video' );
video.setAttribute( 'autoplay', '' );
video.setAttribute( 'playsinline', '' );
if( backgroundVideoLoop ) { if( backgroundVideoLoop ) {
video.setAttribute( 'loop', '' ); video.setAttribute( 'loop', '' );