Index: branches/MwEmbedStandAlone/mwEmbedFrame.php |
— | — | @@ -9,6 +9,8 @@ |
10 | 10 | * <iframe src="mwEmbedFrame.php?src={SRC URL}&poster={POSTER URL}&width={WIDTH}etc"> </iframe> |
11 | 11 | */ |
12 | 12 | |
| 13 | +// Include configuration: ( will include LocalSettings.php ) |
| 14 | +require( dirname( __FILE__ ) . '/includes/DefaultSettings.php' ); |
13 | 15 | |
14 | 16 | // Setup the mwEmbedFrame |
15 | 17 | $myMwEmbedFrame = new mwEmbedFrame(); |
Index: branches/MwEmbedStandAlone/loader.js |
— | — | @@ -24,53 +24,13 @@ |
25 | 25 | 'mw.Api' |
26 | 26 | ]; |
27 | 27 | |
28 | | - |
29 | 28 | /** |
30 | | -* The default set of enabled modules |
31 | | -* ( Modules can also be enabled via mediaWiki extensions ) |
32 | | -* |
33 | | -* Each enabledModules array value should be a name |
34 | | -* of a folder in mwEmbed/modules |
35 | | -* |
36 | | -* Modules must define a loader.js file in the root |
37 | | -* of the module folder. |
38 | | -* |
39 | | -* A loader file should only include: |
40 | | -* * Class paths of the module classes |
41 | | -* * Style sheets of the module |
42 | | -* * Loader function(s) that load module classes |
43 | | -* * Any code you want run on all pages like checking the DOM |
44 | | -* for a tag that invokes your loader. |
45 | | -* |
46 | | -* When using the scriptLoader the enabledModules loader code |
47 | | -* is transcluded into base mwEmbed class include. |
48 | | -*/ |
49 | | -var mwEnabledModuleList = [ |
50 | | - 'AddMedia', |
51 | | - 'ClipEdit', |
52 | | - 'EmbedPlayer', |
53 | | - 'ApiProxy', |
54 | | - 'Sequencer', |
55 | | - 'TimedText', |
56 | | - 'SmilPlayer', |
57 | | - 'Playlist', |
58 | | - 'SwarmTransport', |
59 | | - 'SyntaxHighlighter', |
60 | | - 'MiroSubs', |
61 | | - 'PlayerThemer', |
62 | | - 'MediaWikiSupport' |
63 | | -]; |
64 | | - |
65 | | -/** |
66 | 29 | * mwEmbed default config values. |
67 | 30 | */ |
68 | 31 | mw.setDefaultConfig ( { |
69 | 32 | // Default coreComponents: |
70 | 33 | 'coreComponents' : mwCoreComponentList, |
71 | 34 | |
72 | | - // Default enabled modules: |
73 | | - 'enabledModules' : mwEnabledModuleList, |
74 | | - |
75 | 35 | // Default jquery ui skin name |
76 | 36 | 'jQueryUISkin' : 'redmond', |
77 | 37 | |
— | — | @@ -152,6 +112,7 @@ |
153 | 113 | "mw.style.ui_le-frog" : "skins/jquery.ui.themes/le-frog/jquery-ui-1.7.2.css", |
154 | 114 | "mw.style.ui_start" : "skins/jquery.ui.themes/start/jquery-ui-1.7.2.css", |
155 | 115 | "mw.style.ui_sunny" : "skins/jquery.ui.themes/sunny/jquery-ui-1.7.2.css", |
| 116 | + "mw.style.ui_kdark" : "skins/jquery.ui.themes/kaltura-dark/jquery-ui-1.7.2.css", |
156 | 117 | |
157 | 118 | "mw.style.mwCommon" : "skins/common/mw.style.mwCommon.css", |
158 | 119 | |
Index: branches/MwEmbedStandAlone/skins/common/mw.style.mwCommon.css |
— | — | @@ -185,14 +185,14 @@ |
186 | 186 | * ( without additional assets in the embedPlayer skins folder ) |
187 | 187 | */ |
188 | 188 | .play-btn-large { |
189 | | - width : 70px; |
190 | | - height : 53px; |
191 | | - background : url(images/player_big_play_button.png?1); |
| 189 | + width: 70px; |
| 190 | + height: 53px; |
| 191 | + background : url('images/player_big_play_button.png?1'); |
192 | 192 | position : absolute; |
193 | 193 | cursor : pointer; |
194 | 194 | border : none !important; |
195 | 195 | z-index : 1; |
196 | 196 | } |
197 | 197 | .play-btn-large:hover { |
198 | | - background : url(images/player_big_play_button_hover.png?1); |
| 198 | + background : url('images/player_big_play_button_hover.png?1'); |
199 | 199 | } |
\ No newline at end of file |
Index: branches/MwEmbedStandAlone/skins/common/images/_player_big_play_button.png |
Cannot display: file marked as a binary type. |
svn:mime-type = application/octet-stream |
Property changes on: branches/MwEmbedStandAlone/skins/common/images/_player_big_play_button.png |
___________________________________________________________________ |
Added: svn:mime-type |
200 | 200 | + application/octet-stream |
Index: branches/MwEmbedStandAlone/mwEmbed.js |
— | — | @@ -1686,6 +1686,7 @@ |
1687 | 1687 | |
1688 | 1688 | // Check for direct include of the mwEmbed.js |
1689 | 1689 | if ( src.indexOf( 'mwEmbed.js' ) !== -1 ) { |
| 1690 | + alert( 'Direct Refrece to mwEmbed is no longer suported, please update to ResourceLoader.php?class=window.jQuery,mwEmbed& instead'); |
1690 | 1691 | mwpath = src.substr( 0, src.indexOf( 'mwEmbed.js' ) ); |
1691 | 1692 | } |
1692 | 1693 | |
Index: branches/MwEmbedStandAlone/LocalSettings.php |
— | — | @@ -0,0 +1,9 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * This file store all of mwEmbed local configuration ( in a default svn check out this file is empty ) |
| 5 | + * |
| 6 | + * See includes/DefaultSettings.php for a configuration options |
| 7 | + */ |
| 8 | + |
| 9 | + |
| 10 | +?> |
\ No newline at end of file |
Index: branches/MwEmbedStandAlone/tests/mwEmbed_Demo.html |
— | — | @@ -18,7 +18,7 @@ |
19 | 19 | <script type="text/javascript" src="../libraries/jquery/jquery.ui/ui/ui.draggable.js"></script> |
20 | 20 | |
21 | 21 | |
22 | | - <script type="text/javascript" src="../mwEmbed.js?debug=true"></script> |
| 22 | + <script type="text/javascript" src="../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
23 | 23 | <!-- |
24 | 24 | <script type="text/javascript" src="http://html5.kaltura.org/js" > </script> |
25 | 25 | |
Index: branches/MwEmbedStandAlone/ResourceLoader.php |
— | — | @@ -5,8 +5,6 @@ |
6 | 6 | */ |
7 | 7 | |
8 | 8 | //Setup the script local script cache directory |
9 | | -// ( has to be hard coded rather than config based for fast non-mediawiki config hits ) |
10 | | -$wgScriptCacheDirectory = realpath( dirname( __FILE__ ) ) . '/includes/cache'; |
11 | 9 | |
12 | 10 | // Check if being used in mediaWiki ( ResourceLoader.php is NOT an entry point ) |
13 | 11 | if( is_file ( dirname( __FILE__ ) .'../mwResourceLoader.php' ) |
— | — | @@ -16,10 +14,8 @@ |
17 | 15 | |
18 | 16 | // Check if we are an entry point or being used as part of MEDIAWIKI: |
19 | 17 | if ( !defined( 'MEDIAWIKI' ) && !defined( 'SCRIPTLOADER_MEDIAWIKI') ) { |
20 | | - // Allow an installation an optional PHP customization/overrides file |
21 | | - if ( is_file ( dirname( __FILE__ ) .'/../localSettings.php' ) ) { |
22 | | - require_once dirname( __FILE__ ) .'/../localSettings.php'; |
23 | | - } |
| 18 | + // Include settings ( will include LocalSettings.php in the root mwEmbed folder |
| 19 | + require_once( dirname( __FILE__ ) . '/includes/DefaultSettings.php' ); |
24 | 20 | |
25 | 21 | // Load stand alone Resource Loader config |
26 | 22 | // ( if running as a remote, mediaWiki variables / functions are already included as part of mediaWiki ) |
— | — | @@ -1215,8 +1211,9 @@ |
1216 | 1212 | $this->filename = "{$wgScriptCacheDirectory}/{$hash1}/{$hash2}/{$hash}.js"; |
1217 | 1213 | |
1218 | 1214 | // Check for defined files:: |
1219 | | - if( is_file( $this->filename ) ) |
1220 | | - return $this->filename; |
| 1215 | + if( is_file( $this->filename ) ){ |
| 1216 | + return $this->filename; |
| 1217 | + } |
1221 | 1218 | |
1222 | 1219 | // Check for non-config based gzip version already there? |
1223 | 1220 | if( is_file( $this->filename . '.gz') ){ |
Index: branches/MwEmbedStandAlone/includes/NamedResourceLoader.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | * Get the javascript resource paths from javascript files |
37 | 37 | */ |
38 | 38 | public static function loadResourcePaths(){ |
39 | | - global $wgMwEmbedDirectory, $wgExtensionJavascriptModules, $wgUseMwEmbedLoaderModuleList, |
| 39 | + global $wgMwEmbedDirectory, $wgExtensionJavascriptModules, $wgMwEmbedEnabledModules, |
40 | 40 | $wgResourceLoaderNamedPaths, $wgExtensionMessagesFiles, $IP; |
41 | 41 | |
42 | 42 | // Only run once |
— | — | @@ -73,13 +73,9 @@ |
74 | 74 | ); |
75 | 75 | |
76 | 76 | // Check if we should load module list from mwEmbed loader.js |
77 | | - if( $wgUseMwEmbedLoaderModuleList ) { |
| 77 | + if( $wgMwEmbedEnabledModules ) { |
78 | 78 | // Get the list of enabled modules into $moduleList |
79 | | - preg_replace_callback( |
80 | | - '/mwEnabledModuleList\s*\=\s*\[(.*)\]/siU', |
81 | | - 'NamedResourceLoader::preg_buildModuleList', |
82 | | - $fileContent |
83 | | - ); |
| 79 | + self::validateModuleList( $wgMwEmbedEnabledModules ); |
84 | 80 | } |
85 | 81 | |
86 | 82 | // Change to the root mediawiki directory ( loader.js paths are relative to root mediawiki directory ) |
— | — | @@ -222,14 +218,10 @@ |
223 | 219 | |
224 | 220 | /** |
225 | 221 | * Build the list of modules from the mwEnabledModuleList replace callback |
226 | | - * @param String $jsvar Coma delimited list of modules |
| 222 | + * @param String $moduleSet array of modules to be validated |
227 | 223 | */ |
228 | | - private static function preg_buildModuleList( $jsvar ){ |
| 224 | + private static function validateModuleList( $moduleSet ){ |
229 | 225 | global $IP, $wgMwEmbedDirectory; |
230 | | - if(! isset( $jsvar[1] )){ |
231 | | - return false; |
232 | | - } |
233 | | - $moduleSet = explode(',', $jsvar[1] ); |
234 | 226 | |
235 | 227 | $mwEmbedAbsolutePath = ( $wgMwEmbedDirectory == '' )? $IP: $IP .'/' .$wgMwEmbedDirectory; |
236 | 228 | |
— | — | @@ -244,10 +236,9 @@ |
245 | 237 | array_push( self::$moduleList, $moduleName ); |
246 | 238 | } else { |
247 | 239 | // Not valid module ( missing loader.js ) |
248 | | - throw new MWException( "Missing module: $moduleName \n" ); |
| 240 | + throw new MWException( "Module: $moduleName missing loader.js \n" ); |
249 | 241 | } |
250 | 242 | } |
251 | | - |
252 | 243 | } |
253 | 244 | |
254 | 245 | /** |
Index: branches/MwEmbedStandAlone/includes/DefaultSettings.php |
— | — | @@ -0,0 +1,65 @@ |
| 2 | +<?php |
| 3 | +/** |
| 4 | + * This file stores default settings for Kaltura html5 client library "mwEmbed". |
| 5 | + * |
| 6 | + * DO NOT MODIFY THIS FILE. Instead modify LocalSettings.php in the parent mwEmbd directory. |
| 7 | + * |
| 8 | + */ |
| 9 | + |
| 10 | +// The default cache directory |
| 11 | +$wgScriptCacheDirectory = realpath( dirname( __FILE__ ) ) . '/cache'; |
| 12 | + |
| 13 | +// The absolute or relative path to mwEmbed install folder. |
| 14 | +// by default its the entry point minus the entry point name: |
| 15 | +$wgMwEmbedPathUrl = str_replace( |
| 16 | + // List entry points: |
| 17 | + array( 'mwEmbedFrame.php', 'ResourceLoader.php', 'mwEmbedLoader.php'), |
| 18 | + '', |
| 19 | + $_SERVER['SCRIPT_NAME'] |
| 20 | +); |
| 21 | + |
| 22 | +// Url to the resource loader php script: |
| 23 | +$wgResourceLoaderUrl = 'http://www.kaltura.org/apis/html5lib/mwEmbed/ResourceLoader.php'; |
| 24 | + |
| 25 | +// The list of enabled modules |
| 26 | +$wgMwEmbedEnabledModules = array(); |
| 27 | + |
| 28 | +// By default we enable every module in the "modules" folder |
| 29 | +$d = dir( realpath( dirname( __FILE__ ) ) . '/../modules' ); |
| 30 | +while (false !== ($entry = $d->read())) { |
| 31 | + if( substr( $entry, 0, 1 ) != '.' ){ |
| 32 | + $wgMwEmbedEnabledModules[] = $entry; |
| 33 | + } |
| 34 | +} |
| 35 | + |
| 36 | +/********************************************************* |
| 37 | + * Default Kaltura Configuration: |
| 38 | + * TODO move kaltura configuration to KalturaSupport module ( part of ResourceLoader update ) |
| 39 | + ********************************************************/ |
| 40 | + |
| 41 | +// The default Kaltura service url: |
| 42 | +$wgKalturaServiceUrl = 'http://www.kaltura.com'; |
| 43 | + |
| 44 | +// Default Kaltura CDN url: |
| 45 | +$wgKalturaCDNUrl = 'http://cdn.kaltura.com'; |
| 46 | + |
| 47 | +// Default Kaltura service url: |
| 48 | +$wgKalturaServiceBase = '/api_v3/index.php?'; |
| 49 | + |
| 50 | +// Default expire time for ui conf api queries in seconds |
| 51 | +$wgKalturaUiConfCacheTime = 600; |
| 52 | + |
| 53 | + |
| 54 | + |
| 55 | + |
| 56 | +/********************************************************* |
| 57 | + * Include local settings override: |
| 58 | + ********************************************************/ |
| 59 | +$wgLocalSettingsFile = realpath( dirname( __FILE__ ) ) . '/../LocalSettings.php'; |
| 60 | + |
| 61 | +if( is_file( $wgLocalSettingsFile ) ){ |
| 62 | + require_once( $wgLocalSettingsFile ); |
| 63 | +} |
| 64 | + |
| 65 | + |
| 66 | +?> |
Index: branches/MwEmbedStandAlone/modules/Playlist/tests/Player_MediaRss.html |
— | — | @@ -2,13 +2,13 @@ |
3 | 3 | <head> |
4 | 4 | <title> MediaRss player </title> |
5 | 5 | |
6 | | -<script type="text/javascript" src="../../../mwEmbed.js?debug=true>"></script> |
| 6 | +<script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true>"></script> |
7 | 7 | |
8 | 8 | <!-- |
9 | 9 | <script type="text/javascript" src="http://html5.kaltura.org/js"></script> |
10 | 10 | <script type="text/javascript" src="../../../mwEmbedLoader.js"></script> |
11 | 11 | <script type="text/javascript" src="../mwEmbed/mwEmbedLoader.js"></script> |
12 | | -<script type="text/javascript" src="../mwEmbed/mwEmbed.js?debug=true>"></script> |
| 12 | +<script type="text/javascript" src="../mwEmbed/ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true>"></script> |
13 | 13 | <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&debug=true"></script> |
14 | 14 | --> |
15 | 15 | |
Index: branches/MwEmbedStandAlone/modules/SmilPlayer/mw.SmilBody.js |
— | — | @@ -338,7 +338,7 @@ |
339 | 339 | // Add the parent startOffset |
340 | 340 | $node.data( 'startOffset', startOffset ); |
341 | 341 | |
342 | | - callback( $node ) |
| 342 | + callback( $node ); |
343 | 343 | } |
344 | 344 | // Return the node Duration for tracking startOffset |
345 | 345 | return this.getClipDuration( $node ); |
Index: branches/MwEmbedStandAlone/modules/SmilPlayer/tests/PngOverVideoSmil.html |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | <html> |
4 | 4 | <head> |
5 | 5 | <title>Simple PNG Animation Over Video Example</title> |
6 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 6 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
7 | 7 | <!-- <script type="text/javascript" src="../../ResourceLoader.php?class=window.jQuery,mwEmbed&debug=true"></script> --> |
8 | 8 | <script type="text/javascript"> |
9 | 9 | mw.setConfig( 'EmbedPlayer.OverlayControls', false ); |
Index: branches/MwEmbedStandAlone/modules/SmilPlayer/tests/RayNaginTour-OriginalThree.html |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | <html> |
4 | 4 | <head> |
5 | 5 | <title>Video CrossFade Example</title> |
6 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 6 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
7 | 7 | <!-- <script type="text/javascript" src="../../ResourceLoader.php?class=window.jQuery,mwEmbed&debug=true"></script> --> |
8 | 8 | <script type="text/javascript"> |
9 | 9 | mw.setConfig( 'EmbedPlayer.OverlayControls', false ); |
Index: branches/MwEmbedStandAlone/modules/SmilPlayer/tests/VideoCrossFade.html |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | <html> |
4 | 4 | <head> |
5 | 5 | <title>Video CrossFade Example</title> |
6 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 6 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
7 | 7 | <!-- <script type="text/javascript" src="../../ResourceLoader.php?class=window.jQuery,mwEmbed&debug=true"></script> --> |
8 | 8 | <script type="text/javascript"> |
9 | 9 | mw.setConfig( 'EmbedPlayer.OverlayControls', false ); |
Index: branches/MwEmbedStandAlone/modules/SmilPlayer/tests/VideoTransition.html |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | <html> |
4 | 4 | <head> |
5 | 5 | <title>Video Transistion Example</title> |
6 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 6 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
7 | 7 | <!-- <script type="text/javascript" src="../../ResourceLoader.php?class=window.jQuery,mwEmbed&debug=true"></script> --> |
8 | 8 | <script type="text/javascript"> |
9 | 9 | mw.setConfig( 'EmbedPlayer.OverlayControls', false ); |
Index: branches/MwEmbedStandAlone/modules/SmilPlayer/tests/PanZoom.html |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | <html> |
4 | 4 | <head> |
5 | 5 | <title>Pan Zoom Example</title> |
6 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 6 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
7 | 7 | <!-- <script type="text/javascript" src="../../ResourceLoader.php?class=window.jQuery,mwEmbed&debug=true"></script> --> |
8 | 8 | <script type="text/javascript"> |
9 | 9 | mw.setConfig( 'EmbedPlayer.OverlayControls', false ); |
Index: branches/MwEmbedStandAlone/modules/SmilPlayer/tests/VideoClipBegin.html |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | <html> |
4 | 4 | <head> |
5 | 5 | <title>Video ClipBegin Example</title> |
6 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 6 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
7 | 7 | <!-- <script type="text/javascript" src="../../ResourceLoader.php?class=window.jQuery,mwEmbed&debug=true"></script> --> |
8 | 8 | <script type="text/javascript"> |
9 | 9 | mw.setConfig( 'EmbedPlayer.OverlayControls', false ); |
Index: branches/MwEmbedStandAlone/modules/SmilPlayer/tests/VideoRender.html |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | <html> |
4 | 4 | <head> |
5 | 5 | <title>Video CrossFade Example</title> |
6 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 6 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
7 | 7 | <!-- <script type="text/javascript" src="../../ResourceLoader.php?class=window.jQuery,mwEmbed&debug=true"></script> --> |
8 | 8 | <script type="text/javascript"> |
9 | 9 | mw.setConfig( 'EmbedPlayer.OverlayControls', false ); |
Index: branches/MwEmbedStandAlone/modules/SwarmTransport/tests/SwarmTransprot_Url.html |
— | — | @@ -3,10 +3,10 @@ |
4 | 4 | <html> |
5 | 5 | <head> |
6 | 6 | <title>Sample swarm transport</title> |
7 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 7 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
8 | 8 | <!-- |
9 | 9 | <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed"></script> |
10 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 10 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
11 | 11 | --> |
12 | 12 | |
13 | 13 | <script type="text/javascript"> |
Index: branches/MwEmbedStandAlone/modules/SwarmTransport/tests/SwarmTransport_CommonsApi.html |
— | — | @@ -3,10 +3,10 @@ |
4 | 4 | <html> |
5 | 5 | <head> |
6 | 6 | <title>Sample swarm transport</title> |
7 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 7 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
8 | 8 | <!-- |
9 | 9 | <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed"></script> |
10 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 10 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
11 | 11 | --> |
12 | 12 | |
13 | 13 | <script type="text/javascript"> |
Index: branches/MwEmbedStandAlone/modules/TimedText/loader.js |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | // On new embed player check if we need to add timedText |
69 | 69 | $j( mw ).bind( 'newEmbedPlayerEvent', function( event, embedPlayer ){ |
70 | 70 | if( mw.isTimedTextSupported( embedPlayer) ){ |
71 | | - if( ! embedPlayer.timedText ) { |
| 71 | + if( ! embedPlayer.timedText && mw.TimedText ) { |
72 | 72 | embedPlayer.timedText = new mw.TimedText( embedPlayer ); |
73 | 73 | } |
74 | 74 | } |
— | — | @@ -84,7 +84,12 @@ |
85 | 85 | } |
86 | 86 | // Check for timed text sources or api/ roe url |
87 | 87 | if ( |
88 | | - ( embedPlayer.roe || embedPlayer.apititlekey || embedPlayer.apiTitleKey ) |
| 88 | + ( $j( embedPlayer ).attr( embedPlayer.roe ) |
| 89 | + || |
| 90 | + $j( embedPlayer ).attr('apititlekey') |
| 91 | + || |
| 92 | + $j( embedPlayer ).attr('apiTitleKey' ) |
| 93 | + ) |
89 | 94 | || |
90 | 95 | ( embedPlayer.mediaElement && embedPlayer.mediaElement.textSourceExists() ) |
91 | 96 | || |
Index: branches/MwEmbedStandAlone/modules/TimedText/tests/Player_Timed_Text.html |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | <html> |
5 | 5 | <head> |
6 | 6 | <title>sample mv embed</title> |
7 | | - <!-- <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> --> |
| 7 | + <!-- <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> --> |
8 | 8 | <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&debug=true"></script> |
9 | 9 | <script type="text/javascript"> |
10 | 10 | $j( document ).ready(function(){ |
Index: branches/MwEmbedStandAlone/modules/AddMedia/tests/Firefogg_GUI.html |
— | — | @@ -30,7 +30,7 @@ |
31 | 31 | |
32 | 32 | document.write( '<script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed,mw.style.mwCommon,$j.cookie&uselang=' + langKey + '&debug=true"><\/script>' ); |
33 | 33 | </script> |
34 | | - <!-- <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> --> |
| 34 | + <!-- <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> --> |
35 | 35 | <style type="text/css" media="all"> |
36 | 36 | body { |
37 | 37 | margin: 0; |
Index: branches/MwEmbedStandAlone/modules/AddMedia/tests/Add_Media_Wizard.html |
— | — | @@ -12,7 +12,7 @@ |
13 | 13 | } |
14 | 14 | </style> |
15 | 15 | <!-- <script src="../ResourceLoader.php?class=window.jQuery,mwEmbed&debug=true"></script> --> |
16 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 16 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
17 | 17 | |
18 | 18 | <script type="text/javascript"> |
19 | 19 | mw.ready( function(){ |
Index: branches/MwEmbedStandAlone/modules/AddMedia/mw.RemoteSearchDriver.js |
— | — | @@ -906,6 +906,9 @@ |
907 | 907 | |
908 | 908 | this.$resultsContainer = $j('<div />').attr({ |
909 | 909 | id : "rsd_results_container" |
| 910 | + }).css({ |
| 911 | + 'position' : 'relative', |
| 912 | + 'bottom' : '30px' |
910 | 913 | }); |
911 | 914 | |
912 | 915 | $mainContainer.append( this.$filtersContainer ); |
Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/tests/Player_Audio.html |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | <html> |
4 | 4 | <head> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
6 | | - <!-- <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> --> |
| 6 | + <!-- <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> --> |
7 | 7 | <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&debug=true"></script> |
8 | 8 | <title>Audio Player sample</title> |
9 | 9 | </head> |
Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/tests/Player_Themable.html |
— | — | @@ -8,7 +8,7 @@ |
9 | 9 | <script type="text/javascript" src="../../../ResourceLoader.php?debug=true&class=mwEmbed"></script> |
10 | 10 | --> |
11 | 11 | |
12 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 12 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
13 | 13 | |
14 | 14 | </head> |
15 | 15 | <script type="text/javascript"> |
Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/tests/Player_Native_Bindings.html |
— | — | @@ -41,7 +41,7 @@ |
42 | 42 | |
43 | 43 | |
44 | 44 | |
45 | | -<!-- <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> --> |
| 45 | +<!-- <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> --> |
46 | 46 | <script type="text/javascript" src="http://code.jquery.com/jquery-1.4.3.min.js"></script> |
47 | 47 | <script type="text/javascript"> |
48 | 48 | /* |
Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/tests/Player_Sources.html |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | <head> |
5 | 5 | <title>Player sources</title> |
6 | 6 | |
7 | | -<script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 7 | +<script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
8 | 8 | </head> |
9 | 9 | <body> |
10 | 10 | |
Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/mw.EmbedPlayer.js |
— | — | @@ -2068,8 +2068,8 @@ |
2069 | 2069 | this.controls = true; |
2070 | 2070 | } |
2071 | 2071 | if( !this.useNativePlayerControls() && !this.isPersistentNativePlayer() && !_this.controlBuilder.checkOverlayControls() ){ |
2072 | | - // give the interface more space for the controls: |
2073 | | - this.$interface.css('height', this.height + _this.controlBuilder.height ) |
| 2072 | + // Update the video size per available control space. |
| 2073 | + $j(this).css('height', this.height - _this.controlBuilder.height ); |
2074 | 2074 | } |
2075 | 2075 | |
2076 | 2076 | // Update Thumbnail for the "player" |
— | — | @@ -2491,6 +2491,8 @@ |
2492 | 2492 | unescape( this.apiTitleKey ).replace( /^(File:|Image:)/ , '' ) ) + |
2493 | 2493 | '?' + mw.getConfig( 'Mw.AppendWithJS' ) + |
2494 | 2494 | '&embedplayer=yes'; |
| 2495 | + } else if ( typeof(mw.IA) != 'undefined') { |
| 2496 | + var iframeUrl = mw.IA.embedUrl(); |
2495 | 2497 | } else { |
2496 | 2498 | // old style embed: |
2497 | 2499 | var iframeUrl = mw.getMwEmbedPath() + 'mwEmbedFrame.php?'; |
Index: branches/MwEmbedStandAlone/modules/Sequencer/loader.js |
— | — | @@ -102,6 +102,7 @@ |
103 | 103 | '$j.fn.layout', |
104 | 104 | |
105 | 105 | // UI components used in the sequencer interface: |
| 106 | + '$j.ui', |
106 | 107 | '$j.widget', |
107 | 108 | '$j.ui.mouse', |
108 | 109 | '$j.ui.position', |
Index: branches/MwEmbedStandAlone/modules/Sequencer/tools/jPicker/jpicker-1.1.5.js |
— | — | @@ -1,4 +1,4 @@ |
2 | | -/* |
| 2 | +/* |
3 | 3 | * jPicker 1.1.5 |
4 | 4 | * |
5 | 5 | * jQuery Plugin for Photoshop style color picker |
— | — | @@ -905,17 +905,17 @@ |
906 | 906 | expandable: true, |
907 | 907 | input: $($this) |
908 | 908 | } |
909 | | - });
|
910 | | - if($($this).val()=='')
|
911 | | - {
|
912 | | - settings.color.active = new Color({ hex: null });
|
913 | | - settings.color.current = new Color({ hex: null });
|
914 | | - }
|
915 | | - else if (ColorMethods.validateHex($($this).val()))
|
916 | | - {
|
917 | | - settings.color.active = new Color({ hex: $($this).val(), a: settings.color.active.val('a') });
|
918 | | - settings.color.current = new Color({ hex: $($this).val(), a: settings.color.active.val('a') });
|
| 909 | + }); |
| 910 | + if($($this).val()=='') |
| 911 | + { |
| 912 | + settings.color.active = new Color({ hex: null }); |
| 913 | + settings.color.current = new Color({ hex: null }); |
919 | 914 | } |
| 915 | + else if (ColorMethods.validateHex($($this).val())) |
| 916 | + { |
| 917 | + settings.color.active = new Color({ hex: $($this).val(), a: settings.color.active.val('a') }); |
| 918 | + settings.color.current = new Color({ hex: $($this).val(), a: settings.color.active.val('a') }); |
| 919 | + } |
920 | 920 | } |
921 | 921 | if (settings.window.expandable) |
922 | 922 | $($this).after('<span class="jPicker"><span class="Icon"><span class="Color"> </span><span class="Alpha"> </span><span class="Image" title="Click To Open Color Picker"> </span><span class="Container"> </span></span></span>'); |
— | — | @@ -1554,11 +1554,11 @@ |
1555 | 1555 | initialize = |
1556 | 1556 | function() |
1557 | 1557 | { |
1558 | | - var win = settings.window,
|
1559 | | - popup = win.expandable ? $($this).next().find('.Container:first') : null;
|
1560 | | - container = win.expandable ? $('<div/>') : $($this);
|
1561 | | - container.addClass('jPicker Container');
|
1562 | | - if (win.expandable) container.hide();
|
| 1558 | + var win = settings.window, |
| 1559 | + popup = win.expandable ? $($this).next().find('.Container:first') : null; |
| 1560 | + container = win.expandable ? $('<div/>') : $($this); |
| 1561 | + container.addClass('jPicker Container'); |
| 1562 | + if (win.expandable) container.hide(); |
1563 | 1563 | container.get(0).onselectstart=function(){return false;}; |
1564 | 1564 | // inject html source code - we are using a single table for this control - I know tables are considered bad, but it takes care of equal height columns and |
1565 | 1565 | // this control really is tabular data, so I believe it is the right move |
— | — | @@ -1982,4 +1982,4 @@ |
1983 | 1983 | } |
1984 | 1984 | }; |
1985 | 1985 | |
1986 | | -})(jQuery, '1.1.5'); |
\ No newline at end of file |
| 1986 | +})(jQuery, '1.1.5'); |
Index: branches/MwEmbedStandAlone/modules/Sequencer/tests/Sequence_Editor.html |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | <html> |
5 | 5 | <head> |
6 | 6 | <title>SMIL Sequence Editor example</title> |
7 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 7 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
8 | 8 | <script type="text/javascript"> |
9 | 9 | mw.ready( function(){ |
10 | 10 | mw.load( 'Sequencer', function(){ |
Index: branches/MwEmbedStandAlone/modules/Sequencer/tests/VideoRender.html |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | <html> |
4 | 4 | <head> |
5 | 5 | <title>Video CrossFade Example</title> |
6 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 6 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
7 | 7 | <!-- <script type="text/javascript" src="../../ResourceLoader.php?class=window.jQuery,mwEmbed&debug=true"></script> --> |
8 | 8 | <script type="text/javascript"> |
9 | 9 | mw.setConfig( 'EmbedPlayer.OverlayControls', false ); |
Index: branches/MwEmbedStandAlone/modules/Sequencer/mw.SequencerTimeline.js |
— | — | @@ -18,13 +18,21 @@ |
19 | 19 | timelineThumbLayout: { |
20 | 20 | 'height': 90, |
21 | 21 | 'width' : 120, |
22 | | - 'spacing': 14 |
| 22 | + // The width of the thumbnail + spacing |
| 23 | + 'totalWidth': 134 |
23 | 24 | }, |
24 | 25 | |
25 | 26 | // The timeline layout mode |
26 | 27 | // Can be "clip" ( like iMovie ) or "time" ( like finalCut ) |
27 | 28 | timelineMode: 'clip', |
28 | 29 | |
| 30 | + // The smil track to use as the timeline when in clip mode |
| 31 | + // ( when in "time" mode we have a uniform pixle to time mapping ) |
| 32 | + clipModeTrackIndex: 0, |
| 33 | + |
| 34 | + // The base left side offset for the clickable timeline |
| 35 | + clickableTimelineBaseOffset :10, |
| 36 | + |
29 | 37 | // Store the max track length |
30 | 38 | maxTrackLength: 0, |
31 | 39 | |
— | — | @@ -55,6 +63,7 @@ |
56 | 64 | ) |
57 | 65 | .css( 'height', this.getTimelineContainerHeight() ) |
58 | 66 | ); |
| 67 | + |
59 | 68 | // Apply layout control to track name / clipTrackSet division |
60 | 69 | this.trackLayout = this.getTimelineContainer().find( '.timelineTrackContainer') |
61 | 70 | .layout( { |
— | — | @@ -104,7 +113,7 @@ |
105 | 114 | }; |
106 | 115 | // Bind the update event to every time the duration is re-calculated |
107 | 116 | $j( this.sequencer.getEmbedPlayer() ).bind( 'durationchange', updateClickableTimeline ); |
108 | | - updateClickableTimeline(); |
| 117 | + updateClickableTimeline(); |
109 | 118 | }, |
110 | 119 | |
111 | 120 | /** |
— | — | @@ -123,7 +132,8 @@ |
124 | 133 | var _this = this; |
125 | 134 | // For now just a save button: |
126 | 135 | var $trackTools = $j('<div />') |
127 | | - .addClass('trackNamesTools'); |
| 136 | + .addClass('trackNamesTools') |
| 137 | + .css( 'height', '18px'); |
128 | 138 | |
129 | 139 | $j.each(this.trackNamesTools, function(toolId, tool){ |
130 | 140 | $trackTools.append( |
— | — | @@ -135,7 +145,7 @@ |
136 | 146 | .css({ |
137 | 147 | 'padding-top': 0, |
138 | 148 | 'padding-bottom': 0, |
139 | | - 'height' : 16 |
| 149 | + 'height' : '16px' |
140 | 150 | }) |
141 | 151 | .click(function(){ |
142 | 152 | tool.action( _this ) |
— | — | @@ -146,12 +156,46 @@ |
147 | 157 | return $trackTools; |
148 | 158 | }, |
149 | 159 | |
150 | | - updateTimelinePlayMarker: function( playTime ){ |
151 | | - var $timelinePlayMarker = _this.getClickableTimeline().find( '.timelinePlayMarker' ); |
| 160 | + time2TimelineOffset: function( playTime ){ |
| 161 | + var _this = this; |
| 162 | + if( this.timelineMode == 'clip' ){ |
| 163 | + var smil = this.sequencer.getSmil(); |
| 164 | + var smilSequenceTracks = this.sequencer.getSmil().getBody().getSeqElements(); |
| 165 | + var clipInx = 0; |
| 166 | + var pixleOffset = 0; |
| 167 | + smil.getBody().getRefElementsRecurse( smilSequenceTracks[ _this.clipModeTrackIndex ], 0, function( smilElement ){ |
| 168 | + var smilClipDur = smil.getBody().getClipDuration( smilElement ); |
| 169 | + var startOffset = $j( smilElement ).data('startOffset'); |
| 170 | + if( playTime > startOffset && playTime < (startOffset + smilClipDur) ){ |
| 171 | + // get the base pixle offset: |
| 172 | + pixleOffset = _this.clickableTimelineBaseOffset + ( _this.timelineThumbLayout.totalWidth * clipInx ) ; |
| 173 | + // add relative time offset: |
| 174 | + pixleOffset += ( ( playTime - startOffset ) / smilClipDur ) * _this.timelineThumbLayout.totalWidth; |
| 175 | + } |
| 176 | + clipInx++; |
| 177 | + }); |
| 178 | + return pixleOffset; |
| 179 | + } |
152 | 180 | }, |
153 | 181 | |
154 | 182 | timelineOffset2Time: function( pixleOffset ){ |
155 | | - pixleOffset - 10 / ( _this.timelineThumbLayout.width + 14 ) |
| 183 | + var _this = this; |
| 184 | + if( this.timelineMode == 'clip' ){ |
| 185 | + var smil = this.sequencer.getSmil(); |
| 186 | + // find which clip we are in: |
| 187 | + var clipInx = Math.floor( pixleOffset / _this.timelineThumbLayout.totalWidth ); |
| 188 | + var clipTimePercent = ( pixleOffset % _this.timelineThumbLayout.totalWidth ) / _this.timelineThumbLayout.totalWidth; |
| 189 | + // Find the relative clip time: |
| 190 | + |
| 191 | + // Get at the smil element: |
| 192 | + var smilId = $j( '#' + this.getTrackSetId( _this.clipModeTrackIndex )) |
| 193 | + .find('li').eq(clipInx) |
| 194 | + .data( 'smilId' ); |
| 195 | + var smilElement = smil.$dom.find( '#' + smilId ); |
| 196 | + |
| 197 | + return $j(smilElement).data('startOffset') + |
| 198 | + ( smil.getBody().getClipDuration( smilElement ) * clipTimePercent ); |
| 199 | + } |
156 | 200 | }, |
157 | 201 | |
158 | 202 | setupClickableTimeline: function( timelineWidth ){ |
— | — | @@ -167,18 +211,38 @@ |
168 | 212 | var timelineOffset = event.pageX - $clickTimeline.offset().left; |
169 | 213 | // Get the mouse offset get which clip we are associated with |
170 | 214 | mw.log("clicked: " + timelineOffset ); |
171 | | - _this.updateTimelinePlayMarker( |
172 | | - timelineOffset2Time( timelineOffset ) |
173 | | - ) |
| 215 | + var clickedTime =_this.timelineOffset2Time( timelineOffset ); |
| 216 | + |
| 217 | + // Seek to the click time for the embed player: |
| 218 | + _this.sequencer.getEmbedPlayer().setCurrentTime( clickedTime, function(){ |
| 219 | + mw.log( 'SequencerTimeline::clickableTimeline:: seek done:' + clickedTime ); |
| 220 | + }); |
| 221 | + |
| 222 | + // Update the play marker |
| 223 | + _this.getClickableTimeline().find( '.timelinePlayMarker' ) |
| 224 | + .css('left', timelineOffset ); |
174 | 225 | }); |
175 | 226 | |
| 227 | + var embedPlayer = _this.sequencer.getEmbedPlayer(); |
| 228 | + var cTime = 0; |
| 229 | + // Setup play binding ( to update timelinePlayMarker ) |
| 230 | + $j( embedPlayer ).bind( 'monitorEvent', function(){ |
| 231 | + // Check if we have to do an update: |
| 232 | + if( cTime != embedPlayer.currentTime ){ |
| 233 | + // Update the play marker |
| 234 | + _this.getClickableTimeline().find( '.timelinePlayMarker' ) |
| 235 | + .css('left', _this.time2TimelineOffset( embedPlayer.currentTime ) ); |
| 236 | + } |
| 237 | + cTime = embedPlayer.currentTime; |
| 238 | + }); |
| 239 | + |
176 | 240 | // Add TimelinePlayMarker |
177 | 241 | $clickTimeline.append( |
178 | 242 | $j('<div />') |
179 | 243 | .addClass('timelinePlayMarker') |
180 | 244 | .css({ |
181 | 245 | 'height': this.getTimelineContainerHeight(), |
182 | | - 'left' : 10, |
| 246 | + 'left' : this.clickableTimelineBaseOffset, |
183 | 247 | 'position' : 'absolute', |
184 | 248 | 'width' : 2, |
185 | 249 | 'z-index' : 2 |
— | — | @@ -212,13 +276,13 @@ |
213 | 277 | // Output a time for each clip ( right now just assume first track ( 0 ) |
214 | 278 | var clipInx = 0; |
215 | 279 | var startOffset = 0; |
216 | | - smil.getBody().getRefElementsRecurse( smilSequenceTracks[0], startOffset, function( smilElement ){ |
| 280 | + smil.getBody().getRefElementsRecurse( smilSequenceTracks[ _this.clipModeTrackIndex ], startOffset, function( smilElement ){ |
217 | 281 | mw.log(" offset:" + startOffset + ' clipDur: ' + smil.getBody().getClipDuration( smilElement ) + ' so:' + $j( smilElement ).data( 'startOffset' ) ); |
218 | 282 | $j('<span />') |
219 | 283 | .css({ |
220 | 284 | 'position': 'absolute', |
221 | 285 | 'border-left' : 'solid thin #999', |
222 | | - 'left' : 10 + ( _this.timelineThumbLayout.width + 14 ) * clipInx |
| 286 | + 'left' : 10 + ( _this.timelineThumbLayout.totalWidth ) * clipInx |
223 | 287 | }) |
224 | 288 | .text( |
225 | 289 | mw.seconds2npt( |
— | — | @@ -238,7 +302,7 @@ |
239 | 303 | getTimelineContainerHeight: function(){ |
240 | 304 | var _this = this; |
241 | 305 | // Start with vertical space for one more track + timeline |
242 | | - var timelineHeight = 80; |
| 306 | + var timelineHeight = 75; |
243 | 307 | var smilSequenceTracks = this.sequencer.getSmil().getBody().getSeqElements(); |
244 | 308 | $j.each(smilSequenceTracks, function( trackIndex, smilSequenceTrack ){ |
245 | 309 | timelineHeight+= _this.getSequenceTrackHeight( smilSequenceTrack ); |
— | — | @@ -529,7 +593,7 @@ |
530 | 594 | } |
531 | 595 | // TOOD make this use the trackIndex |
532 | 596 | var trackClipCount = this.getTimelineContainer().find( '.clipTrackSet' ).children().length; |
533 | | - return ( (this.timelineThumbLayout.width + 16) * (trackClipCount + extraClips ) ); |
| 597 | + return ( (this.timelineThumbLayout.totalWidth ) * (trackClipCount + extraClips ) ); |
534 | 598 | }, |
535 | 599 | |
536 | 600 | /** |
Index: branches/MwEmbedStandAlone/modules/ApiProxy/tests/testApiProxy.html |
— | — | @@ -3,7 +3,7 @@ |
4 | 4 | <head> |
5 | 5 | <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> |
6 | 6 | <title>Api Proxy Test</title> |
7 | | - <script type="text/javascript" src="../../../mwEmbed.js?debug=true"></script> |
| 7 | + <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed&&debug=true"></script> |
8 | 8 | <!-- <script type="text/javascript" src="../../../ResourceLoader.php?class=window.jQuery,mwEmbed"></script> --> |
9 | 9 | <script type="text/javascript" > |
10 | 10 | //HARD coded local test: |
Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js |
— | — | @@ -705,7 +705,7 @@ |
706 | 706 | var jQueryRequested = false; |
707 | 707 | $j.getScript(mwEmbedHostPath + '/libraries/jquery/jquery-1.4.2.js?' + mwGetReqArgs(), function(){ |
708 | 708 | // load mwEmbed js |
709 | | - $j.getScript( mwEmbedHostPath + '/mwEmbed.js?' + mwGetReqArgs(), function(){ |
| 709 | + $j.getScript( mwEmbedHostPath + '/ResourceLoader.php?class=window.jQuery,mwEmbed&&' + mwGetReqArgs(), function(){ |
710 | 710 | // Load the class set as part of mwReady callback |
711 | 711 | mw.load( classSet, function(){ |
712 | 712 | callback(); |