Posted by mrbert

Please explain why am getting this error.
Flash Media Player - Jeroen Wijering - Missing
Flash Image Rotator - Jeroen Wijering - Missing
I've read all the docs and been to your website.thanks

My file structure looks like this:

/modules/swftools/shared/flash_image_rotator
/modules/swftools/shared/flash_media_player
/modules/swftools/shared/generic
/modules/swftools/shared/README.txt
/modules/swftools/shared/swftools-default.jpg

I can see the mediaplayer.swf under the file path
modules/swftools/shared/flash_media_player/mediaplayer.swf

I uploaded the swftools from this link on drupal.
http://ftp.osuosl.org/pub/drupal/files/projects/swftools-5.x-1.0.tar.gz (cos am using version 5.1)

Comments

sime’s picture

Please create a php node type and put:

 print swftools_get_player_path();
 print_r(swftools_methods_available());

and then post the results here.

Thanks
Simon

sime’s picture

Actually this is better/shorter:

<?php
print swftools_get_player_path();
print '<br />';
print_r(swftools_methods_available(SWFTOOLS_FLV_DISPLAY));

$files = file_scan_directory(swftools_get_player_path(), '.swf');
foreach($files AS $file) {
print "<br />". $file->filename;
}

?>
sime’s picture

FWIW doing the above I get:

sites/all/modules/swftools/shared
Array
(
[wijering_mediaplayer] => Array
(
[name] => wijering_mediaplayer
[module] => wijering
[file] => file
[version] => 7
[shared_file] => flash_media_player/mediaplayer.swf
[title] => Flash Media Player - Jeroen Wijering
)

[generic_flv] => Array
(
[name] => generic_mp3
[module] => genericplayers
[file] => file_url
[shared_file] => generic/generic_flv.swf
[title] => Generic FLV Player
)

)

sites/all/modules/swftools/shared/generic/generic_flv.swf
sites/all/modules/swftools/shared/generic/generic_mp3.swf
sites/all/modules/swftools/shared/generic/skin_druplicon.swf
sites/all/modules/swftools/shared/ufo/test8.swf
sites/all/modules/swftools/shared/ufo/ufo.swf
sites/all/modules/swftools/shared/simpleviewer/viewer.swf
sites/all/modules/swftools/shared/flash_media_player/mediaplayer.swf
sites/all/modules/swftools/shared/flash_media_player/movie.swf
sites/all/modules/swftools/shared/flash_image_rotator/imagerotator.swf
sites/all/modules/swftools/shared/deng/deng/dengcontainer.swf
sites/all/modules/swftools/shared/deng/deng/deng.swf
sites/all/modules/swftools/shared/1pixelout/player.swf
sites/all/modules/swftools/shared/swfobject/expressinstall.swf
sites/all/modules/swftools/shared/swfobject/so_tester.swf
funkeyrandy’s picture

same issue here

funkeyrandy’s picture

Title: Missing players » Missing players- my code

Tony Silber's picture
Tony Silber
06/04/2007
modules/swftools/shared
Array ( [wijering_mediaplayer] => Array ( [name] => wijering_mediaplayer [module] => wijering [file] => file [version] => 7 [shared_file] => flash_media_player/mediaplayer.swf [title] => Flash Media Player - Jeroen Wijering ) [generic_flv] => Array ( [name] => generic_mp3 [module] => genericplayers [file] => file_url [shared_file] => generic/generic_flv.swf [title] => Generic FLV Player ) )
modules/swftools/shared/generic/generic_flv.swf
modules/swftools/shared/generic/generic_mp3.swf
modules/swftools/shared/generic/imagerotator.swf
modules/swftools/shared/imagerotator.swf
modules/swftools/shared/mediaplayer.swf

sime’s picture

Hi FunkeyRandy

I have:
modules/swftools/shared/flash_media_player/mediaplayer.swf

You have:
modules/swftools/shared/mediaplayer.swf

Try creating the "flash_media_player" folder and putting the player in it.

funkeyrandy’s picture

thank you so much..now everything works EXCEPT its not finding imagerotator, which is in same directory as the others!

any ideas?

sime’s picture

If should be in this directory:
modules/swftools/shared/flash_image_rotator/imagerotator.swf

funkeyrandy’s picture

thanks again!..(maybe need better doc for this)

it works for me!

hey and quick snippets for embedding uploaded images from node into playlist for rotator?

really appreciate your time

