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

Media uploaded to the Wiki
File:UploadedMediafile.flv

Downloads

 * MediawikiPlayer v0.2.0 - 05:35, 6 March 2010 (UTC)
 * MediawikiPlayer v0.2.0 - 02:03, 23 January 2010 (UTC)
 * 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';

$wgMWPlayerConfig
An array of arrays to define multiple custom configurations.

$wgMWPlayerConfig = array(    'MyCustomConfig' => array ( 'width' => '400', 'height' => '300', 'allowfullscreen' => 'false', 'backcolor' => 'cccccc', ),   'AnotherConfig' => array (  'width' => '600', 'height' => '400', 'allowfullscreen' => 'true', 'backcolor' => '000000', ) );

To invoke one of these configurations in Mediawiki: &lt;mediaplayer MWPlayerConfig="MyCustomConfig">http://www.yourdomain.com/mediafile.flv

v.0.2.1

 * Fixed a bug when loading local files stored on the wiki

v.0.2.0

 * Fixed XSS security risk.
 * Added ability to load media directly from the wiki using File:medianame.ext shortcut
 * Added ability to store various default configurations with $wgMWPlayerConfig

v.0.1.0

 * First public release