Looping Self Hosted Videos

Support Forums Verde – WP Plugin Looping Self Hosted Videos

Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #5352
    Joseph P Babi
    Participant

    How do you get a self hosted video to loop in this plugin?

    #5354
    CreaboxThemes
    Keymaster

    Hi Joseph,

    you have to edit the code. Go to the page Plugins > Editor, select the plugin Verde and look for the file video.php in the right list. In this file you have to change the line 16 to the next code:


    $content.= 'BV.show(\''.verde_top('video_internal').'\',{ambient: true, loop: true});';

    Regards

    #5356
    Joseph P Babi
    Participant

    Hi There,

    Thanks for the tip but it doesn’t work.

    http://vidgoofficial.com

    #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, 4 months ago by CreaboxThemes.
    #5360
    Joseph P Babi
    Participant

    This didn’t work either.

    #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

    #5368
    Joseph P Babi
    Participant

    Works like a charm. Thanks for everything! you guys are the best support we’ve had from themeforst!

    #5369
    CreaboxThemes
    Keymaster

    Your welcome. If you need something more, contact me 😉 Regards

Viewing 8 posts - 1 through 8 (of 8 total)
  • You must be logged in to reply to this topic.