Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #18824

    Hi, on a website I am using angular, with the latest version of wordpress and angular, the slider on the frontpage has 4 images and one youtube video. If I click on play on the video, the slides continue to change, keeping the video playing back on the background.

    How can I fix this?

    Regards,

    Javier

    #101083

    Hi Javier,

    You’ll need to turn off autoplay for that pages slideshow options. As far as I know, there is no way for the theme to detect if a video is playing otherwise since its code and content are loaded in via a third party.

    Regards,

    Devin

    #101084

    Hmm, and is there a way to setup this slider to make it stop scrolling onmouseover?

    #101085

    You can try to replace following code in wp-content/themes/angular/js/aviapoly.js:

    start_autorotation: function()
    {
    if(slider.count)
    {
    slider.interval = setInterval(function()
    {
    if(slider.options.autorotation)
    {
    slider.trigger('switch.'+pluginNameSpace, 'next');
    }
    },
    slider.options.autorotationTimer * 1000);
    }
    },

    with:

    start_autorotation: function()
    {
    if(slider.count)
    {
    slider.interval = setInterval(function()
    {
    slider.mouseover(function() { methods.pause_slider(); });

    if(slider.options.autorotation)
    {
    slider.trigger('switch.'+pluginNameSpace, 'next');
    }
    },
    slider.options.autorotationTimer * 1000);
    }
    },

Viewing 4 posts - 1 through 4 (of 4 total)

The topic ‘Video on frontpage slider doesnt stops slide change’ is closed to new replies.