I don't know a whole lot about jquery but I'm running prettyphoto on my website. I was wondering if anyone knew of a way that I can make it close on it's own after a YouTube video has played. I'm using prettyphoto for just the YouTube video so there's nothing else for it to scroll through. Does anyone know what I could do to make this happen?
check the google documentation for youtube player events, then check the prettyphoto documentation on how to close the window, then effectively write a line of code which says video.onFinish = function() { prettyphoto.close() } - sorry I can't be more help, but if I was then I'd go and look at that documentation and tell you, rather than you learn yourself - should only take 2 minutes.
I have read the documentation but I have no idea where to put this in the prettyphoto script. I've tried in a few spots and it doesn't work. I think I'll have to hire someone for this job. Thanks anyways.