Forums

Audio player not working (33 posts)

  1. Doris Roper
    Member
    Posted 1 year ago #

    Does anyone know how to fix this? I uploaded ALL the files I extracted from Audio Player under wp-content/plugins and get the message below when I go into settings.

    Warning: include(audio-player/options-panel.php) [function.include]: failed to open stream: No such file or directory in /home/content/w/i/t/witinstitute/html/wp-content/plugins/audio-player.php on line 396

    Warning: include() [function.include]: Failed opening 'audio-player/options-panel.php' for inclusion (include_path='.:/usr/local/php5/lib/php') in /home/content/w/i/t/witinstitute/html/wp-content/plugins/audio-player.php on line 396

  2. ClaytonJames
    Member
    Posted 1 year ago #

    I think you may have incorrectly uploaded the plugin. You opened one or two folders too many. You should have uploaded the folder called "audio-player" and the file called "audio-player.php" to your plugins directory. I think you went one or two folders too deep and uploaded just the contents of the "audio-player" or "upgrade" subfolder to your plugins directory. Go here, and you will see what I mean.

    http://www.witinstitute.com/wp-content/plugins/

    You need to delete what you uploaded (relative to just this plugin's files), and start again.

  3. Doris Roper
    Member
    Posted 1 year ago #

    Thanks, I fixed it at last, but now I can't get my audio file to play. I added the name of my audio file (audio:welcome.mp3) to my post and the icon shows but I get a message saying "error opening file"
    Do you have any advice on how to get my audio message onto my site. I'm a beginner so need details.
    Your help would be appreciated.

  4. ClaytonJames
    Member
    Posted 1 year ago #

    It sounds like a simple file path error. Make sure that the settings for the player actually point to the folder with your .mp3's. You can also make the player background transparent on the same page.

    Dashboard > settings > audio-player. If you left it in default mode, you have to create a directory named audio in your blog installation folder, and place your .mp3 in there. If your folder is somewhere else, just change the default path of "/audio" to whatever your new path is. At the bottom of that page is also a tick box to make the background transparent to blend in with your page, and additional settings that customize the player appearance to your liking. That should do it.

  5. Doris Roper
    Member
    Posted 1 year ago #

    Below is what it's set to. Being new to this I don't understand "path" and where is the blog installation folder so that I can create a directory named audio?

    If you use the [audio] syntax, the plugin will assume that all your audio files are located in this folder. The path is relative to your blog root. This option does not affect your RSS enclosures or audio files with absolute URLs.

    Audio files directory:
    Recommended: /audio
    How do you want to use the audio player?
    This set of options allows you to customize when your audio players appear.

    Replace [audio] syntax (recommended for beginners)

  6. whooami
    Member
    Posted 1 year ago #

    you need to make a directory called audio.

    Create that directory inside of the same directory that your wp-content dir is in.

    In other words, you want this:

    wp-config.php
    wp-settings.php
    ... more files
    wp-admin/ <-- thats a direcory
    wp-includes/ <-- another directory
    wp-content/ <-- another
    audio/ <---- NEW DIRECTORY

    Put your mp3s in that audio directory.

  7. Doris Roper
    Member
    Posted 1 year ago #

    Hi,
    I did that and my mp3 is in that audio directory, so what do I put in my post/ page so that the audio plays...the path nmae or whatever it's called?

    I had clicked on "add audio" on the post wirting page and loaded my mp3 file in the medial library. I had thought that would do it but no...

  8. ClaytonJames
    Member
    Posted 1 year ago #

    manually enter this in your post

    [audio:nameofyourfile.mp3]

  9. ClaytonJames
    Member
    Posted 1 year ago #

    You don't want to put this in your post:

    /audio:welcome.mp3

    which is what you have now,

    replace that with this

    [audio:welcome.mp3]

  10. Doris Roper
    Member
    Posted 1 year ago #

    Thanks..I've fixed it!!

  11. ClaytonJames
    Member
    Posted 1 year ago #

    You're welcome. I'm glad we helped!

    Don't forget to be kind and mark the thread closed (resolved).

    :-)

  12. whooami
    Member
    Posted 1 year ago #

    I had clicked on "add audio" on the post wirting page and loaded my mp3 file in the medial library. I had thought that would do it but no...

    You CAN do that, but then you need to change the path that the plugin uses for your directory, and that depends on how you have your uploads set up and can complicate things.

    Assuming media is handled the same way, if you do that "sort everything by date" option when you upload, the plugin isnt ever going to know where the files are.

    If you dont do that, and everything is uploaded into one big directory, then you can just change the path.

    You referenced that path in an earlier post:

    Audio files directory:
    Recommended: /audio

    /audio is the path.

    Creating the audio directory made that path.

    For instance, if you are uploading through the media thing to a directory called uploads, the path would be :

    /wp-content/uploads

    assuming that uploads is inside wp-content/

    Like I said though, if you are used that date based option, thats not going to work out well, and youre better off just ftp'ing those mp3s ...

  13. talia
    Member
    Posted 1 year ago #

    Please clarify. I'm a newbie to this software

    manually enter this in your post
    [audio:nameofyourfile.mp3]

    is audio the instruction or is that the path where the file is? i have chosen a different folder name in my directory. so should it be

    [folder:nameofyourfile.mp3]???

    nothing is showing on my post in firefox 3.0 or IE 6.0

  14. talia
    Member
    Posted 1 year ago #

    bumping

    can someone please tell me the correct syntax for embedding an audio into a post and/or page?

  15. mosey
    Member
    Posted 1 year ago #

    @Talia:

    It is literally
    [audio:NAME OF YOUR FILE.mp3]
    so if your file is called mymp3.mp3, to embed the file it would be
    [audio:mymp3.mp3]

    If you have chosen e.g. /mp3files to be where your mp3s are located, you should change this setting in the 'Settings' part of "Audio Player" from /audio to /mp3files.

    More examples of usage can be found on the author's website

  16. talia
    Member
    Posted 1 year ago #

    hi mosey
    i had already changed the path and i had it set up correctly as [audio:xxx.mp3] but it isn't working

    i checked on firefox 3.0.1 and you can see the link above where i put a raw link but nothing shows below it where i expect to say a player embedded

    on ie6 it takes forever to open the page (probably because it's a large file). last time i looked nothing happened but i'm waiting for it to load up again to see if i have more luck

  17. mosey
    Member
    Posted 1 year ago #

    Hi Talia,

    For some reason I can't seem to see the link to the page, but in my experience, no matter how large the file is, it shouldn't actually take long to load the page - the file is only loaded after the visitor presses 'play'.

  18. talia
    Member
    Posted 1 year ago #

    That's not what's happening

    the page is http://whydietsdontworkclubmembers.com/goldmembers/2008/07/why-diets-dont-work-webclass-replay-july-2008/
    If you still remember the password you can log in to see it!

  19. talia
    Member
    Posted 1 year ago #

    I just had a look. It's been more than 3 hours and the IE6 page is still loading.

    I'm about to fire up IE7 and FF2 on the other computer to see what happens but so far nada.

    I've since added other players to the post and a download option because this is not working!

  20. mosey
    Member
    Posted 1 year ago #

    @Talia: After poking about and actually downloading the file (it took awhile) I think it's more due to the encoding rate being quite low (your mp3 file is encoded at 8kHz) and thus not compatible with the Flash player according to a comment by Martin, the developer. So the plugin is essentially working fine.

    Apparently mp3 files should be encoded at multiples of 11.025kHz to be compatible with the Flash player.

    Seeing as the file is already so massive at 8kHz, perhaps it might be n an idea to split the files up? You can embed (up to 10 max) audio players in one page apparently.

  21. talia
    Member
    Posted 1 year ago #

    that's interesting. i'll have a look at the encoding and see if i can work out what the story is with generating a faster one.

    i was also looking at breaking it up into tracks but that's not going to happen today

    thanks for your help

  22. talia
    Member
    Posted 1 year ago #

    I'll have to do some more research

    I edited the file with audacity and exported it to mp3 with LAME but the only settings are id3v1 and id3v2. i don't see where i can set the khz rate but i do see settings for the bit rate which is currently set at 128 kbps so I changed it to 192 but this will make the file much bigger

    Is that the right thing to change?

  23. talia
    Member
    Posted 1 year ago #

    hmmm i have looked at the original WAV file that i edited and it is set at 8khz so i'm not sure i can convert it to the 11.025khz

    does anyone know? it's crashing audacity when i try

  24. talia
    Member
    Posted 1 year ago #

    i also tried converting it to 16bit and uploading that but it doesn't seem to be working...

  25. mosey
    Member
    Posted 1 year ago #

    @talia: I should have clarified that this is the "sample rate", rather the "bit rate", and in Audacity, this is the value at the bottom-left corner after you load (e.g.) the mp3 file.

    There is no 11.025kHz option, so the next best thing is 22050Hz. I did a quick test and it seems to sound just fine.

  26. talia
    Member
    Posted 1 year ago #

    ok thank you for explaining that. i did find a 11.025 option on my version of audacity so i changed it to that and am exporting it to mp3 now and will upload it via ftp.

    fingers crossed :)

  27. talia
    Member
    Posted 1 year ago #

    I don't see the audio player embedded even after changing the audio to 11.025khz!

  28. mosey
    Member
    Posted 1 year ago #

    I've just tested it with a partially converted file (when saving as a new file, I 'cancelled' the conversion a few seconds into it) and ended up with a file about 900kb in size. This worked in the audio player.

    Perhaps you could try the same. If it does work, then I guess it's the file size that could be causing a problem (even though I don't think there is a reported issue) and then splitting the file might be the way forward?

    p/s: (screen-shot: http://img178.imageshack.us/img178/5573/taliaqk0.png)

  29. talia
    Member
    Posted 1 year ago #

    thanks mosey

    were you viewing it in IE or FF?

  30. talia
    Member
    Posted 1 year ago #

    nothing shows in IE6 or FF3

    i'll check the settings but i'm sure i used the standard grey colour so it can't be that is white or something silly like that

Topic Closed

This topic has been closed to new replies.

About this Topic