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

The argument may be any parameter or "flashvar" supported by the JW FLV Player. See the list of flashvars for more information regarding options of the JW FLV player.

Simple
http://www.yourdomain.com/mediafile.flv

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

Using a preview image
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';