diff --git a/index.html b/index.html index 1f940f7..221c237 100644 --- a/index.html +++ b/index.html @@ -155,6 +155,8 @@

options

required. this is the src for the img
autoplay
bool
+
muted
+
bool
loop
intnumber of times to loop, true if infinite
sclae
diff --git a/jquery.videoBG.js b/jquery.videoBG.js index e46c467..6d880d0 100644 --- a/jquery.videoBG.js +++ b/jquery.videoBG.js @@ -149,7 +149,12 @@ .css('left',0) .css('min-width','100%') .css('min-height','100%'); - + + if(options.muted) { + $video.attr('muted','muted'); + } + + if (options.autoplay) { $video.attr('autoplay',options.autoplay); } @@ -328,6 +333,7 @@ autoplay:true, loop:true, scale:false, + muted : false, position:"absolute", opacity:1, textReplacement:false,