So, the first thing you need to capture a player is with the special $f Froogaloop selector. If you look at playground.html , this is done on line 223:
froogaloop = $f(player_id)
In addition, you should call .api('play') , not just ('play') . The full code might look something like this:
$(document).ready(function(){ var player = $("#player_7256322"); froogaloop = $f(player[0].id); player.mouseover(function(){ froogaloop.api('play'); }).mouseout(function(){ froogaloop.api('pause'); }); });
Fiddle fixed:
http://jsfiddle.net/g2Z2B/1/
source share