The EmbedVideo Extension is a MediaWiki extension which adds a parser function called #ev for embedding flash based video content into wiki pages.
It is released under The MIT License.
Contents |
This extension requires:
require_once('extensions/EmbedVideo.php');
Note: All instructions in this section are strictly Optional
The following global variables may be specified in LocalSettings.php AFTER the require_once() call to activate the extension.
| Global | Purpose | Default |
|---|---|---|
| $wgEmbedVideoMinWidth | Defines the minimum acceptable width in pixels for embedded videos. | 100 |
| $wgEmbedVideoMaxWidth | Defines the maximum acceptable width in pixels for embedded videos. | 1024 |
You may also configure the list of supported video sharing sites in your LocalSettings.php file. To remove an entry, add the following (AFTER the require_once() that enables the extension):
unset($wgEmbedVideoServiceList['service']);
Where 'service' is the name of the video sharing service to remove.
Alternatively, to add a new video service, add the following:
$wgEmbedVideoServiceList['service'] = array( 'url' => 'http://somedomain.com/path/to/video/$1' );
Where '$1' is intended be replaced by the id as provided in the parser function parameters.
Determining what the URL should be is left as an exercise for the reader.
Once installed, you (or editors of your wiki) may begin embedding videos into any article.
The parser extension expects to be called in either of the following ways:
Where:
{{#ev:youtube|dMH0bHeiRNg}}
{{#ev:funnyordie|74|200}}
{{#ev:googlevideo|6486979190703380003}}
{{#ev:dailymotion|7tE9MbSfWo9YaeNRP|300}}
{{#ev:sevenload|Eh4mjir}}
{{#ev:revver|233330}}
Got something to say?
or, read what others have said ...