Extension:MultimediaPlayer

The MultimediaPlayer plays a list of multimedia files. It is intended for use with multimedia items hosted by an external service - not stored in the wiki.

It creates one player per page and allows users to load that player by choosing an item from a list. Out-of-the-box support is provided for DailyMotion, Instagram, SoundCloud, YouTube, Vimeo and Vine. Admins can also add additional sources to their LocalSettings.php. For mobile compatibility, the player acts responsively where possible.

Configuration parameters (advanced)

 * $wgMultimediaPlayerSources
 * Expects an array (key=>value) where:
 * key is the name of a source, to be included as the first argument to the #multimediaitem parser function
 * value is the code to render that source, with $1 as a placeholder for the item's id, which is also the second argument to the #multimediaitem parser function
 * For example, to include YouTube as a source:


 * (This is for illustration. The extension already has built-in support for YouTube.)


 * $wgMultimediaPlayerKnownSources: List of keys for the default sources that will be loaded. This is mainly here so that admins can remove sources that they do not want supported in their wiki.
 * For example, to disable all known sources other than YouTube:

Include the player
Include the player on the page by inserting  where desired. Note that the container will take up the entire width of its parent element. So you may want to put it in a div. See the example below.

Include some items
Include items on the page by inserting.

Example
After installing, you can test your installation by creating a page and inserting the following code: