Is there anyway to shut down a YouTube video that you've embedded on your page? It seems like they play to the end, no matter what. What I'd like is some way to use JavaScript to send a STOP signal to the YouTube player to completely disengage from the video and show whatever was there before the video was started. An END signal from the video player would also be nice, that called my JavaScript when the video finished.
By the way, I notice when I right-click the playing video that one option is "About the HTML5 Player" so apparently YouTube is using the HTML5 player. That might make the task of communicating with the player with JavaScript a bit easier.
Thanks for any ideas.