Open main menu


Other languages:
English • ‎español • ‎日本語
MediaWiki extensions manual
OOjs UI icon advanced.svg
Release status: stable
Implementation Tag
Description Provides embedded audio playback using WordPress Audio Player Standalone.
Author(s) Ulrich Christensen (UChristensentalk)
Latest version 1.1 (2012-07-05)
MediaWiki 1.19+
License GNU General Public License 2.0 or later
$wgAudioPlayerPluginPath, $wgAudioPlayer2Settings
Translate the AudioPlayer2 extension if it is available at
Check usage and version matrix.

The AudioPlayer2 extension lets you embed MP3 audio files on your wiki via WordPress Audio Player Standalone.


  • Download and place the file(s) in a directory called AudioPlayer2 in your extensions/ folder.
  • Add the following code at the bottom of your LocalSettings.php:
    require_once "$IP/extensions/AudioPlayer2/AudioPlayer2.php";
  •   Done – Navigate to Special:Version on your wiki to verify that the extension is successfully installed.

Configuration parametersEdit

Update 5/16/2018: This step is unclear and the external link is now broken.

Set the path to WordPress Audio Player Standalone files which must be installed separately for this extension to work.

If set, specifies the width of the Flash player when opened. (default width: 380)


$wgAudioPlayer2Settings['width'] = 380;
If set, specifies the list of tags that this extension should handle, otherwise "player" is used. This setting is for interoperability and easy drop-in replacement.


$wgAudioPlayer2Settings['tags'] = array('player','audioplayer');
If set, specifies the colours of the different parts of the player.


$wgAudioPlayer2Settings['colours']['leftbg'] = '00F80F';


The <player> (or whichever you choose) tag can be used to embed MP3 audio content into wiki pages:


Tag attributesEdit

The following attributes can be used in <player> tags:

sets/overwrites the title of the file being played. If not specified, ID3 data if available is used.
set/overwrites the artist name for the file being played. If not specified, ID3 data if available is used.
<player title="Title">test.mp3</player>

<player artist="Artist" title="Title">test.mp3</player>