randy...ps- here is my site:
http://www.artistshousemusic.org

sime’s picture

Status: Active » Fixed

Yes, I will improve the docs, or maybe some more info on the settings page.

Snippets for making a playlist go in rotator? See second example on this link.
http://emspace.com.au/node/23
You'll have to install the SWF Tools Integration module for this to work. (it's in the swf tools package)

funkeyrandy’s picture

thanks so much! this works now..and so does the playlist *Except* i cant seem to figure out how to pass caption data from slideshow to the rotator playlist...any ideas??

thnkx again!..this is a great module

funkeyrandy’s picture

actually, what i mean is PRINTING the info...its is showing up in the xml file

Anonymous’s picture

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

Version: 5.x-1.0 » 5.x-1.1
Assigned: Unassigned » dark_globe
Category: bug » support
Status: Closed (fixed) » Postponed (maintainer needs more info)

Hey there.

Firstly, please accept my apologies for following up an already closed topic.
Secondly, I'd like you to know that I have no coding knowledge whatsoever (in any language.. hell, that's why I use Druapl to publish websites!).

Okay, I am getting the same problem as above, where SWFtools is telling me that JW's Media Player is missing, although it resides @ /sites/all/modules/swftools/shared/jw_media_player/mediaplyer.swf

I have no idea what is meant by creating a new PHP node type (although I know what a node is and how to create new nodes).

After fiddling about trying to embed Jeroen's player with/without the aid of SWFtools, I'm still totally at a loss as to how I can embed it.

If it helps, here is my URL: www.n-s-f.co.nr

Any help would be greatly appreciated, although this isn't exactly high priority stuff,

Regards,
Matt (~dark)

tanoshimi’s picture

A new php node means go to:
Create Content -> Page
and then under 'input format' make sure you select 'php code'. This allows you to run php scripts in the body of the node. So then write this in the body of the node:

<?php
print swftools_get_player_path();
print_r(swftools_methods_available());
?> 

And publish it. Write the results up here.

I'm guessing the problem might be that you appear to have both the wrong directory and the filename. Directory should be called flash_media_player and the file should be called mediaplayer.swf

holydrupal’s picture

