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 6989311
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T19:11:43+00:00 2026-05-27T19:11:43+00:00

I would like to have it so that when I play one Vimeo video

  • 0

I would like to have it so that when I play one Vimeo video the others on the page will be paused.

I tried using the froogaloop API but had little help.

Using the current code I got it working so that when I switch tabs I can pause all videos. Now I want to make it so that when I play one video, the others pause.

Right now the event listeners for detecting ‘play’ are not working correctly. I believe that is because they need to be in the $(document).ready() but they are stuck in the first <script> area, encapsulated in $(function(){ }) which I believe is preventing it from interacting.

The code can be found here: http://www.proclinica.com/preview

This is the code I modified to control the vimeo and you can see the event listeners work here: http://jsfiddle.net/GxwEX/5/

Can someone at least help me get the event listeners to work on the proclinica website?

  • 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-05-27T19:11:43+00:00Added an answer on May 27, 2026 at 7:11 pm

    First of all, I’m not exactly sure what you’re trying to do that isn’t working. In your code (on your site), you have this:

    $('.client_logo').click(function() {
        post('pause');
    });
    

    When I click one of the logo’s, any running videos seem to pause just fine.

    If you’re trying to pause all playing videos when another is started by the user; I don’t think I’ve seen anywhere in your code (either in the JSFiddle or on the site) where you’re trying to do that. If you have; can you show us what you’ve tried to far?

    And finally, just to answer at least one part of your question… $(...) is actually just a nice shortcut for $(document).ready(...).

    Edit:

    From the documentation:

    If you’re embedding and controlling multiple players on a page, you can give each player a player_id to tell them apart:

    http://player.vimeo.com/video/VIDEO_ID?api=1&player_id=vimeoplayer

    If you’ve set it, this player_id is passed along to any event listeners, like so:

    function onMessageReceived(e) {
        var data = JSON.parse(e.data);
        var player_id = e.player_id;
    
        // Do stuff
    }
    

    You can use this to identify which video was started, and restart it after you’ve paused the others.

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

Sidebar

Related Questions

I have 5 songs in my app that I would like to play one
I have pictures that I would like to have expand across an entire page
I am using VideoView to play an mp4 video. I would like to give
I would like to have that the height of a canvas change automatically. When
I have a problem that I would like have solved via a SQL query.
I would like to have an interface that allows for a generic type public
I would like to have a QMainWindow that can change it's look at runtime,
I would like to have a tooltip that only comes up when you click
I would like to have a form that can submit to two different action
I would like to have a TextBox that supports AutoComplete and lets users type

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.