aboutsummaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
Diffstat (limited to 'js')
-rw-r--r--js/reveal.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/js/reveal.js b/js/reveal.js
index 65ac29f..5a3f1af 100644
--- a/js/reveal.js
+++ b/js/reveal.js
@@ -2590,6 +2590,7 @@
var backgroundImage = slide.getAttribute( 'data-background-image' ),
backgroundVideo = slide.getAttribute( 'data-background-video' ),
+ backgroundVideoLoop = slide.hasAttribute( 'data-background-video-loop' ),
backgroundIframe = slide.getAttribute( 'data-background-iframe' );
// Images
@@ -2599,6 +2600,9 @@
// Videos
else if ( backgroundVideo && !isSpeakerNotes() ) {
var video = document.createElement( 'video' );
+ if ( backgroundVideoLoop ) {
+ video.setAttribute( 'loop', '' );
+ }
// Support comma separated lists of video sources
backgroundVideo.split( ',' ).forEach( function( source ) {