I have the same issue :(
here is my result from the php code:

sites/all/modules/swftools/sharedArray ( [swftools_embed_method] => Array ( [lutman_replace] => Array ( [name] => lutman_replace [module] => lutman [shared_file] => lutman/jquery.flash.js [title] => jQuery Plugin - Luke Lutman ) [swfobject_replace] => Array ( [name] => swfobject_replace [module] => swfobject [shared_file] => swfobject/swfobject.js [title] => SWFObject - Geoff Stearns ) [swftools_nojavascript] => Array ( [name] => swftools_nojavascript [module] => swftools [shared_file] => [title] => Embed Flash Directly, don't use JavaScript replacement. ) ) [swftools_flv_display] => Array ( [wijering_mediaplayer] => Array ( [name] => wijering_mediaplayer [module] => wijering [file] => file [version] => 7 [shared_file] => flash_media_player/mediaplayer.swf [title] => Flash Media Player - Jeroen Wijering ) [generic_flv] => Array ( [name] => generic_flv [module] => genericplayers [file] => file_url [shared_file] => generic/generic_flv.swf [title] => Generic FLV Player ) ) [swftools_flv_display_list] => Array ( [wijering_mediaplayer] => Array ( [name] => wijering_mediaplayer [module] => wijering [file] => file [version] => 7 [shared_file] => flash_media_player/mediaplayer.swf [title] => Flash Media Player - Jeroen Wijering ) ) [swftools_mp3_display] => Array ( [wijering_mediaplayer] => Array ( [name] => wijering_mediaplayer [module] => wijering [file] => file [version] => 7 [shared_file] => flash_media_player/mediaplayer.swf [title] => Flash Media Player - Jeroen Wijering ) [generic_mp3] => Array ( [name] => generic_mp3 [module] => genericplayers [file] => file_url [shared_file] => generic/generic_mp3.swf [title] => Generic MP3 Player ) ) [swftools_mp3_display_list] => Array ( [wijering_mediaplayer] => Array ( [name] => wijering_mediaplayer [module] => wijering [file] => file [version] => 7 [shared_file] => flash_media_player/mediaplayer.swf [title] => Flash Media Player - Jeroen Wijering ) ) [swftools_media_display] => Array ( [wijering_mediaplayer] => Array ( [name] => wijering_mediaplayer [module] => wijering [file] => file [version] => 7 [shared_file] => flash_media_player/mediaplayer.swf [title] => Flash Media Player - Jeroen Wijering ) ) [swftools_media_display_list] => Array ( [wijering_mediaplayer] => Array ( [name] => wijering_mediaplayer [module] => wijering [file] => file [version] => 7 [shared_file] => flash_media_player/mediaplayer.swf [title] => Flash Media Player - Jeroen Wijering ) ) [swftools_image_display_list] => Array ( [wijering_mediaplayer] => Array ( [name] => wijering_mediaplayer [module] => wijering [file] => file [version] => 7 [shared_file] => flash_media_player/mediaplayer.swf [title] => Flash Media Player - Jeroen Wijering ) [wijering_imagerotator] => Array ( [name] => wijering_imagerotator [module] => wijering [file] => file [version] => 7 [shared_file] => flash_image_rotator/imagerotator.swf [title] => Flash Image Rotator - Jeroen Wijering ) ) [swftools_swf_display_direct] => Array ( [swftools_swf] => Array ( [name] => swftools_swf [module] => swftools [shared_file] => [title] => Use SWF file directly, no streaming through another SWF. ) [swftools_custom] => Array ( [name] => swftools_custom [module] => swftools [shared_file] => [title] => Use custom SWF file. ) ) )

I want to use imagerotator.
I am getting this error:

Get the Flash Player to see this player

in browser:
SWFObject is not defined
[Break on this error] var s2 = new SWFObject("http://127.0.0.1/drupal/sites/all/modules/swftools/share...
<p id="player2"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
	var s2 = new SWFObject("http://127.0.0.1/owj01/sites/all/modules/swftools/shared/flash_image_rotator/imagerotator.swf","rotator","400","300","7");
	s2.addVariable("file","http://127.0.0.1/owj01/sites/all/modules/swftools/shared/flash_image_rotator/playlist.xml");
	s2.addVariable("transition","random");
	s2.addVariable("shownavigation","true");
	s2.addVariable("overstretch","true");
	s2.write("player2");
</script>

lack of doc!

holydrupal’s picture

when I inserted below code:

ImageRotator using filter:
<swflist player="wijering_imagerotator"
  files="image1.jpg&&image2.jpg&&image3.jpg&&image4.jpg"
  width="400" height="400" transition="random">

a flash box appeared but I don't know how to use it or how to call my Image Rotator!?
I want to display several images in my front page in a block, is it possible with this module to show something like this feature?
Regards,

holydrupal’s picture

Status: Postponed (maintainer needs more info) » Closed (fixed)

I read all the documents at http://emspace.com.au and finally solve my problem.
the problem I had was my code and my settings at SWFtools embedding settings.

mikey081’s picture

I just want to thank Sime and everyone else who is helping out us newbies with php.

That being said, I wanna do a little rant now.

What is the deal with the geniuses who create wonderful tools like flash media player- yet the instructions on how to install it are so cryptic and/or nonexistent that only people who know what they're doing can figure it out?

Where was the readme that said I had to put the flashplayer directory in the shared folder of the swftools module? I checked the swftools directory up and down, and the jwmediaplayer site install page. No luck.

Did anyone notice that the downloaded file from the site is jw_media_player, not flash_media_player? So even if you install it in the right place, it won't work? Where's the readme on that?

I just feel that there's a lot of brilliance out here in Drupal/php/AJAX/SWF land, but it's like my old college professors. Brilliant yes, but can they freaking explain it to the masses?

I would have never figured this issue out had Sime not posted a concise, easy to follow reply on this page.

Just something to think about....

Thanks again all.

drew.p’s picture

+1 for the rant. Looking at this module with a limited vocabulary (e.g. 'Drupal' & 'Flash'), the instructions don't really instruct.

9802008’s picture

This looks like a really awesome module, thanks to sime for all the hard work! ... however I have been unable to get the imagerotator to work (just get the message 'Sorry, flash is not available.') I have tried many of the suggestions but am now out of time, so here is a temporary manual work around:

1. download image rotator http://jeroenwijering.com/?item=Flash_Image_Rotator
2. unzip it and upload it to your server - in my case I put it in the following directory: /sites/all/modules/swftools/shared/flash_image_rotator/
3. create a playlist.xml file. The download in step 1 comes with a sample. Add the playlist.xml file to /files/playlists
4. place your images in /files ,eg /files/image1.jpg, /files/image2.jpg
5. paste the following code into a block or page, choose php for the input format.

<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>

<script type="text/javascript" src="http://www.yoursite.com/sites/all/modules/swftools/shared/flash_image_rotator/swfobject.js"></script>

<script type="text/javascript">
	var s1 = new SWFObject("http://www.yoursite.com/sites/all/modules/swftools/shared/flash_image_rotator/imagerotator.swf","rotator","600","200","7");
	s1.addVariable("file","http://www.yoursite.com/files/playlists/playlist.xml");
	s1.addVariable("transition","lines");
	s1.addVariable("overstretch","false");
	s1.addVariable("backcolor","0xFFFFFF");
	s1.write("player1");
</script>


spede’s picture

modules/swftools/shared
Array ( [wijering_mediaplayer] => Array ( [name] => wijering_mediaplayer [module] => wijering [file] => file [version] => 7 [shared_file] => flash_media_player/mediaplayer.swf [title] => Flash Media Player - Jeroen Wijering ) [generic_flv] => Array ( [name] => generic_flv [module] => genericplayers [file] => file_url [shared_file] => generic/generic_flv.swf [title] => Generic FLV Player ) ) 
modules/swftools/shared/flash_media_player/movie.swf
modules/swftools/shared/flash_media_player/mediaplayer.swf
modules/swftools/shared/generic/generic_flv.swf
modules/swftools/shared/generic/generic_mp3.swf 

That's what I got. The path is correct, isn't it? "modules/swftools/shared/flash_media_player/mediaplayer.swf" - then why still "missing"?

rage_against’s picture

Hello,
First, let me thank Simon for the good job so far, as well as the rest of the guys, who have posted here their suggestions and comments.

Second, here is the issue. I am trying to create a small website for a friend of mine for a real estate agency. The real estate listings should be seen only to users, registered by the administrator of the website (ACL module for content access). The real estate listing template is as following:
- Text description
- 3 to 6 thumbnail images of the property
- Flash (1 to 3) for a panoramic view of a short video of parts of the property.

I have installed and configured the Jeroen Wijering Flash media player (and the SWFTools + SWFObject modules), as described in the post here. I also use the Flashnode module and upload flash files (*.fla) from the node creation screen.

I am having problems with the Wijering Flash Player. it is visible in IE 6.0, but not visible in Firefox 2.0 and Flock 0.9. In Opera 9.x I cannot see the website at all. Also, when I upload *.swf files they are not visible in the flash media player "screen" with play, pause buttons, length or volume control. The *.swf files are just automatic play, when the page is loaded.

I need your advices and a suggestion how to solve:
- Flash media player visible in Firefox as well
- Module with which to create a template (ConTemplate??) for the following order: 1. Text Description; 2. 3 to 6 thumbnail images; 3. 1 to 3 Flash files (if this is difficult, let it stay 1 Flash file).

Check the visibility of the current prototype in IE6.0/7.x and FF2.x:
http://www.unreal02.dependson.net/

tanoshimi’s picture

It's been a while since I last used swftools, and I've never used flashnode before, but I suspect one of the problems lies in:
I also use the Flashnode module and upload flash files (*.fla) from the node creation screen.

.fla files are flash source files - unless I'm mistaken these modules handle flash movies (*.swf)...

rage_against’s picture

yes, my mistake.
not *.fla, but *flv files.

still the media player is not visible in Firefox. works only in IE6.
how this can be solved? any idea?

depp4u’s picture

I am using SWFTools with the Wijering Media Player and Image Rotator.

So far, directly embeded SWF files work, and the Image rotator works.

I'd like for the user to have some control (play, pause, volume) - and this apparently is only available with FLV files.
I use SUPER to convert the SWF to FLV, but it won't play.

Any thoughts?

byant’s picture

dear all
I want to ask: Why after I install swftools in my localhost site, I don't get deafult player for single swf files, it's written none

please, I newbie for this one
I want to embedding swf file directly to node

sorry, I put this question in the wrong thread, I use swftools 5.x.2.1
How I can delete this comment? My problem was solved

thanks

Stuart Greenfield’s picture

SWF files are "stand alone" so they don't need a player. Therefore the correct setting is "None" since you don't want SWF Tools to do anything other than display the file.

Don't forget the documentation pages are there to help too.

PS - please avoid posting to a closed thread - it makes it difficult for me to spot new issues!