Extension:MediawikiPlayer

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

Usage
mediaURL

arg may be any parameter or flashvar supported by the JW FLV Player. Simple: http://www.yourdomain.com/mediafile.flv

Using args: http://www.yourdomain.com/mediafile.flv

Youtube: http://www.youtube.com/watch?v=y8Kyi0WNg40

Mp3 player (simply sets default height='20'): http://www.yourdomain.com/mediafile.mp3

Downloads

 * MediawikiPlayer v0.1.0 - 15:43, 31 July 2009 (UTC)

Installation
To install this extension:

require_once("$IP/extensions/MediawikiPlayer/MediawikiPlayer.php");
 * 1) Install MediawikiPlayer in yourwikidir/extensions/MediawikiPlayer/
 * 2) Install the following files from the JW FLV Media Player installation (available from this site) in yourwikidir/extensions/MediawikiPlayer/
 * 3) * player.swf
 * 4) * yt.swf (required for youtube support)
 * 5) * swfobject.js
 * 6) Add the following to LocalSettings.php:

$wgMWPlayerDefaultSettings
An array of the default settings for the player.

Default array:

$wgMWPlayerDefaultSettings = array(              'width' => '400',               'height' => '300',               'allowfullscreen' => 'true',               'backcolor' => 'eeeeee',               );

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