I'm sure I must be missing something painfully obvious, but I've looked and looked and tweaked and tweaked and after a month or more I'm still having to type in the path to the flash player to get video to display.

In either the editing box (source mode) or the Flash popup window I have to type "/userfiles/flash/player/player.swf?file=" in front of the file path. Surely FCKEditor and the Drupal integration weren't designed that way.

There must be some little corner of the code where I can add the player path once and for all. Anybody know where it is? I've pored and repored over both files in fckeditor/fckeditor/editor/dialog/fck_flash, but to no avail.

Help will be appreciated.

Comments

markpenny’s picture

By the way, without the player path, I still get the Flash icon in the editing box, but when I right click over the blank space where the video should be after clicking Preview or Save, I'm told there is no video. Odd, since what seems to be lacking is not the video, but the player.

wwalc’s picture

I haven't tested it and I guess it's not an universal solution, but you may try to modify modules\fckeditor\fckeditor\editor\filemanager\connectors\php\config.php and adjust $Config['FileTypesPath']['Flash'] and $Config['QuickUploadPath']['Flash']:

$Config['FileTypesPath']['Flash']		= '/userfiles/flash/player/player.swf?file=' . $Config['UserFilesPath'] . 'flash/' ;
$Config['QuickUploadPath']['Flash']		= '/userfiles/flash/player/player.swf?file=' .$Config['UserFilesPath'] ;
markpenny’s picture

Thanks for the suggestion. I tried it, but it didn't change anything for me.

How is FCKEditor supposed to work vis-a-vis the flash player? I get the impression that a player has to be installed somewhere, but I can't seem to find any instructions for uploading or naming it. The only reference I can find to what might be a player is this snippet on line 215 of fckeditor/fckeditor/editor/dialog/fck_flash/fck_flash.js (fck_flash/claims.swf), but the code is commented out, it's html, not php or java, no such file exists in that or any folder and, in any case, nothing seems to actually point to a player anywhere.

//<embed id="ePreview" src="fck_flash/claims.swf" width="100%" height="100%" style="visibility:hidden" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">

Millions of other folks have no trouble at all, but I'm still mystified.

You provided the integration, so it must work fine on your site(s). How are you set up?

Jorrit’s picture

What kind of files do you put after the ?file=

markpenny’s picture

.flv.

Here's an example. I've moved player.swf to sites/default/files so I only have to insert player.swf?= between player and video paths.

sites/default/files/player.swf?file=flash/humptydumpty.flv

Jorrit’s picture

Perhaps it should work because it's a feature, but as far as I know the path entry of the flash dialog wants you to enter a path to an swf, not an flv. An flv file is not a flash file, it's a video file.

Jorrit’s picture

Status: Active » Postponed (maintainer needs more info)
markpenny’s picture

You were right. I uploaded an swf and it worked. Unfortunately, there are no controls. I'd like to insert the file in a player. There has to be a way to do that from the Flash window without manually inserting the path.

Jorrit’s picture

Status: Postponed (maintainer needs more info) » Closed (won't fix)

That would be an FCKeditor feature. Sorry for this, but please contact the FCKeditor community in order to get this fixed.