Home › Forums › Design › jQuery overlay pop-window › Reply To: jQuery overlay pop-window
Cheers, it was quite interesting to have a look into the Youtube iframe API. Pretty usable actually. One quick tip because I also came across it… make sure this function does not have another wrapping function around it or else it will not fire:
function onYouTubeIframeAPIReady() {
...
}
It’s a bit of a dirty approach by them that this has to be kept global…
As one can see, I also added a check so it will only reinsert the player when the video ends in fullscreen.
B-)
Edit – I might create a version that takes care of the above mentioned issue. Seeing some good clues on SO to limit the scope of things (it’s all global now)…
That went quicker than I thought. Now it has a nice document ready wrapper around it and can be used anywhere on the page without issues. The only global function is onYouTubeIframeAPIReady
.