Business
Jobs
  • About Us
  • Solutions
    • Job Postings
      Post your job and receive qualified candidates in 48h.
    • Candidate Assessments
      500+ technical and psychological tests, plus anti-fraud.
    • Headhunting
      Tailor-made executive search from start to finish.
    • Payroll + EOR
      Payroll dispersal and EOR across 15+ LATAM countries.
  • Pricing
  • Jobs

0

240
Views
Vimeo Froogaloop API mouseover play/unload

I have an embedded Vimeo video using mouseover play and unload to start and reset on hover.

I have it working visually but I'm getting console errors:

Uncaught TypeError:... (reading 'ready')(reading 'play') (reading 'unload')

If I run it incognito, the video only starts on click and then the mouseover functions work.

Thanks!

View Codepen

Here's the HTML:

<div id="wrapper">
  <div class="card">
    <iframe class="product-card-media" id="player1" type="text/html" width="550px" height="550px" frameborder="0" src="https://player.vimeo.com/video/631577098?api=1&controls=0&amp;player_id=player1"></iframe>
  </div>

  <script src="https://ajax.googleapis.com/ajax/libs/jquery/2.2.0/jquery.min.js"></script>

  <script src="https://f.vimeocdn.com/js/froogaloop2.min.js"></script>

Here's the Javascript:

$('.product-card-media').each(function() {
  var player = $("#" + this.id);
  froogaloop = $f(player[0].id);

  player.mouseover(function() {
    froogaloop.api('play');
  }).mouseout(function() {
    froogaloop.api('unload');
  });
});

about 4 years ago · Juan Pablo Isaza
Answer question
Find remote jobs

Discover the new way to find a job!

Top jobs
Top job categories
Business
Post vacancy Pricing Sales
Legal
Terms and conditions Privacy policy
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Show me some job opportunities
There's an error!