Parcourir la source

Merge pull request #1310 from teawithfruit/patch-1

solves early access error with video element
Hakim El Hattab il y a 9 ans
Parent
commit
75d38379b7
1 fichiers modifiés avec 1 ajouts et 1 suppressions
  1. 1 1
      js/reveal.js

+ 1 - 1
js/reveal.js

@@ -2619,7 +2619,7 @@
 			// Start video playback
 			var currentVideo = currentBackground.querySelector( 'video' );
 			if( currentVideo ) {
-				currentVideo.currentTime = 0;
+				if(currentVideo.currentTime > 0) currentVideo.currentTime = 0;
 				currentVideo.play();
 			}