Hi everyone,
I have tried to create a lightbox style Greensock animation complete with a Youtube embed.
Only thing i am having trouble with is when i hit the CLOSE button the video keeps playing.
From what i can tell reading forums the Youtube API changes frequently. A recent post i found mentioned to included the following in the closing code:
$('#moviePlayer').each(function(){this.contentWindow.postMessage('{"event":"command","func":"stopVideo","args":""}', '*')});
As well as adding enablejsapi=1 in the iframe of the actual embed.
Any help is much appreciated.
Cheers,
Phil Vale