January 01, 2010

Embedding Video in MediaWiki

So I'm still working on my MediaWiki project and decided to make a help site just like I did previously. One of the things I wanted to do was be able to embed video inside a page. Unfortunately I can't just throw a copied HTML code from the sites I was using.

I decided to use the MediaWiki extensions project add on.
  • To do this you will need the EmbedVideo.php that you can find on the project page.
  • Next you will need to add the code to your wiki page in the format of {{#ev:service|id}} or to change the viewable size {{#ev:service|id|width}}
the "service" is the video service website (ie. youtube), the "id" is the number or code that is associated with your video which you can find in the embed code and finally the width is the width in pixels.

The services that come with the Embed Video extension are Dailymotion, FunnyOrDie, Google Video, sevenload, Revver and YouTube. Google Videos is not taking uploads anymore, but is still hosting previously uploaded video's.

Unfortunately my video was too large for any of these services to upload and I was already using Vimeo which is not automatically supported by the Embed Video extension.
  • To fix this, I had to edit the EmbedVideo.php file to include the following code in the supported services section at the bottom. Start by placeing a comma after the last ) after youtube
  • Then insert this code...

'vimeo' => array(

Just make it match the format of the other services and you should be good to go.

If you have any problems with the embed video extensions or have suggestions for other projects in mediawiki, feel free to e-mail me and perhaps we'll use your suggestion for a further follow up article or a new article.

Hex Converter

Hex To ASCII Converter



Integer to Byte converter

This is a tool to practice converting between decimal and binary representations. After you have practiced for a while and feel that you know how to do the conversions, take the quiz.
Decimal number to convert:
Binary representation:

Binary number to convert:
Decimal representation: