I think I'm going to try and incorporate the "official" one because this one can be abused with autoplay.
And I believe the official ones allows you to disable it somehow someway...
Edit: Alright, so the official one is overly complicated (as it supports tons of unnecessary websites and file formats). I just went ahead and took their main function, which is playing the videos through an FLV player, and made that. Now the videos should be safe from autoplay, but I don't think it's possible to do the high quality versions like this, you'll just have to go to YouTube for those.