Audio5-Talk

Summary: Talk page for Audio5.
Maintainer: TomG
Users: +2 (View / Edit)

This space is for User-contributed commentary and notes. Please include your name and a date along with your comment.

Hello Tom,

I also have a problem with files from other folders or other websites. $AudioUrl does not solve all cases. If the cookbook works like an "Attach :", it should plays an audio file from anywhere if we write the relative or absolute url, or from the curent group or curent page. For example, I have mp3 from other websites I would like to play in a page, and, in the same page, mp3 from other groups. I tried per-group customisation config.php, and per-page config.php. It seems to work, but, I have a page that use the "include" directive... and the audio link that is in the included page is broken. I think the pb will be the same with Video5. Thanks.

marc, from Adiu.

Hi Marc,
Sorry, I'm off for my holidays now, i'll get back to this problem later.
TomG July 21, 2014, at 07:21 AM


Hi Tom. This doesn't work for me when the audiofile is uploaded to a group other than the current one. For example.

   (:audio myAudio.mp3:)  - works
   (:audio anotherGroup/myAudio.mp3:)  - doesn't work

In the code, I found that the recipe is always turning the path for a file located at anotherGroup/myAudio to currentGroup/myAudio, and therefore not working. Being able to link to files in other groups is pretty standard in pmwiki recipes for embedding images and even attaching audio. Would you mind adding this capability to this recipe as well? Thanks. overtones99 November 24, 2013, at 10:20 AM

Hi overtones99,

I see what you mean. To be honest, after using PmWiki for 8 years, I didn't know that it's possible to include attachments from other pages or groups.

I'll look into the problem. However, maybe not this year. - Tom, 2013-12-03

Update, maybe this year after all. :)
I just uploaded a new version which should solve your problem. - Tom, 2013-12-03

Hello Tom. You solved the previous problem, but there is another hidden behind it.

   (:audio myAudio.mp3:)  - works
   (:audio anotherGroup/otherAudio.mp3:)  -  works now (!)
   (:audio thisGroup/myAudio.mp3:)  -  doesn't work (thisGroup is the group of the 1st myAudio.mp3

Thank you for your kind help. Alan


Hallo Tom,

I just installed the latest version. It can't find the audio file, when it is located in a subfolder.
It will play...

 mywiki.com/main/uploads/Main/audio_example.ogg

But not...

 mywiki.com/main/uploads/Main/music_folder_example/audio_example.ogg

I tried using various relative paths, and " $AudioUrl " with no good results.
nikos? February 21, 2014, at 07:44 AM

Hi nikos,

PmWiki doesn't support hierarchical groups.
Please note PmWiki.UploadsAdmin too. Attachments are much easier to manage with the setting $UploadPrefixFmt = '/$Group/$Name'; (all files in a distinct directory per page).

With $UploadPrefixFmt = '/$Group/$Name'; set you could load your audio files like this:

   (:audio anotherGroup/anotherPage/audio_example:) 

However, if you need to save your audio files in a subfolder of a subfolder you could use the AudioUrl variable in config.php:

   $AudioUrl = 'http://mywiki.com/main/uploads/Main/music_folder_example/';

Now load your audio file on the wiki page:

   (:audio audio_example:)

Please let me know if nothing works out for you. - TomG, 2014-02-25


I couldn't get the widget to work. Sometimes it would just disappear, other times it just did nothing. - Scott, 2013-04-02

Hi Scott, Could you please be more specific? What does 'disappear'? - Tom, 2013-04-09

Update release 20131023: heard nothing from scott for half a year so seems to work now ;)

Talk page for the Audio5 recipe (users).