Index: trunk/extensions/TimedMediaHandler/EmbedPlayer/loader.js |
— | — | @@ -79,7 +79,6 @@ |
80 | 80 | "vlcEmbed" : "vlcEmbed.js", |
81 | 81 | |
82 | 82 | "ctrlBuilder" : "skins/ctrlBuilder.js", |
83 | | - "mw.style.EmbedPlayer" : "mw.style.EmbedPlayer.css", |
84 | 83 | |
85 | 84 | "mw.style.kskin" : "skins/kskin/EmbedPlayer.css", |
86 | 85 | "kskinConfig" : "skins/kskin/kskinConfig.js", |
— | — | @@ -174,8 +173,7 @@ |
175 | 174 | 'ctrlBuilder', |
176 | 175 | '$j.cookie', |
177 | 176 | // Add JSON lib if browsers does not define "JSON" natively |
178 | | - 'JSON', |
179 | | - 'mw.style.EmbedPlayer' |
| 177 | + 'JSON' |
180 | 178 | ], |
181 | 179 | [ |
182 | 180 | '$j.fn.menu', |
Index: trunk/extensions/TimedMediaHandler/EmbedPlayer/mw.EmbedPlayer.js |
— | — | @@ -341,7 +341,8 @@ |
342 | 342 | var _this = this; |
343 | 343 | |
344 | 344 | if ( !element.id || element.id == '' ) { |
345 | | - mw.log("Error: element is missing id "); |
| 345 | + // give the element an id: |
| 346 | + element.id = 'vid' + ( this.playerList.length + 1 ); |
346 | 347 | } |
347 | 348 | mw.log('EmbedPlayerManager: addElement:: ' + element.id ); |
348 | 349 | |
— | — | @@ -947,7 +948,7 @@ |
948 | 949 | * @param {String} start_npt Start time in npt format |
949 | 950 | * @param {String} end_npt End time in npt format |
950 | 951 | */ |
951 | | - updateSourceTimes:function( start_npt, end_npt ) { |
| 952 | + updateSourceTimes: function( start_npt, end_npt ) { |
952 | 953 | var _this = this; |
953 | 954 | $j.each( this.sources, function( inx, mediaSource ) { |
954 | 955 | mediaSource.updateSrcTime( start_npt, end_npt ); |
Index: trunk/extensions/TimedMediaHandler/EmbedPlayer/EmbedPlayer.i18n.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | 'mwe-share' => 'Share', |
37 | 37 | 'mwe-credits' => 'Credits', |
38 | 38 | 'mwe-clip_linkback' => 'Clip source page', |
39 | | - 'mwe-chose_player' => 'Chose video player', |
| 39 | + 'mwe-chose_player' => 'Choose video player', |
40 | 40 | 'mwe-no-player' => 'No player available for $1', |
41 | 41 | 'mwe-share_this_video' => 'Share this video', |
42 | 42 | 'mwe-video_credits' => 'Video credits', |
— | — | @@ -50,7 +50,7 @@ |
51 | 51 | 'mwe-ogg-player-quicktime-activex' => 'QuickTime ActiveX', |
52 | 52 | 'mwe-ogg-player-cortado' => 'Java Cortado', |
53 | 53 | 'mwe-ogg-player-flowplayer' => 'Flowplayer', |
54 | | - 'mwe-ogg-player-kplayer' => 'Kaltura flash player', |
| 54 | + 'mwe-ogg-player-kplayer' => 'Kaltura player', |
55 | 55 | 'mwe-ogg-player-selected' => '(selected)', |
56 | 56 | 'mwe-ogg-player-omtkplayer' => 'OMTK Flash Vorbis', |
57 | 57 | 'mwe-generic_missing_plugin' => 'You browser does not appear to support the following playback type: <b>$1</b><br />Visit the <a href="http://commons.wikimedia.org/wiki/Commons:Media_help">Playback Methods</a> page to download a player.<br />', |
— | — | @@ -66,6 +66,7 @@ |
67 | 67 | 'mwe-video-flv' => 'Flash video', |
68 | 68 | 'mwe-video-ogg' => 'Ogg video', |
69 | 69 | 'mwe-video-audio' => 'Ogg audio', |
| 70 | + 'mwe-missing-source' => 'No source video was found, check that your embed code includes a source or api key', |
70 | 71 | ); |
71 | 72 | $messages['af'] = array( |
72 | 73 | 'mwe-credit-title' => 'Naam: $1', |