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 spay 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) the cannot be any spaces on either side of the name. The allowable arguments are:

Note that width can be set as a percentage, in which case height argument is ignored so that the the aspect ratio 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 jcSQGw2Svj 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.

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. They will play .mp4 video - Some browsers (such as Firefox) will not play .mp4

By choosing to use two video formats (.mp4 AND .ogv), this allow nearly any browser to play the video (except for older generations browsers). It is relatively straightforward to convert most video into .mp4 format, and there are plenty of converters to convert .mp4 video into .ocv video (I use