Extension:Html5mediator

The Html5mediator extension provides a simple way to embed video and audio on a wiki page. It creates a new tag to allow playback of video and audio files, referenced either as full URLs (e.g.  )or as MediaWiki file tags (e.g.  ).

Configuration
There are no configuration parameters, although you should make sure to register the file types you want to be able to embed in your wiki in. For instance, if you wanted to be able to play MP3 audio files and MP4 video files, you would need to insert the following at the bottom of :

Usage
Html5mediator can be used in two ways:

Media file previously uploaded to wiki
Html5mediator automatically figures out whether your file is an audio file or a video file based on the extension, so there is no need to specify the nature of your file a priori. The height and width parameters are optional -- you can have both, one or the other, or nothing at all. If there's enough demand for it, YouTube (et cetera) embedding will also be considered.

File Types

 * Audio:
 * .mp3
 * .ogg
 * Video:
 * .mp4 (H.264)
 * .webm (VP8)
 * .mov (H.264 only)
 * .ogv

Web Browsers
The following web browsers feature full support for the HTML5  and   tags, and work best with this extension:
 * Internet Explorer 9+
 * Mozilla Firefox (reasonably recent)
 * Google Chrome (reasonably recent)
 * Opera (reasonably recent)

For older versions of web browsers that do not support the HTML5  and   tags, Html5mediator falls back gracefully on FlowPlayer, a Flash-based media player. This has been tested and confirmed on Firefox 3.0 and Internet Explorer 8.

MediaWiki
Html5mediator should work gracefully with a wide range of MediaWiki versions, although all development and testing was done on MediaWiki 1.21.1. As (or if) users report their success (or lack thereof) with older and newer MediaWiki versions, the compatibility list here will be updated.

Known Working

 * 1.20.2
 * 1.21.1, 1.21.2

Acknowledgments
This extension is based on the parser_hook example extension, and shamelessly borrows MediawikiPlayer's MediaWiki File: → fully-qualified URL conversion code. It utilizes html5media for its audiovisual processing and display.