Support › Forums › Verde – WP Plugin › Looping Self Hosted Videos › Reply To: Looping Self Hosted Videos
May 25, 2016 at 6:42 am
#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 7 years, 11 months ago by CreaboxThemes.