diff options
author | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-07-15 12:01:49 -0300 |
---|---|---|
committer | André Fabian Silva Delgado <emulatorman@parabola.nu> | 2016-07-15 12:01:49 -0300 |
commit | 90060b2cf06033ede8f6d3c2f5acf4d180174905 (patch) | |
tree | 4664208d55a7b3048053acb1ac064d325f25ef91 /extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/EmbedPlayer.php | |
parent | 7a31146918cdceef14689bf05d8f1602ec05bfcb (diff) |
Add TimedMediaHandler extension that allows display audio and video files in wiki pages, using the same syntax as for image files
Diffstat (limited to 'extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/EmbedPlayer.php')
-rw-r--r-- | extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/EmbedPlayer.php | 103 |
1 files changed, 103 insertions, 0 deletions
diff --git a/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/EmbedPlayer.php b/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/EmbedPlayer.php new file mode 100644 index 00000000..a813c8d0 --- /dev/null +++ b/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/EmbedPlayer.php @@ -0,0 +1,103 @@ +<?php + global $wgVideoPlayerSkinModule; + // Register all the EmbedPlayer modules + return array( + "mw.MediaElement" => array( + 'scripts' => 'resources/mw.MediaElement.js', + 'dependencies' => array( + 'ext.tmh.OgvJsSupport', + ) + ), + "mw.MediaPlayer" => array( 'scripts' => 'resources/mw.MediaPlayer.js' ), + "mw.MediaPlayers" => array( + 'scripts' => 'resources/mw.MediaPlayers.js', + 'dependencies' => 'mw.MediaPlayer' + ), + "mw.MediaSource" => array( 'scripts' => 'resources/mw.MediaSource.js' ), + "mw.EmbedTypes" => array( + 'scripts' => 'resources/mw.EmbedTypes.js', + 'dependencies' => array( + 'mw.MediaPlayers', + 'mediawiki.Uri', + 'jquery.client', + ) + ), + "mw.EmbedPlayer" => array( + 'scripts' => array( + "resources/mw.processEmbedPlayers.js", + "resources/mw.EmbedPlayer.js", + "resources/skins/mw.PlayerControlBuilder.js", + ), + 'dependencies' => array( + // mwEmbed support module + 'mediawiki.client', + 'mediawiki.UtilitiesTime', + 'mediawiki.Uri', + 'mediawiki.absoluteUrl', + 'mediawiki.jqueryMsg', + + // Browser fullscreen api support: + 'fullScreenApi', + + // Kinda need this + 'mw.MwEmbedSupport', + + // We always end up loading native player + 'mw.EmbedPlayerNative', + + // Sub classes: + 'mw.MediaElement', + 'mw.MediaPlayers', + 'mw.MediaSource', + 'mw.EmbedTypes', + + // jQuery dependencies: + 'jquery.client', + 'jquery.hoverIntent', + 'jquery.cookie', + 'jquery.ui.mouse', + 'jquery.debouncedresize', + 'jquery.embedMenu', + 'jquery.ui.slider', + 'jquery.ui.touchPunch', + + // Set to mw.PlayerSkinKskin or mw.PlayerSkinMvpcf in config + $wgVideoPlayerSkinModule + ), + 'styles' => "resources/skins/EmbedPlayer.css", + 'messageDir' => 'i18n', + ), + + "mw.EmbedPlayerKplayer" => array( 'scripts'=> "resources/mw.EmbedPlayerKplayer.js" ), + "mw.EmbedPlayerGeneric" => array( 'scripts'=> "resources/mw.EmbedPlayerGeneric.js" ), + "mw.EmbedPlayerNative" => array( 'scripts'=> "resources/mw.EmbedPlayerNative.js" ), + "mw.EmbedPlayerVLCApp" => array( + 'scripts'=> "resources/mw.EmbedPlayerVLCApp.js", + 'dependencies' => array( 'mediawiki.Uri' ) + ), + "mw.EmbedPlayerIEWebMPrompt" => array( + 'scripts' => 'resources/mw.EmbedPlayerIEWebMPrompt.js', + 'styles' => 'resources/mw.EmbedPlayerIEWebMPrompt.css', + ), + "mw.EmbedPlayerOgvJs" => array( + 'scripts' => 'resources/mw.EmbedPlayerOgvJs.js', + 'dependencies' => array( + 'jquery.spinner', + 'ext.tmh.OgvJsSupport', + ), + ), + "mw.EmbedPlayerImageOverlay" => array( 'scripts'=> "resources/mw.EmbedPlayerImageOverlay.js" ), + + "mw.EmbedPlayerVlc" => array( 'scripts'=> "resources/mw.EmbedPlayerVlc.js" ), + + "mw.PlayerSkinKskin" => array( + 'scripts' => "resources/skins/kskin/mw.PlayerSkinKskin.js", + 'styles' => "resources/skins/kskin/PlayerSkinKskin.css" + ), + + "mw.PlayerSkinMvpcf" => array( + 'scripts'=> "resources/skins/mvpcf/mw.PlayerSkinMvpcf.js", + 'styles'=> "resources/skins/mvpcf/PlayerSkinMvpcf.css" + ), + ); +?> |