i installed emfield , i have lightbox and swfobjectAPI, in the CCK i made and content type for youtube videos, but the video dont show up , when i click on Inspect element in firefox ...i see this odd code :


<iframe id="lightboxFrame" height="366" width="441" scrolling="auto" src="http://localhost/boswtol/emvideo/thickbox/%252F425/350/field_video/youtube/GiVoOY4kZVM" style="z-index: 10500;">  


i think there is something wrong , isnt it supposed to show the youtube full URL to show the video ???

any Clue please ?

Comments

aaron’s picture

Status: Active » Postponed (maintainer needs more info)

that's supposed to show the field_name where you see %252F :(

are you using a view, the normal teaser/node display, or a custom theme to display the lightbox?

salateenoo’s picture

helloo,

i use a normal node display, the video display in lightbox , i dont know why it displays this strange (%252F).

salateenoo’s picture

i forgot to say that i use the video field inside flexifield.

aaron’s picture

Title: emfield with lightbox do not play youtube embeded files ? » Lightbox/Thickbox/Shadowbox conflicts with SWFObject API
Status: Postponed (maintainer needs more info) » Active

Try without the swfobject api; I think I'm seeing the same problem.

aaron’s picture

Assigned: Unassigned » aaron
Status: Active » Needs work

I've set it up so that swfobject doesn't load for YouTube videos displayed in a modal popup (as with Lightbox/Thickbox/Shadowbox).

However, I'd rather actually load the swfobject.js in the iframe, if possible, so will rework it all to do that at some point. Additionally, this doesn't resolve jwFlash Player in modal either.

aaron’s picture

Component: Embedded Media Import » Embedded Video Field
Status: Needs work » Fixed

OK, this is fully fixed now in the dev version: the iFrame includes proper html/head/body tags, and loads the scripts. it even suppresses the admin_menu for the iframe if that module is enabled.

Status: Fixed » Closed (fixed)

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

nieuwkar’s picture

Ok, this frustrating problem I have seems to be of a similar nature. I have Lightbox2, Emfield for CCK and SWF tools installed. I have a "see-video" button in my node and when pressed, a lightbox frame opens and starts to show the video. This works fine for youtube movies but when I add an flv movie to a node in edit mode it comes out like this in full node view:

/video-cck/lightbox2/88/400/320/field_video/zzz_custom_url/http%3A/%252Fwww.embed.smm.bin.ilsemedia.nl/m/m1cztldslh8t.flv

notice the %3A/ and %252F parts?

this causes the FLV movie not to show in IE6. I have found this piece of php in swftools.module which either doesn't work or has to to be implemented elsewhere:

$encoded = str_replace('%3A', ':', $encoded);
$encoded = str_replace('%252F', '/', $encoded);

I am really stuck after a long, long search and I am wondering if there is anyone out there who can help me with this?