|WARNING: The code or configuration described here poses a major security risk.
Site administrators: You are advised against using it until this security issue is resolved.
Problem: Vulnerable to Cross-site scripting attacks, because it passes user input directly to the browser. This may lead to user accounts being hijacked, among other things.
Solution: strictly validate user input and/or apply escaping to all characters that have a special meaning in HTML
|This extension stores its source code on a wiki page. Please be aware that this code may be unreviewed or maliciously altered. They may contain security holes, outdated interfaces that are no longer compatible etc.
request access to MediaWiki's code repository to address this.
Release status: unknown
|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.|
|License||No license specified|
|Download||FLVPlayerTwo code v1.01 (latest)|
|Check usage and version matrix; stats|
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.
<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;
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)
- Download the latest version of the code
- Copy the code into a file named FLVPlayerTwo.php
- Save the file in the extensions/FLVPlayerTwo directory of your mediawiki folder
- 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!)
- Download the latest Flowplayer file from Flowplayer (3.1.0
- 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
- 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.