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

  • SEARCH
  • Home
  • 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 8297929
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 8, 20262026-06-08T15:34:57+00:00 2026-06-08T15:34:57+00:00

I have an issue with the vimeo player API. I embed a Vimeo video

  • 0

I have an issue with the vimeo player API. I embed a Vimeo video in my page using an iframe, I position an image over this iframe. The image has a play button, click on this image fades out the image and then I use the following command to play the video:

froogaloop.api('play');

This works great, except for the fact that playback is a bit cranky because the video loads while playing. I would like the video to start loading on page load so that the video is (fully or partially) loaded when user clicks the image with the play button. I tried doing this by calling:

froogaloop.api('play');
froogaloop.api('pause');

sequentially on page load (see beneath). Calling play first and then pause should force the video to load while paused. The point is that the pause command directly following the play command is somehow ignored. So the video is just playing on page load.

Does someone have experience with this, is there a way to get the video to preload?

    //INIT Vimeo API
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) {
    if (element.addEventListener) {
        element.addEventListener(eventName, callback, false);
    } else {
        element.attachEvent(eventName, callback, false);
    }
}

function ready(player_id) {
    // Keep a reference to Froogaloop for this player
    var container = document.getElementById(player_id).parentNode.parentNode, 
        froogaloop = $f(player_id);

    //Call Play and pause to activate loading of whole video
    //Vimeo won't let you preload the video by default (because of bandwidth issues etc.)
    froogaloop.api('play');
    froogaloop.api('pause');

    $('#media-home a').click(function(){

        $(this).fadeOut('12000');
        froogaloop.api('play');

        return false;   

    });                

}
  • 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-08T15:34:58+00:00Added an answer on June 8, 2026 at 3:34 pm

    If you call play and pause sequentially, they will overlap on most platforms and cause pause to be ignored. To get it to work reliably, you should bind an event handler to play event and call pause in it, like this:

        Froogaloop(playerID).addEvent('play', function(playerID) {
            Froogaloop(playerID).api('pause');
            Froogaloop(playerID).removeEvent('play');
        });
        Froogaloop(playerID).api('play');
    

    Note that the event handler should unbind itself so that it is not executed when the user actually clicks play.

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

Sidebar

Related Questions

I'm using YouTube's iFrame API to embed videos in a page. Everything works great
http://beta.helpcurenow.org/media/videos/ If you go to this page, you'll see I have a main video
I am trying to fix YouTube Video iFrame Overlay and Z-Index Issue, for this
I have to show a div over the iframe which contains a flash video
The below is for an HTML5 video player event. My partner and I have
I have a flash player on a page which plays videos. I also have
Hi i have created app for ipad , it has an video files in
I have an issue similar to http://farseerphysics.codeplex.com/Thread/View.aspx?ThreadId=72364 I have a rectangle player geom, and
I have created a player that loads video FLV files and plays them in
So in a js file I have this: if(players[i].src.indexOf(http:\/\/vimeo.com/moogaloop) == 0){ var videoId =

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.