User:Dan Nessett/Technical/Notes on OggHandler

Installing OggHandler

 * ffmpeg is required.
 * Change LocalSettings.php:

$wgFileExtensions = array( 'png', 'gif', 'jpg', 'jpeg', 'ogg', 'ogx', 'oga', 'ogv', 'svg' );

$wgMediaHandlers = array(   'jpeg' => 'BitmapHandler',    'image/jpeg' => 'BitmapHandler',    'image/png' => 'BitmapHandler',    'png' => 'BitmapHandler',    'image/gif' => 'BitmapHandler',    'gif' => 'BitmapHandler',    'image/x-ms-bmp' => 'BmpHandler',    'image/svg+xml' => 'SvgHandler',    'image/svg' => 'SvgHandler',    'image/vnd.djvu' => 'DjVuHandler',    'application/ogg' => 'OggHandler',    'ogx' => 'OggHandler',    'video/ogg' => 'OggHandler',    'ogv' => 'OggHandler',    'audio/ogg' => 'OggHandler',    'oga' => 'OggHandler',    'ogg' => 'OggHandler' );


 * Modify mime.types in $IP/includes as follows:

application/ogg ogg ogm ogx oga ogv

audio/ogg ogg oga

audio/x-ogg ogg oga

video/ogg ogm ogg ogv

video/x-ogg ogm ogg ogv