Extension:MediawikiPlayer
From MediaWiki.org
|
Release status: beta |
|||
|---|---|---|---|
| Implementation | Tag | ||
| Description | Embeds a media player into a wiki page | ||
| Author(s) | Swiftlytilting (FrantikTalk) | ||
| Last Version | 0.1.0 (15:43, 31 July 2009 (UTC)) | ||
| License | GNU GPL | ||
| Download | MediawikiPlayer 0.1.0 | ||
|
|||
|
check usage (experimental) |
|||
MediawikiPlayer embeds the JW FLV Media Player into a wiki page.
The JW FLV Media Player supports the following formats:
- FLV
- MP4 (H264/AAC)
- MP3
- Youtube
- Various streaming servers
- Various XML playlists
Contents |
[edit] Usage
<mediaplayer arg=value >mediaURL</mediaplayer>
arg may be any parameter or flashvar supported by the JW FLV Player.
Simple:
<mediaplayer>http://www.yourdomain.com/mediafile.flv</mediaplayer>
Using args:
<mediaplayer width='500' height='300'>http://www.yourdomain.com/mediafile.flv</mediaplayer>
Youtube:
<mediaplayer>http://www.youtube.com/watch?v=y8Kyi0WNg40</mediaplayer>
Mp3 player (simply sets default height='20'):
<mp3player>http://www.yourdomain.com/mediafile.mp3</mp3player>
[edit] Downloads
- MediawikiPlayer v0.1.0 - 15:43, 31 July 2009 (UTC)
[edit] Installation
To install this extension:
- Install MediawikiPlayer in yourwikidir/extensions/MediawikiPlayer/
- Install the following files from the JW FLV Media Player installation (available from this site) in yourwikidir/extensions/MediawikiPlayer/
- player.swf
- yt.swf (required for youtube support)
- swfobject.js
- Add the following to LocalSettings.php:
require_once("$IP/extensions/MediawikiPlayer/MediawikiPlayer.php");
[edit] Configuration parameters
[edit] $wgMWPlayerDefaultSettings
An array of the default settings for the player.
Default array:
$wgMWPlayerDefaultSettings = array(
'width' => '400',
'height' => '300',
'allowfullscreen' => 'true',
'backcolor' => 'eeeeee',
);
[edit] $wgMWPlayerDir
Directory where the media player flash and javascript files are located. Default is in the same folder as the MediawikiPlayer script.
Default:
$wgMWPlayerDir = '/w/extensions/MediawikiPlayer';