Extension:OFlash

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.

Usage
OFlash uses a self-closing &lt;oflash /&gt; 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 &lt;img&gt;) 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 &lt;div&gt;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.

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.

Installation
To install this extension, add the following to LocalSettings.php:

New Working Version (tested on 1.16.4 - Jan 26, 2012)
I got rid of a bunch of the code, cleaned up and rewrote a lot of it too. Pretty much the same functionality, except now the "thumb" argument and the "flashvars" argument are both optional. - Lew Ayotte