Open main menu

Extension:AudioPlayer2

This page is a translated version of the page Extension:AudioPlayer2 and the translation is 42% complete.

Other languages:
English • ‎español • ‎日本語
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 以降
ダウンロード https://github.com/ubcudvikler/AudioPlayer2
http://www.horsensleksikon.dk/
$wgAudioPlayerPluginPath, $wgAudioPlayer2Settings
translatewiki.net で翻訳を利用できる場合は、AudioPlayer2 拡張機能の翻訳にご協力ください
使用状況とバージョン マトリクスを確認してください。

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

Contents

インストール

  • Downloadして、ファイルを extensions/ フォルダー内の AudioPlayer2 という名前のディレクトリ内に配置します。
  • 以下のコードを LocalSettings.php の末尾に追加します:
    require_once "$IP/extensions/AudioPlayer2/AudioPlayer2.php";
    
  •   完了 – ウィキの「Special:Version」に移動して、拡張機能が正しくインストールされたことを確認します。

Configuration parameters

$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']
If set, specifies the colours of the different parts of the player. See here for reference of which elements can be changed.

例:

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

タグの属性

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="タイトル">test.mp3</player>

<player artist="アーティスト名" title="タイトル">test.mp3</player>