I\'m currently trying to use the YouTube API as part of a jQuery plugin and I\'ve run into a bit of a problem.
The way the YT api works is that you load the flash pl
Here's a nice article that goes through creating a class to wrap an individual player, including dispatching events to individual objects using a similar approach to that mentioned in a previous answer.
http://blog.jcoglan.com/2008/05/22/dispatching-youtube-api-events-to-individual-javascript-objects/