WordPress.org

Forums

mb.YTPlayer for background videos
It is possible to set delay to video start? (3 posts)

  1. piratecom
    Member
    Posted 1 year ago #

    I want to increase the delay in the start of the video to 5 or 6 seconds, is this possible?

    What file and where should it be modified?. I've looked at the code and can not find it.

    I would also like to know how to increase the time the fade effect both at the beginning and end of the video.

    thanks

    https://wordpress.org/plugins/wpmbytplayer/

  2. pupunzi
    Member
    Plugin Author

    Posted 1 year ago #

    Hi,
    Actually there's no way to set a delay other than working via javascript.
    If you are skilled you can create a short script on your javascript file where you start the video after a defined timeout. You should configure the video setting the "autostart" to false; on the javascript hand, after the document ready :

    setTimeout(function(){
    jQuery("#bgndVideo_home").playYTP();
    },yourTime);

    where "#bgndVideo_home" is the ID of the homepage background video (it could be "#bgndVideo1" if on a generic page and yourTime is the time in milliseconds you want to delay.

    For the fade timing you can change on the jquery.mb.YTPlayer.js at line:
    397, 449, 657, 658, 732, 759, 766,777, 826, 1036...

    Bye,
    Matteo

  3. piratecom
    Member
    Posted 1 year ago #

    Ok,

    I´ll try it.

    Thanks a lot.

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags