Extension:Video

Video is an extension that allows you to import videos from different video services, such as YouTube, Google Video or Metacafe. The extension adds two new special page, Special:AddVideo, which all registered users or other users with 'addvideo' permission can access to add new videos to the site and Special:NewVideos, which lists all recently added video. The extension also adds &lt;videogallerypopulate&gt; parser hook tag.

Video additions are logged into the video log at Special:Log/video.

This extension was originally written by David Pean for Wikia, Inc. Some code cleanup was done by Łukasz 'TOR' Garczewski and Bartek Łapiński for Wikia, Inc. and by Jack Phoenix for ShoutWiki.

This extension requires r88235 or greater version of MediaWiki for the video undeletion feature to work properly.

Supported video providers

 * 1) DailyMotion
 * 2) Gametrailers
 * 3) Google Video
 * 4) MetaCafe
 * 5) MyVideo
 * 6) Sevenload
 * 7) South Park Studios
 * 8) Viddler
 * 9) Vimeo
 * 10) WeGame
 * 11) YouTube

To-do list/known bugs

 * 1) Make VideoPage::videoLinks actually work (Special:WhatLinksHere support)
 * 2) Write the code for supporting 5min.com, Blip.tv, Nicovideo and Tangler.com

Installation

 * 1) Download the source code into
 * 2) Create the required two tables,  and , in the database; if you have command line access, you can do this by re-running the MediaWiki updater script,
 * 3) Add the following into the wiki's LocalSettings.php:
 * 4) Installation can now be verified through Special:Version

Usage
After adding a video through Special:AddVideo, you can embed it into an article by using the syntax Video:Video's Name Here or .

Developer Info
Provider classes for different video hosting sites are stored in the  directory. Writing a new provider class is easy:
 * 1) copy the example provider class into the providers directory and name it accordingly (for example, )
 * 2) autoload the new provider class in Video.php
 * 3) add the provider to Video::$providers
 * 4) enjoy!