Personal tools

Help:Mediawiki Player

From 99wiki

Jump to: navigation, search
PD Important note: When you edit this page, you agree to release your contribution into the public domain. If you don't want this or can't do this because of license restrictions, please don't edit. This page is one of the Public Domain Help Pages, which can be freely copied into fresh wiki installations and/or distributed with MediaWiki software; see Help:Contents for an overview of all pages. See Project:PD help/Copying for instructions. PD


This page explains the use of the Mediawiki Player extension, which can be used on this wiki to embed some video and audio formats.

In most cases video content is not hosted on this wiki, but is instead hosted on another site such as YouTube. The Mediawiki Player is a javascript player hosted on this site which can embed these remote videos.

Contents

[edit] Supported formats

Mediawiki Player uses JW Player 5 which can process the following video formats:

  • FLV (.flv)
  • MP4 (.mp4, .m4v, .f4v, .mov)
  • OGG (.ogv)
  • WebM (.webm)

[edit] Syntax

Because Mediawiki Player is an extension to the Mediawiki software, it uses 'tags' to embed the video in the wiki page. Tags are in pairs, with an opening tag and a closing tag.

<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.

[edit] Simple

<mediaplayer>http://www.yourdomain.com/mediafile.flv</mediaplayer>

[edit] Using arguments

<mediaplayer width='500' height='300'>http://www.yourdomain.com/mediafile.flv</mediaplayer>

[edit] Using a preview image

<mediaplayer image='http://domain.com/image.jpg'>http://www.yourdomain.com/mediafile.flv</mediaplayer>

[edit] Youtube

<mediaplayer>http://www.youtube.com/watch?v=y8Kyi0WNg40</mediaplayer>

[edit] Mp3 player

(simply sets default height='20')

<mp3player>http://www.yourdomain.com/mediafile.mp3</mp3player>

[edit] Media uploaded to the Wiki

<mediaplayer>File:UploadedMediafile.flv</mediaplayer>

[edit] Note about flashvars with dots in the name

Beginning with 0.2.5, some flashvars, such as captions.file or logo.position can be used with MediawikiPlayer. Since Mediawiki will not recognize non-alphanumeric characters in tag parameter names, a special code has been designated to signify a dot (period) character: 00.

For example, to represent captions.file, use the following code segment

The media player is loading...