Posts Tagged ‘flowplayer’

The FLVPlayerTwo extension doesn’t work with versions of MediaWiki later than 1.18. The extension makes use of the PHP IMAGE class and apparently this class has been removed from newer versions of MediaWiki. Administrators of newer versions of MediaWiki are therefore stuck if they wish to integrate this extension. However there is a workaround to make it function correctly. Follow the steps below and you should have .flv videos running on your wiki.

  1. Download the latest code of the FLVPlayerTwo code from the MediaWiki site.
  2. Save the code in a file named FLVPlayerTwo.php in a new directory ‘FLVPlayerTwo’ located in the extensions directory of your MediaWiki installation.
  3.  Add the following line to the end of your LocalSettings.php file.
    require_once( “$IP/extensions/FLVPlayerTwo/FLVPlayerTwo.php” );
  4. Download the latest version of Flowplayer flash from the Flowplayer site
  5. Extract the contents of downloaded file in the FLVPlayerTwo directory located in the extensions directory of your MediaWiki installation.
  6. Make sure the FLVPlayerTwo directory along with all its contents are owned by the user running your web server.
  7. Edit the FLVPlayerTwo.php file and replace the following line
    $img = new Image($title);

    with
    $this->repo = RepoGroup::singleton()->getLocalRepo();
    $img = LocalFile::newFromTitle( $title, $this->repo );

You can now use the extension using the following syntax:

<flvplayertwo width=”320″ height=”240″ autoPlay=”true” autoBuffering=”true”>File:myFile.flv</flvplayertwo>

 

Advertisements