Reply To: Looping Self Hosted Videos

Support Forums Verde – WP Plugin Looping Self Hosted Videos Reply To: Looping Self Hosted Videos

#5358
CreaboxThemes
Keymaster

Ok,

edit the same file and copy all the next code:


<?php
$content = '
<script type="text/javascript">

if( !device.tablet() && !device.mobile() ) {

(function($) {
  "use strict";
	// initialize BigVideo
    var BV = new $.BigVideo();
	BV.init();
	';
if (verde_top('video_sound') == 'enable'){
	$content.= 'BV.show(\''.verde_top('video_internal').'\',{loop:true});';
	}else{
	$content.= 'BV.show(\''.verde_top('video_internal').'\',{ambient:true,loop:true});';
	}	
$content.='})(jQuery);

} else {
	
	$(\'#bgimg\').addClass(\'poster-image\');
	
}

</script>';
?>

Regards

  • This reply was modified 4 years, 11 months ago by CreaboxThemes.