|
@@ -2873,6 +2873,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' ),
|
|
backgroundVideoLoop = slide.hasAttribute( 'data-background-video-loop' ),
|
|
|
|
+ backgroundVideoMuted = slide.hasAttribute( 'data-background-video-muted' ),
|
|
backgroundIframe = slide.getAttribute( 'data-background-iframe' );
|
|
backgroundIframe = slide.getAttribute( 'data-background-iframe' );
|
|
|
|
|
|
// Images
|
|
// Images
|
|
@@ -2887,6 +2888,10 @@
|
|
video.setAttribute( 'loop', '' );
|
|
video.setAttribute( 'loop', '' );
|
|
}
|
|
}
|
|
|
|
|
|
|
|
+ if( backgroundVideoMuted ) {
|
|
|
|
+ video.muted = true;
|
|
|
|
+ }
|
|
|
|
+
|
|
// Support comma separated lists of video sources
|
|
// Support comma separated lists of video sources
|
|
backgroundVideo.split( ',' ).forEach( function( source ) {
|
|
backgroundVideo.split( ',' ).forEach( function( source ) {
|
|
video.innerHTML += '<source src="'+ source +'">';
|
|
video.innerHTML += '<source src="'+ source +'">';
|