MediawikiPlayer embeds the JW FLV Media Player into a wiki page.
The JW FLV Media Player supports the following formats:
Contents |
The media player is loading...
[00:00:02]
The media player is loading...
<mediaplayer argument=value >mediaURL</mediaplayer>
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.
<mediaplayer>http://www.yourdomain.com/mediafile.flv</mediaplayer>
<mediaplayer width='500' height='300'>http://www.yourdomain.com/mediafile.flv</mediaplayer>
<nowiki><mediaplayer image='http://domain.com/image.jpg'>http://www.yourdomain.com/mediafile.flv</mediaplayer></nowiki>
<mediaplayer>http://www.youtube.com/watch?v=y8Kyi0WNg40</mediaplayer>
(simply sets default height='20')
<mp3player>http://www.yourdomain.com/mediafile.mp3</mp3player>
<mediaplayer>File:UploadedMediafile.flv</mediaplayer>
To install this extension:
require_once("$IP/extensions/MediawikiPlayer/MediawikiPlayer.php");
An array of the default settings for the player.
Default array:
$wgMWPlayerDefaultSettings = array(
'width' => '400',
'height' => '300',
'allowfullscreen' => 'true',
'backcolor' => 'eeeeee',
);
Directory where the media player flash and javascript files are located. Default is in the same folder as the MediawikiPlayer script. You don't
Default:
$wgMWPlayerDir = '/w/extensions/MediawikiPlayer';
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:
<mediaplayer MWPlayerConfig="MyCustomConfig">http://www.yourdomain.com/mediafile.flv</mediaplayer>