I did everything indicated, and there's no options for Audio Player in the admin settings.

CommentFileSizeAuthor
#4 audio.module.txt48.07 KBjohnflower
#11 1.jpg51.29 KBAnonymous (not verified)
#11 2.jpg52.82 KBAnonymous (not verified)
#11 3.jpg54.67 KBAnonymous (not verified)
Support from Acquia helps fund testing for Drupal Acquia logo

Comments

Jorge Campo’s picture

Same issue.

savinsur’s picture

ditto, no player option.

johnflower’s picture

Try http://your.website/admin/settings/audiofield

You will also need to change lines 56, 57, & 58 in audiofield.module from

    $player1=realpath("sites") . "\all\libraries\player\audio-player\player.swf";
    $player2=realpath("sites") . "\all\libraries\player\xspf_player_slim.swf";
    $player3=realpath("sites") . "\all\libraries\player\playerSinglePackage\playerSingle.swf";

to

    $player1=realpath("sites") . "/all/libraries/player/audio-player/player.swf";
    $player2=realpath("sites") . "/all/libraries/player/xspf_player_slim.swf";
    $player3=realpath("sites") . "/all/libraries/player/playerSinglePackage/playerSingle.swf";
johnflower’s picture

FileSize
48.07 KB

I've changed this from support request to a bug report with a priority of critical. I did this because the purpose of the module is to play sound and it cannot without a change in the code.

I've attached a patched audio.module file. I also corrected some spelling and grammatical errors, and improved descriptions on the admin screen. This should fix the problems in version 6.x-1.0-beta1. You'll need to remove the '.txt' extension from the file and then drop it in your audiofield module folder

CinemaSaville’s picture

Component: User interface » Code
Category: support » bug
Priority: Normal » Critical

Is this a patch for audio.module or for audio_field.module?

savinsur’s picture


to
$player1=realpath("sites") . "/all/libraries/player/audio-player/player.swf";
$player2=realpath("sites") . "/all/libraries/player/xspf_player_slim.swf";
$player3=realpath("sites") . "/all/libraries/player/playerSinglePackage/playerSingle.swf";

making the above changes results in a blank white page.

marclauren007’s picture

Thanx alot. worked for me.

Jorge Campo’s picture

Changing to forward slashes also worked for me perfectly well.

Thanks a lot Johnflower!

Anonymous’s picture

hello guys,
this Othman Adarbeh I am the maintainer of the Audio Field module.
I am sorry for being late to answer your questions,
to get this module works fine you have to enable CCK, filefield module and also Audio field, second step is to get the audio players from the links I just wrote in README file
create folder in libraries folder under \sites\all\libraries and name it player, extract the players on that folder.
once you done with the prevois steps go to site Configration you'll see Audio Field option from there you have the ability to change your default audio player.

Im sure you dont have to change backword slash to forward slash to get it work on windows but I didnt check yet if you have to replace the back slash with forward slash on other opearating system.

please feel free to ask me anytime.

savinsur’s picture

That's better! I think I had a stray character in my copy and paste of your code.

All is working now, except one of the players has no screen / player example, just a radio button.

Need to investigate more.

Anonymous’s picture

FileSize
54.67 KB
52.82 KB
51.29 KB

sound good it is work with.to be sure thats you extract all the players in correct way I'll attach 3 snapshots it show the files you have to have it in the player directory .
make sure you have all files and folders in the photo on your player directory

johnflower’s picture

Re #5
Thank you for pointing out my error. I've fixed the offending post.

Re #9
The direction of the slashes is important for *nix based servers. If you change the sloshes to slashes it will still work on windows.

Three things that would simplify the install process:-
+ Include a small sound file with the module for testing the players.
+ Create a folder called players inside the module folder, eg sites/all/modules/audiofield/players.
+ Include at least one free player, like audio module does. 1pixelout perhaps? It's released under GPL2

The big selling point about this module is that it is lean. People can add functionality. As opposed to the audio module which for some people needs to be taken apart and rebuilt to suit their needs. Or the SWF tools modules which has a bewildering array of options.

Anonymous’s picture

thanks johnflower,
I'm going to relaese another version of audio field after make the changes of the module file.
the folder player should be in libraries folder, sites/all/libraries/player.

johnflower’s picture

Just to clarify, I'm proposing that, in the next release, the code be changed so that the players are contained within the module directory. I am not suggesting that users take my statement as an instruction on how to do things with the current module.

This would change the install process from:-

1) Download and unpack the audiofield module
2) Make a directory called libraries
3) Make a directory called players
4) Download and unpack the players
...

to:-

1) Download and unpack the audiofield module
2) Download and unpack the players
...

even better would be to include a player as the audio module does and the process is even shorter:-

1) Download and unpack the audiofield module
...

CinemaSaville’s picture

I agree with John. The easier you can make it for end users/developers the better. We need to focus on making Drupal less tech intensive. There are so many modules with little quirks, that it's easy to get confused and frustrated. The technology should serve the creativity not impede it. Thanks again for this much needed module, and play counts would be a great addition as well.

Anonymous’s picture

I agree with guys, I did think to make the audio players included in the module file, but I didn't because the license issues and when you got the audio players from their providers it will be the newer versions. I really appreciate that care about audio field module.

CinemaSaville’s picture

Thanks, Othman for the valuable contribution to the community. This was a necessary module, and you stepped up. So keep on going. I'm sure you will figure this out.

q0rban’s picture

Subscribe.

jensimmons’s picture

It looks like the change from \sites\all\libraries\players to /sites/all/libraries/players has been made — is this correct? If so, you can set the status of this issue to fixed, Othman.

Meanwhile, I am trying to get this module to work on a complex multisite install, and having /sites/all/* hardcoded into the module means it will only work in the /all/ directory.

This is a slightly different issue, however, so I am going to open a new issue. #766104: Support multisite installs

jensimmons’s picture

Title: Player not showing up » Backslashes instead of Forward slashes caused the module to not work on *nix servers
Status: Active » Needs work

You should update the documentation on the module page:

Extract the players in "\sites\all\libraries\player" folder.

to:

Extract the players in "/sites/all/libraries/player" folder.

tamerzg’s picture

Status: Needs work » Fixed

Yes issue with forward slashes was fixed in last release. Actually we are preparing new version which will have players inside audiofield module instead of libraries folder. This should also solve issue with multisite installs.

Status: Fixed » Closed (fixed)

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