Extension:Mp3Handler

Category:Unmaintained extensions#Mp3Handler Category:Extensions without an imageCategory:Extensions with invalid or missing typeCategory:Extensions without a compatibility policyCategory:Extensions with unknown license
MediaWiki extensions manual
Mp3Handler
Release status: unmaintainedCategory:Unmaintained extensions
Description MP3 Handler using dewplayer.fr
Author(s) wikt:User:Conrad.Irwin
Latest version 0.1
MediaWiki Category:Extensions without MediaWiki version
License GPL3
Download Category:Extensions in GitHub version control
Category:All extensionsCategory:Extensions not in ExtensionJson

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 [[File:MyFile.mp3]], just like for images.

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

Install and configuration

  • Download and place the file(s) in a directory called Mp3Handler in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php file:
    require_once "$IP/extensions/Mp3Handler/Mp3Handler.php";
    $wgDewplayerPath = "$wgScriptPath/extensions/Mp3Handler/dewplayer.swf"; //Path to dewplayer.swf
    $wgMp3DownloadIcon = "$wgScriptPath/extensions/Mp3Handler/download.png"; //Path to the download.png
    $wgMp3DownloadPath = "$1"; //Download path. Change this to look in a different directory (to track downloads, etc.). Set this to false to disable the download button.
    
  • Yes Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.Category:Extensions not using extension registration

If you want to make sure that "download" really does download instead of playing in the browser, you should configure your server to set the MIME type to application/octet-stream. Overriding $wgMp3DownloadPath can make this easier.

Category:Audio player extensions
Category:All extensions Category:Audio player extensions Category:Extensions in GitHub version control Category:Extensions not in ExtensionJson Category:Extensions not using extension registration Category:Extensions with invalid or missing type Category:Extensions with unknown license Category:Extensions without MediaWiki version Category:Extensions without a compatibility policy Category:Extensions without an image Category:Unmaintained extensions