make background videos work on ipad #1778
This commit is contained in:
parent
981a8b98e4
commit
7daa0e04de
|
@ -3212,6 +3212,9 @@
|
|||
else {
|
||||
el.removeEventListener( 'loadeddata', startEmbeddedMedia ); // remove first to avoid dupes
|
||||
el.addEventListener( 'loadeddata', startEmbeddedMedia );
|
||||
|
||||
// `loadeddata` never fires unless we start playing on iPad
|
||||
if( /ipad/gi.test( UA ) ) el.play();
|
||||
}
|
||||
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue