Extension:Mp3Handler

(!) Note: There is an update at https://github.com/mediawiki4intranet/Mp3Handler

Once you have installed this extension, you can upload Mp3 files in the same manner as images. To display them on a page, use the syntax, just like for images.

Note: Dewplayer is not free software, though it is free of charge.

Install and configuration
Create the extensions/Mp3Handler/ directory and put Mp3Handler.php, download.png and dewplayer.swf into there.

Add  to LocalSettings.php

Also the variables have to be set in Mp3Handler.php.

The path to dewplayer.swf: $wgDewplayerPath = "$wgScriptPath/extensions/Mp3Handler/dewplayer.swf"; The path to the download.png: $wgMp3DownloadIcon = "$wgScriptPath/extensions/Mp3Handler/download.png"; If you want to make sure that "download" really does download, instead of playing in the browser, you should configure your webserver to set the mimetype to "application/octet-stream", you can override $wgMp3DownloadPath if that makes this easier. The default download path, set this to false to disable the download button, or to anything else to have the download button look in a different directory (e.g. to track downloads): $wgMp3DownloadPath = "$1";