소스 검색

always play background video from the start #1049

Hakim El Hattab 10 년 전
부모
커밋
40f12acf2d
1개의 변경된 파일4개의 추가작업 그리고 1개의 파일을 삭제
  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.