You are executing functions instead of passing the function reference to the addEvent
method.
Froogaloop(playerID).addEvent('play', play);
Froogaloop(playerID).addEvent('seek', seek);
Froogaloop(playerID).addEvent('finish', onFinish);
Note that Froogaloop
passes the playerID
as an argument to the play
callback function, I'm not certain that it passes the playerID
as an argument to the finish
callback function (although I'm guessing it probably does).