summaryrefslogtreecommitdiff
path: root/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/EmbedPlayer.php
blob: a813c8d081ca394589aa9857b89ffcfba7c33d27 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
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"
			),
	);
?>