From 40f12acf2dc2996ab8db81f474e8903364e94d87 Mon Sep 17 00:00:00 2001 From: Hakim El Hattab Date: Tue, 6 Jan 2015 12:49:52 +0100 Subject: [PATCH] always play background video from the start #1049 --- js/reveal.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/js/reveal.js b/js/reveal.js index 3c2b1c8..e5576ed 100644 --- a/js/reveal.js +++ b/js/reveal.js @@ -2471,7 +2471,10 @@ // Start video playback var currentVideo = currentBackground.querySelector( 'video' ); - if( currentVideo ) currentVideo.play(); + if( currentVideo ) { + currentVideo.currentTime = 0; + currentVideo.play(); + } // Don't transition between identical backgrounds. This // prevents unwanted flicker.