Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8403391
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T22:19:49+00:00 2026-06-09T22:19:49+00:00

I am building a slider with multiple Vimeo videos using Woo Theme’s Flexslider. I

  • 0

I am building a slider with multiple Vimeo videos using Woo Theme’s Flexslider. I am able to get the Flexslider to play and pause based on the vimeo events, using their Froogaloop ($f) library, however I cannot get the next/previous events in Flexslider to pause the video.

It works if each vimeo player is hardcoded as a variable, however I need the slider to be able to support any number of videos. See an example here: http://demo.astronautweb.co/slider/flex/vimeo-multi.html

The example on the Flexslider page hooks the slider event with $f(player) which is an object (I think). This only targets the last slide when I use it in my code. W

When I try to use Flexslider’s own slide.currentSlide, I can only target an element, not an object. This is where I have reach the upper limits of my javascript knowledge.

Here’s the code:

$(window).load(function(){  

var vimeoPlayers = document.querySelectorAll('iframe'),
    player;

for (var i = 0, length = vimeoPlayers.length; i < length; i++) {
    player = vimeoPlayers[i];
    $f(player).addEvent('ready', ready);
}

function addEvent(element, eventName, callback) {
    (element.addEventListener) ? element.addEventListener(eventName, callback, false) : element.attachEvent(eventName, callback, false);
}

function ready(player_id) {
    var froogaloop = $f(player_id);

    froogaloop.addEvent('play', function(data) {
        $('.flexslider').flexslider("pause");
    });

    froogaloop.addEvent('pause', function(data) {
        $('.flexslider').flexslider("play");
    });
}

var slider = $(".flexslider");

slider.flexslider({
    animation: "slide",
    animationLoop: true,
    slideshowSpeed: 5000,
    video: true, 
    start: function(slider){
        $('body').removeClass('loading');
    },
    before: function(slider){ 

        // this only pauses the last slide
        $f(player).api('pause');

        // this is the Flexslider API for targeting the current slide
        var currentSlide = slider.slides.eq(slider.currentSlide + 1),
            currentFrame = currentSlide.find('iframe');

        console.log(currentFrame);  
    }
});

});

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-09T22:19:51+00:00Added an answer on June 9, 2026 at 10:19 pm

    From your example on astronautweb.co it looks like you’re using an older version of the Froogaloop API. Grabbing the latest should make this a lot easier https://github.com/vimeo/player-api/tree/master/javascript

    // Enable the API on each Vimeo video
        $('iframe.vimeo-player').each(function(){
      $f(this).addEvent('ready');
    });
    
    // Call fitVid before FlexSlider initializes, so the proper initial height can be retrieved.
    $(".flexslider")
        .fitVids()
      .flexslider({
        animation: "slide",
        slideshow: false,
        animationLoop: false,
        smoothHeight: true,
        start: function(slider) {
          $('body').removeClass('loading');
        },
        before: function(slider) {
    
          currentSlide = slider.currentSlide;
          player_id = currentSlide + 1
          currentVideo = 'player_' + player_id;
    
          $f(currentVideo).api('pause');
    
        }
    });
    

    Here’s another example of the Froogaloop API 2.0

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am building an image gallery that is slider based and loads new images
I'm building a simple slider with jCycle. When you hover over the slider, I'd
I am building a website which includes a full width slider; 100% of browser
building a site using PHP and MySQL that needs to store a lot of
Good day all, I am tasked with building a slider for our site. Here
I'm building a calculator that has a slider. Everytime I slide the bar an
I'm building a wp7 Silverlight app. I need a list that is able to
I am building an application for andriod/Iphone using jquery mobile ,html5 I need to
I'm trying to create a html5 and javascript based welcome display/kiosk for a building
Iam using sencha touch for building mobile application, Ia m using card layout switch

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.