Extension:HTML5video

A multipurpose video player for HTML5 video. This video player is self-contained entirely to the local site, in that all video is stored on the local site. There are no required links to video that is hosted on other 3rd party sites (such as YouTube) -- although you can also play a YouTube video if you want. But the strength of this extension is the ability to play HTML5 video stored locally on your site (in .mp4, .ogv, or .webm format). The extension is cross-platform compatible and will work on Internet Explorer, Safari, Opera, Firefox, and Chrome. It will also play video on iPads, iPods, and Android devices. Lastly, you can set the arguments of Width, Height, and Autoplay. This extension is maintained by Stamps Howard.

What can this extension do?
A multipurpose video player for HTML5 video. This video player has the following features:

* Self-contained entirely to the local site * Video movies are uploaded and stored on the local site * No required links to video hosted on other 3rd party sites (e.g. YouTube) * Supports mp4, ogv, and webm file extensions (i.e. HTML5) * Will also play YouTube video * iPad, iPhone, and Android compatible * Internet Explorer, Safari, Opera, Firefox, and Chrome compatible * Set Width and Height option * Set Autoplay option

Usage
Typical usage is:

In this case, 640 is the video width in pixels, 480 is the video height in pixels, autoplay is set for immediate start, and the name of video file is "Blue_Whale" (with no extension). It is important that 1) you do not add the extension (e.g. .mp4, .ogv or .webm) and 2) there cannot be any spaces on either side of the name. The allowable arguments are:

If you are using HTML5 video, note that width can be set as a percentage, in which case the height argument is ignored so that the aspect ratio of the video is maintained. For example, the following code will play the video clip at 100% width of the available screen:

Finally, you can also play YouTube video by setting the type argument to 'youtube' as shown in the following example, where "O2FInaOCqoo" is the YouTube ID of the video:

Download instructions
Download the file HTML5video.tar from the following link: HTML5video.tar and uncompress the HTML5video folder. Then upload the HTML5video folder to your extensions folder of your MediaWiki installation

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

Upload Video Files
For best results, you need to upload two copies of your video, one in .mp4 format and one in .ogv format. Both files need to be uploaded to your site in the "videos" directory. In the following example, the root Mediawiki directory is assumed to be "wiki"

Creating and Converting HTML5 video files
Unfortunately there is no single format for video files that will play in all cases. iPads and iPods do not play flash video, but they will play.mp4 video. Unfortunately, some browsers (such as Firefox) will not play .mp4 (but Firefox, Chrome and others will play .ogv video).

By choosing to use two HTML5-compatible video formats (.mp4 AND .ogv), this allow nearly any browser to play the video (except for some older generations browsers).

Fortunately, it ins't very hard to convert video files. There are lots of free converters available and it is relatively straightforward to convert most video into .mp4 format. And when you have created the .mp4 file, there are plenty of converters to convert .mp4 video into .ogv video (I use ffmpeg2theora -- see Converting MP4 to OGV.). It only takes a few seconds.