aboutsummaryrefslogtreecommitdiff
path: root/js/reveal.js
diff options
context:
space:
mode:
authorHakim El Hattab <hakim.elhattab@gmail.com>2017-01-31 16:24:06 +0100
committerHakim El Hattab <hakim.elhattab@gmail.com>2017-01-31 16:24:06 +0100
commit7daa0e04de7d0ab2bae3159faae0b18d4eb3c8d3 (patch)
tree6f7842093303958b80f106623a98b300879b3d99 /js/reveal.js
parent981a8b98e4572b65d8a908e42c45add8215df018 (diff)
downloadfosdem-2018-presentation-7daa0e04de7d0ab2bae3159faae0b18d4eb3c8d3.tar
fosdem-2018-presentation-7daa0e04de7d0ab2bae3159faae0b18d4eb3c8d3.tar.gz
make background videos work on ipad #1778
Diffstat (limited to 'js/reveal.js')
-rw-r--r--js/reveal.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 9b0768a..c2888e8 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -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();
}
}