Explorar o código

always play background video from the start #1049

Hakim El Hattab %!s(int64=10) %!d(string=hai) anos
pai
achega
40f12acf2d
Modificáronse 1 ficheiros con 4 adicións e 1 borrados
  1. 4 1
      js/reveal.js

+ 4 - 1
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.