Extension:OFlash
From MediaWiki.org
|
Release status: stable |
|
|---|---|
| Implementation | Tag |
| Description | Easy syntax for inserting Flash SWFs and FLV videos. |
| Author(s) | Orifice Software (Fergal Hainey) |
| Last Version | 1.0.0 (20/11/08) |
| MediaWiki | Probably 1.8 |
| License | Some parts use Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported license |
| Download | http://bfot.co.uk/orifice/oflash/ |
| Example | http://arse.kyru.co.uk |
|
check usage (experimental) |
|
Contents |
[edit] What can this extension do?
Embed flash files with standards compliance, no javascript, prompts popular browsers for missing Flash plug-ins and has a built in media player for FLV or H.264 media.
[edit] Usage
OFlash uses a self-closing <oflash /> tag with these attributes:
- file: The path of the flash SWF or video. Can be given as an absolute or relative path (like src in <img>) or a URI like http://bleh.com/bleh.swf . If the path ends in .swf (case insensitive) it will be embedded as a standard flash file. If the path ends in anything else (doesn't have to be .flv or .mp4) it will be treated as a flash video and the included media player will be embedded.
- thumb: If you define this as anything other than "false" it will default to true. If you omit the attribute it will default to false. If true the flash will be placed within the same <div>s that the MonoBook MediaWiki skin uses to make thumbnail images that float to the right. Also the flash will be scaled down (or possibly up) to 180px in width.
- caption: If thumb is true, then this caption will be used and will use MonoBooks thumbnail caption style. You can use wiki formatting in it like [[Bleh]] and stuff.
- width & height: The width and height of the animation or video. If a video, the right amount of height will be added for the player controls. If thumb is true, still give the original width and height, as these values will be used for the scaling.
- flashvars: Any FlashVars to be passed to the animation. Only applies to animations (.swf files), does not forward any further FlashVars to the media player.
[edit] Download instructions
The latest version can be downloaded from http://bfot.co.uk/orifice/oflash. The download includes a combined README/VERSION and the video player flash file.
[edit] Installation
To install this extension, add the following to LocalSettings.php:
require_once("extensions/oflash/orificeflash.php");