FLV Player

From Paul Gu | Open Source | Wiki

MediaWiki Skin Questions and Comments

Please feel free to post to MediaWiki Community Forums to receive a quick answer. Your support is important, please tell me what you think.


MediaWiki FLV Player Highlights

Here is the list of Highlights:

  • Add FLV video anywhere in the article
  • Add cover image for each video
  • Resize player window according to your needs
  • Contol auto start
  • Control volume
  • Control the position of the player
  • Add your own logo (best size is 32x32 pixels or less)
  • Files can be uploaded through MediaWiki
  • Files can be absolute path (case sensitive)

MediaWiki FLV Player Control Parameters

The following are default parameters, they can be overwritten through syntax <wikiflv></wikiflv>.

  • whatever.flv|whatever.png
  • width="320"
  • height="180"
  • position="none"
  • autostart="true"
  • logo="true"
  • autostart="false"
  • volume="100"
  • repeat="false"

MediaWiki FLV Player Demos

MediaWiki FLV Demo 1

<flvplayer width="150" height="90" position="left"></flvplayer> <flvplayer width="150" height="90" position="left"></flvplayer>

File:Wonderwall.mp4

Here is the text that explains something about this video.

MediaWiki FLV Demo 2

<wikiflvplayer></wikiflvplayer> <wikiflvplayer></wikiflvplayer>

MediaWiki FLV Demo 3

<wikiflvplayer width="300" height="180" logo="true" position="right">honda_accord.flv|honda_accord.png</wikiflvplayer>

<wikiflvplayer width="300" height="180" logo="true" position="right">honda_accord.flv|honda_accord.png</wikiflvplayer>


Here is the text that explains something about this video.

MediaWiki FLV Demo 4

<wikiflvplayer width="450" height="270" logo="true">honda_accord.flv|honda_accord.png</wikiflvplayer> <wikiflvplayer width="450" height="270" logo="true">honda_accord.flv|honda_accord.png</wikiflvplayer>

MediaWiki FLV Demo 5

<wikiflvplayer>/videos/Wonderwall_by_Oasis.flv|/videos/Wonderwall_by_Oasis.jpg</wikiflvplayer> <wikiflvplayer>/videos/Wonderwall_by_Oasis.flv|/videos/Wonderwall_by_Oasis.jpg</wikiflvplayer>

MediaWiki FLV Player Download

Source code

MediaWiki FLV Player Installation

Installation

  • Add line below in config file LocalSettings.php

<source lang="php"> include_once('extensions/wikiFlvPlayer/wikiFlvPlayer.php'); </source>


MediaWiki FLV Player Configuration

The following variables need to be added inside LocalSettings.php <source lang="php"> $MW_FLV_LOGO = "your.logo.file"; // your logo displayed on Flv player, best size is 32x32 pixels or less. </source>

How to use MediaWiki FLV Player

  • Upload the Flv file and jpg file accordingly, you can do following
    • Upload through mediawiki
    • Upload to a folder through ftp client (e.g. FileZilla client)
  • Use the syntax like this
    • Use mediawiki upload: <wikiflv>FLV_FILE_NAME.flv|IMAGE_FILE_NAME.png</wikiflv>
    • Use absolute path: <wikiflv>/video.file.path/FLV_FILE_NAME.flv|/image.file.path/IMAGE_FILE_NAME.png</wikiflv>
    • You can mix them too: <wikiflv>/video.file.path/FLV_FILE_NAME.flv|IMAGE_FILE_NAME.png</wikiflv>
  • Enjoy your own video on your wiki

FAQ

I can't upload any files

If you cannot upload anything, then first enable uploads. Add this line in your LocalSettings.php file, which enables upload in mediawiki:

<source lang="php"> $wgDisableUploads = false; </source>

If you can find #$wgDisableUploads = false; in LocalSettings.php a, then uncomment it.

Allow the upload of FLV files

By default, Mediawiki still blocks many files from being uploaded for security reasons. Add this line in your LocalSettings.php file, which will allow the upload of FLV files:

<source lang="php"> $wgFileExtensions[] = 'flv'; </source>

Mime Type

There may also be an issue with the Mime Type Filter. If you still cannot upload flv files, try adding this in LocalSettings.php.

<source lang="php"> $wgVerifyMimeType = false; </source>

File size over the maximum allowed

This usually is the setting in php.ini, find line upload_max_filesize = 2M, then change it to bigger size.