Reply To: Looping Self Hosted Videos

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

#5362
CreaboxThemes
Keymaster

Hi,

sorry but the previous code was wrong. This is the correct:


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

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

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

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

</script>';
?>

Regards