Love this module - i've been looking for a single module to support a consistent method of delivery of mp3 audio and flv video clips through drupal and this is just great.

I'm having some problems configuring the current 5.x-1.x-dev release though:
I've installed all components of the SWFTools release, and I've also downloaded and installed the wijering mediaplayer.swf into the \shared directory as per the instructions in the readme.
If I select the generic flashplayer for file handling, and the 'embed directly' option, it works great in a php node using print swf('video.flv');
However, if I select the wijering player, or if I choose any other embedding method, I get no content at all.
Any help would be much appreciated.

Comments

sime’s picture

Hi tanoshimi

Thanks for the support! Good to see the generic player is working as I

Firstly mediaplayer.swf used to go in /shared/mediaplayer.swf. However it should now go in /shared/flash_media_player/mediaplayer.swf, which means you should be able to just unzip the whole package into /shared. If there are any instructions around that show the old way, let me know and I'll change them.

(I also need add some warning if players can't be found)

Let me know
Simon

sime’s picture

(Opps, just finishing my first sentence)

Good to see the generic player is working as I only just added that, I've been working with wijering the whole time, so it will be something simple.

tanoshimi’s picture

Many thanks for the quick response. I've tried removing and reinstalling the latest version of swftools with your instructions above, but i'm still experiencing problems. Here's what I've done:

1.) downloaded and extracted latest version of swftools into \modules directory
2.) downloaded and extracted latest version of flash_media_player into \shared\flash_media_player
(so the full path to the player is modules\swftools\shared\flash_media_player\mediaplayer.swf)

created a new php node like this: (it's an absolute URL reference to the video file, does this matter?)

print swf('http://127.0.0.1/drupal-5.1/files/myvideo.flv');

Under administer -> swf tools -> file handling
If I select 'Generic FLV Player' the video plays inline in the node content
If I select 'Flash Media Player - Jeroen Wijering' I get no video in the node (and I don't get the rotating symbol from Jeroen's player either, so it looks like it can't find the player)

Other information which might be significant:
-I have two other modules which I (am attempting to!) use to manage video (and have reference to Jeroen's players) - the video module and the flash video module - could these be interfering?
-My drupal installation is not in the root directory of my webserver, but in a \drupal-5.1 subdirectory (so the absolute path to mediaplayer.swf is actually \drupal-5.1\modules\swftools\shared\flash_media_player\mediaplayer.swf) - could this affect it?

Your help is really appreciated - as is your work on this project generally!

sime’s picture

A conflict is possible with video etc is possible

1. Try turning of SWFObject and doing a direct embed instead.

2. If that fails, can you please attach the full HTML source of the page that isn't working...

Thanks

tanoshimi’s picture

It seems that disabling the [video] module does have an impact - as after doing that I can now view [swftools] videos which have been embedded with the swfobject method, although bizarrely I can no longer view [swftools] videos which have used the standard embed option....!

I'm getting myself confused, and I can't quite recreate the behaviour at the moment, so what I'm going to do is try out the [swftools] module alone on a completely fresh install of drupal to see whether I still have problems. Then I'll build back up to the configuration I have at the moment (I have quite a lot of additional modules installed, so it's hard to tell if there is a conflict what's causing it).

Thanks for your help on this - I'll report back when/if I can get reproduceable behaviour.

sime’s picture

Hey just quickly. I will be commiting a big update in the next hour or two. I think I've solved a couple of problems as well as the typos and out-of-date info.

Since you are spending valuable time on this, I'd love you to hold on for a bit.

tanoshimi’s picture

Of course - happy to do anything I can to help test out any new versions - I'll keep a look out and make sure I try the latest version.

sime’s picture

I just released a new version. You might wait an hour or two for it to be repackaged. You'll know it's new if there is a "SWF Tools Integration" module on the modules page.
Commit here: http://drupal.org/cvs?commit=65894

I think there was a problem occuring on php4 with Wijering module, maybe this is something happening to you...

I just added automatic flash display of upload.module attachments. Seems to work quite well with mediaplayer.swf. This is in the "Integration" module. If there are any other specific tricks you think would do well there, let me know.

I appreciate any specific problems you're raising. I'm aiming to get this stable in the next 2-3 weeks for an official release. My main disadvantage is (funnily enough) I'm not super experienced with flash. So any specific oddities with embedding I'm glad to acknowledge and improve.

Thanks again.
Simon

sime’s picture

Status: Active » Fixed
josoroma’s picture

Im using Drupal 5.1 in a webroot not inside a folder or subdomain.
Im using flash video, cck, content template, views...

I got swftools installed in:
sites/all/modules/swftools/shared
Also i unpack:
sites/all/modules/swftools/shared/swfobject1-5
sites/all/modules/swftools/shared/flash_media_player
sites/all/modules/swftools/shared/flash_image_rotator

I just enable the modules:
SWF Tools
SWFObject
Flash Filter
Wijering Flash
SWF Tools Integration

Inside Embedding settings:
SWFObject - Geoff Stearns ---> Is not missing

But inside File handling:
Flash Media Player - Jeroen Wijering - Missing
Generic FLV Player - Missing

How can i get not missing the following two File handling?
Flash Media Player
Generic FLV Player

Thanks in advanced.

teimel’s picture

Status: Fixed » Active

I had the same problem and I found this in swftools.admin.inc, in line 195:
$player_directory = variable_get('swftools_player_path', drupal_get_path('module', 'swftools') . '/shared') .'/';
For me it returns "/" even though the player path is blank, so I think a check is necessary, whether "swftools_player_path" is empty or not, because variable_get only uses the default value, if the variable has never been set. I'm not sure, but I guess it can be set to empty, that's why we don't get the default value.

sime’s picture

Title: Wijering players and embedding options working yet? » player paths are not correct
Status: Active » Fixed

I've updated the admin page to look for the player path with swftools_get_player_path(). This might fix things for you.

I recommend at this stage to uninstall SWF Tools completely, go to admin/build/modules/uninstall and uninstall swftools. Then reinstall. Things shouldn't change too much from here.

Please create new topics rather than re-opening old ones. I admit however that issue title was fairly general... :)

Anonymous’s picture

Status: Fixed » Closed (fixed)
kulfi’s picture

Status: Closed (fixed) » Active

Still getting

Flash Media Player - Jeroen Wijering - Missing
Generic FLV Player - Missing

Messages with SWF Tools 5.x-1.1 and FLV Media Player 3.14

bioborg’s picture

I had to use the uninstall feature at admin/modules/uninstall
then make sure all of the players were uploaded to the right place, then re-enable the module
I got the flow player working, but i think wijering wants to be in a folder called something other than wijering...
I am using swftools on 6.x-1x-dev, and FlashNode...

Stuart Greenfield’s picture

I have just committed the latest development work on SWF Tools 6. This adds a new feature in the form of a "status report". To try this download the module, then go to the Modules page and hit save to make Drupal rebuild the menus. You'll then have access to the status report under Administer > Reports > SWF Tools status.

The status page will summarise the defaults that you have configured, and will try to identify if supporting files are missing. If they're missing it will tell you where they should be in order for the module to work.

Try this out and see if it helps show why the files are showing as missing!

Note - the status page feature is currently only in SWF Tools as I'm developing it - I'll back port when it's finished.

Stuart Greenfield’s picture

@ #15

Wijering players need to be installed in swftools/shared/flash_media_player.

The new status report will give a helpful (?) message if it can't locate the player, and notify where the player file should be uploaded to on your website. At least, that's the idea!

Stuart Greenfield’s picture

Status: Active » Closed (fixed)

No follow up in a month. Closing as part of of routine queue maintenance. Re-open if necessary.