فهرست منبع

solves early access error with video element

This will maybe solve the "InvalidStateError: An attempt was made to use an object that is not, or is no longer, usable" error in firefox.
teawithfruit 10 سال پیش
والد
کامیت
b7470fa323
1فایلهای تغییر یافته به همراه1 افزوده شده و 1 حذف شده
  1. 1 1
      js/reveal.js

+ 1 - 1
js/reveal.js

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