|
@@ -2756,6 +2756,7 @@
|
|
|
|
|
|
var backgroundImage = slide.getAttribute( 'data-background-image' ),
|
|
var backgroundImage = slide.getAttribute( 'data-background-image' ),
|
|
backgroundVideo = slide.getAttribute( 'data-background-video' ),
|
|
backgroundVideo = slide.getAttribute( 'data-background-video' ),
|
|
|
|
+ backgroundVideoLoop = slide.hasAttribute( 'data-background-video-loop' ),
|
|
backgroundIframe = slide.getAttribute( 'data-background-iframe' );
|
|
backgroundIframe = slide.getAttribute( 'data-background-iframe' );
|
|
|
|
|
|
// Images
|
|
// Images
|
|
@@ -2765,6 +2766,9 @@
|
|
// Videos
|
|
// Videos
|
|
else if ( backgroundVideo && !isSpeakerNotes() ) {
|
|
else if ( backgroundVideo && !isSpeakerNotes() ) {
|
|
var video = document.createElement( 'video' );
|
|
var video = document.createElement( 'video' );
|
|
|
|
+ if ( backgroundVideoLoop ) {
|
|
|
|
+ video.setAttribute( 'loop', '' );
|
|
|
|
+ }
|
|
|
|
|
|
// Support comma separated lists of video sources
|
|
// Support comma separated lists of video sources
|
|
backgroundVideo.split( ',' ).forEach( function( source ) {
|
|
backgroundVideo.split( ',' ).forEach( function( source ) {
|