JW Media Player 5 installes (by default, if you extract the zip archive, to mediaplayer-5.2.
Hard coded media player locations in wijering4/swftools_wijering4.module
swftools file handling reports "Missing sites/all/libraries/mediaplayer4/player-viral.swf" - which is simply it's way of saying it can't find player.swf, which does exist in the above mentioned directory.
If I rename the directory containing JW Media Player 5 in sites/all/libraries from mediaplayer-5.2 to mediaplayer4, it works. I am not sure if the entire uninstall/reinstall process is required because I spent about 1.5 hours stuffing around with this and tried many things.
The SWF Status page also reports "JW Player 4 Missing Download the required supporting file and upload it to sites/all/libraries/mediaplayer4/player-viral.swf.", until such time as the directory is renamed.
I have found no place I can actually still download JW Media Player 4 so the above workaround is required.
Either fixing the install docs to instruct on the directory rename or search for the mediaplayer install directory, maybe globbing or checking mediaplayer4 or mediaplayer-5.2 would do the job.
Comments
Comment #1
hmmdinger commentedJust to be clear, it sounds like you are saying JW Media Player 5 actually DOES work with SWF Tools, but only by naming the filenames to trick the current version of SWF Tools to think it's JW Media Player 4.
Are you, in fact, successfully running JW Media Player 5 with SWF Tools 2.5 (or 3) after the filename hack?
Comment #2
verta commentedI too, have tried to fool SWF Tools to run with JW Player 5, and had less luck. It seems they are not shipping the "viral" addin file player-viral.swf in the package any more. I did find version 4 with some difficulty on their site, but it as well is no longer packaged with that file, and so did not solve the problem.
My suggestion is to maybe recast this as a feature request to make the path more generic. Many modules require other tools to be downloaded, copied to module subfolders and renamed to remove version numbers, etc. so calling the folder just "mediaplayer" and "player.swf" might help moving forward - thinking for when JW Player 6 comes out in a year or so.
Comment #3
armyofda12mnkeys commentedThis is true, i dled version 5 and renamed the folder to mediaplayer4, the player-viral.swf doesnt exist...
If i download the last version 4(.7) on the archive site, it only has a player.swf and not a player-viral.swf, so can't get version 4 or 5 working. Anyone have a way passed this?
Think in the instructions on how to install the viral plugin, it says to pass "plugins = viral-2" flashvar and it auto gets through CDN the file to use, but SWFTools actually looks for the file So not sure how to approach
Comment #4
armyofda12mnkeys commentedHmmm, i dunno what I did but it works now after i refreshed maybe I didn't clear cache. Or installed Libraries module which helped find it?
Comment #5
greg.harveySounds like a feature request to me. The help page directed from the INSTALL.txt file tells you to use version 4. You can get it here:
http://www.longtailvideo.com/players/jw-player-4-for-flash
Comment #6
vm commentedJW5 player is included in the swftools download now at least -dev as of the time of this comment.
The swftools status page does complain about not finding player-viral.swf. I renamed player.swf to player-viral.swf and jwplayer 5.5 seems to work correctly.
here is mt current folder structure in sites/all/libraries
/mediaplayer-5/
player-viral.swf (renamed from player.swf)
I hesitate to mark this as fixed as I don't know if the above is a workaround or a fix. I'm guessing that swftool's /jw5/ module shoudl be looking for player.swf instead of my renaming the file?
I'll throw a copy of version 4 in to see if renaming the .swf file also works and report back since that is the version which spawned this issue.
Comment #7
mxtSubscribing.
Solution in #6 works for me, but i think the module itself have to correctly manage it, without renaming and so on.
Thank you
Comment #8
vm commented-Edited-
Scratch that.
The ability to alter the path and the file name sought for the player can be changed in emfield.module settings and was not part of the swftools.module package. Perhaps swftools could implement the same type of setting in the back end allowing the changing of the player.swf file when requried.
Comment #9
vm commentedreopening per above comment.
Comment #10
syngi commentedI had to install the JW player to 'sites/all/modules/swftools/shared' (so you get 'sites/all/modules/swftools/shared/flash_media_player/player.swf'), using Video 6.x-4.2 | SWFTools 6.x-2.5 | JW mediaplayer 5.7.
See the small installation guide I wrote #1243634: JW player installation guide.
Comment #11
webel commentedThe FlowPlayer 3 module supports flexible setting of filenames to match versions.