From New Media Wiki

Jump to: navigation, search

Would you like to see a video play here?

Get the Flash Player to see this player.


This is made possible by using several components, allowing an FLV format video to display inline in a wiki page.

Here's a screencast on How to Embed FLV Video in MediaWiki (10 minutes, 11MB).

Here are the steps to make it work:

  • Go to the MediaWiki Extension page for dhflashplayer
  • Create a directory on your site for the player ("player" is a good name)
  • In this directory place the ufo.js script and the flvplayer.swf (or mediaplayer.swf) files
  • Place the dhflashplayer.php file in your MediaWiki extensions folder
  • Edit the dhflashplayer.php file in the following ways:
    • Look for the line "// Final Output return", and edit the path to your location of the ufo.js script.
    • Further into this section look for "var FO = { movie:" and supply the path to your movie player (flvplayer.swf) file.
    • Save this file
  • Modify the LocalSettings.php file in the root of the MediaWiki directory, by adding this line of code: include("extensions/DhFlashPlayer.php");
  • Now you can simply place the following code in your wiki editing space:
    • <dhflashplayer>file=your.flv|width=320|height=240| path=http://www.yourwebserver.com/yourmediafolder/</dhflashplayer>

You can get the ufo.js javascript at the Unobtrusive Flash Objects site.

The Flash Video Player is available at Jeroen Wijering's site. There is also a Flash Media Player that plays MP3,FLV,SWF,JPG,PNG or GIF files, also from Jeroen's site