Extension:FLVPlayerTwo

From MediaWiki.org
Jump to: navigation, search
MediaWiki extensions manual - list
Crystal Clear action run.png
FLVPlayer

Release status: unknown

Implementation Tag
Description This extension allows the display of flv movies within a wiki using the FlowPlayer FLV movie player (Version 3.1.0) - It is based upon FLVPlayer.
Author(s) Raju Shah
Last version 1.1
License No license specified
Download FLVPlayerTwo code v1.01 (latest)
Check usage (experimental)

The FLVPlayerTwo extension allows the display of flv movies within a wiki using the FlowPlayer FLV movie player. It is based upon the FLVPlayer extension, and is a much simpler version. Please feel free to improve it.

Contents

[edit] Syntax

[edit] Base Syntax

<flvplayertwo width="320" height="240" autoPlay="false" autoBuffering="false">filename.flv</flvplayertwo>

  • width: default = 320
  • height: default = 240
  • autoPlay: default = false
  • autoBuffering: default = false

I find the defaults to be sufficient; <flvplayertwo>filename.flv</flvplayertwo>

[edit] Attribute Reference

The following attribues are a subset of the configurable flashvars that is used by FlowPlayer.

  • width=px or % (Specify the width of the movie when displayed)
  • height=px or a% (Specify the height of the movie when displayed)
  • autoPlay=true/false (Automatically start playing the movie, default:false)
  • autoBuffering=true/false (Automatically start buffering the movie on page load, default:false)

[edit] Examples

[edit] Installation

  1. Download the latest version of the code
  2. Copy the code into a file named FLVPlayerTwo.php
  3. Save the file in the extensions/FLVPlayerTwo directory of your mediawiki folder
  4. Add the line require_once( "$IP/extensions/FLVPlayerTwo/FLVPlayerTwo.php" ); to the end of your LocalSettings.php file (The name of your file is case sensitive!)
  5. Download the latest Flowplayer file from Flowplayer (3.1.0
  6. Extract flowplayer-3.1.0.min.js, flowplayer-3.1.0.swf, and flowplayer.controls-3.1.0.swf from the zip file and place it in the extensions/FLVPlayerTwo directory of your mediawiki folder
  7. You'll probably have to do this if you get the error about uploaded files being corrupt or having the incorrect extension.

Now you can use the extension with <flvplayertwo>...</flvplayertwo> in the wiki.

Once you have uploaded a file using "Upload File" from the toolbox, then you can use the filename within the tags. E.g. If you upload test.flv and it is saved as test.flv then <flvplayertwo>test.flv</flvplayertwo> should work fine.

[edit] Frequently Asked Questions