mirror of
https://github.com/hakimel/reveal.js.git
synced 2025-08-11 00:55:01 +02:00
make background videos work on ipad #1778
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
||||
}
|
||||
|
Reference in New Issue
Block a user