Index: trunk/extensions/TimedMediaHandler/TimedMediaHandler.hooks.php |
— | — | @@ -65,6 +65,7 @@ |
66 | 66 | 'scripts' => 'resources/mw.MediaWikiPlayerSupport.js', |
67 | 67 | 'dependencies'=> array( 'mw.Api' ) |
68 | 68 | ) ), |
| 69 | + // adds support MediaWikiPlayerSupport player bindings |
69 | 70 | "mw.MediaWikiPlayer.loader" => array_merge( $baseExtensionResource, array( |
70 | 71 | 'loaderScripts' => 'resources/mw.MediaWikiPlayer.loader.js', |
71 | 72 | ) ), |
Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/EmbedPlayer.loader.js |
— | — | @@ -2,7 +2,6 @@ |
3 | 3 | * EmbedPlayer loader |
4 | 4 | */ |
5 | 5 | ( function( mw, $ ) { |
6 | | - |
7 | 6 | /** |
8 | 7 | * Add a DOM ready check for player tags |
9 | 8 | * |
Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.EmbedPlayer.js |
— | — | @@ -1539,7 +1539,7 @@ |
1540 | 1540 | var iframeUrl = false; |
1541 | 1541 | $( this ).trigger( 'getShareIframeSrc', function( localIframeSrc ){ |
1542 | 1542 | if( iframeUrl){ |
1543 | | - mw.log("Error multiple modules binding getShareIframeSrc" ); |
| 1543 | + mw.log("EmbedPlayer:: Error multiple modules binding getShareIframeSrc" ); |
1544 | 1544 | } |
1545 | 1545 | iframeUrl = localIframeSrc; |
1546 | 1546 | }); |
Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/skins/mw.PlayerControlBuilder.js |
— | — | @@ -1760,7 +1760,7 @@ |
1761 | 1761 | var _this = this; |
1762 | 1762 | var embedPlayer = this.embedPlayer; |
1763 | 1763 | // for each source with "native playback" |
1764 | | - $sourceMenu = $('<ul />'); |
| 1764 | + var $sourceMenu = $('<ul />'); |
1765 | 1765 | |
1766 | 1766 | // Local function to closure the "source" variable scope: |
1767 | 1767 | function addToSourceMenu( source ){ |
Index: trunk/extensions/TimedMediaHandler/MwEmbedModules/EmbedPlayer/resources/mw.processEmbedPlayers.js |
— | — | @@ -87,7 +87,7 @@ |
88 | 88 | mw.log("EmbedPlayer::EmbedPlayerNewPlayer:trigger " + inDomPlayer.id ); |
89 | 89 | |
90 | 90 | // Allow plugins to add bindings to the inDomPlayer |
91 | | - $( mw ).trigger ( 'EmbedPlayerNewPlayer', inDomPlayer ); |
| 91 | + $( mw ).trigger ( 'newEmbedPlayerEvent', inDomPlayer ); |
92 | 92 | |
93 | 93 | // Add a player ready binding: |
94 | 94 | $( inDomPlayer ).bind( 'playerReady', areSelectedPlayersReady ); |
Index: trunk/extensions/TimedMediaHandler/resources/mw.MediaWikiPlayerSupport.js |
— | — | @@ -243,13 +243,11 @@ |
244 | 244 | callback(); |
245 | 245 | } |
246 | 246 | }); |
247 | | - |
248 | | - $( embedPlayer ).bind( 'GetShareIframeSrc', function(event, callback){ |
| 247 | + $( embedPlayer ).bind( 'getShareIframeSrc', function(event, callback){ |
249 | 248 | // Check the embedPlayer title key: |
250 | 249 | var title = $( embedPlayer).attr( 'data-mwtitle'); |
251 | 250 | // TODO Check the provider key and use that hosts title page entry point! |
252 | 251 | var provider = $( embedPlayer).attr( 'data-mwprovider'); |
253 | | - |
254 | 252 | var iframeUrl = false; |
255 | 253 | if( mw.getConfig('wgServer') && mw.getConfig('wgArticlePath') ){ |
256 | 254 | iframeUrl = mw.getConfig('wgServer') + |
— | — | @@ -257,6 +255,7 @@ |
258 | 256 | unescape( embedPlayer.apiTitleKey ).replace( /^(File:|Image:)/ , '' ) ) + |
259 | 257 | '?' + 'embedplayer=yes'; |
260 | 258 | } |
| 259 | + |
261 | 260 | callback( iframeUrl ); |
262 | 261 | }); |
263 | 262 | }; |