If you're using the SWFObject API and Thickbox modules for YouTube videos you'll run into problems. It boils down to the fact that SWFObject puts it's JS in during the theme function call which doesn't get included by the page that Thickbox is launched from.

I guess the solution would be to either drop support for SWFObject or to inject it's JS during the preview? Not really sure what the answer is. I just disabled SWFObject.

CommentFileSizeAuthor
#1 emfield_370909.patch3.53 KBdrewish

Comments

drewish’s picture

Status: Active » Needs review
StatusFileSize
new3.53 KB

actually had to make some changes to the youtube.inc file to get it working with the current version of SWFObject. I tried to sync up yahoomusic.inc but didn't test those changes.

drewish’s picture

forgot to mention that the youtube changes were based off of the official recomendations: http://code.google.com/apis/youtube/js_api_reference.html#Embedding

alex ua’s picture

Status: Needs review » Reviewed & tested by the community

Thanks for this! It tested fine on my local install, so unless aaron objects I'll commit this later today.

alex ua’s picture

Status: Reviewed & tested by the community » Fixed

Committed to dev.

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for 2 weeks with no activity.