Extension:AudioPlayer2/zh

This page is a translated version of the page Extension:AudioPlayer2 and the translation is 36% complete.
Other languages:
English • ‎español • ‎français • ‎中文 • ‎日本語
MediaWiki扩展手册
OOjs UI icon advanced.svg
AudioPlayer2
发布状态: 未维护
实现 标签
描述 Provides embedded audio playback using WordPress Audio Player Standalone.
作者 Ulrich Christensen (UChristensentalk)
最新版本 1.1 (2012-07-05)
MediaWiki 1.19+
许可协议 GNU通用公眾授權條款2.0 or later
下载
例子 http://www.horsensleksikon.dk/
$wgAudioPlayerPluginPath, $wgAudioPlayer2Settings
翻译AudioPlayer2扩展如果在translatewiki.net可用
检查使用和版本矩阵。

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

安装

  • Make sure that the required software is installed before you continue!
  • 下载文件,并将其放置在您extensions/文件夹中的AudioPlayer2目录内。

致使用MediaWiki 1.24或更早版本的用户:

上面的说明介绍的是安装此扩展的新方法,它使用wfLoadExtension()。 如果您需要在早期版本(MediaWiki 1.24和更早版本)中安装此扩展,而不是wfLoadExtension( 'AudioPlayer2' );,您需要使用:

require_once "$IP/extensions/AudioPlayer2/AudioPlayer2.php";

配置

配置参数

$wgAudioPlayerPluginPath
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.

$wgAudioPlayer2Settings['width']
If set, specifies the width of the Flash player when opened. (默认宽度: 380)

示例:

$wgAudioPlayer2Settings['width'] = 380;
$wgAudioPlayer2Settings['tags']
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');
$wgAudioPlayer2Settings['colours']
如果设置,则指定播放器不同部分的颜色。

示例:

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

用法

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

<player>test.mp3</player>

Tag attributes

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

title
sets/overwrites the title of the file being played. If not specified, ID3 data if available is used.
artist
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>