Index: branches/MwEmbedStandAlone/modules/SmilPlayer/mw.SmilLayout.js |
— | — | @@ -2,7 +2,7 @@ |
3 | 3 | |
4 | 4 | mw.SmilLayout = function( $layout ){ |
5 | 5 | return this.init( $layout ); |
6 | | -} |
| 6 | +}; |
7 | 7 | |
8 | 8 | mw.SmilLayout.prototype = { |
9 | 9 | // Stores the number of assets we are currently loading |
— | — | @@ -126,7 +126,7 @@ |
127 | 127 | // should be merged with addTHumb! |
128 | 128 | drawPlayerSmilElement: function( smilElement, $regionTarget ) { |
129 | 129 | var _this = this; |
130 | | - mw.log('SmilLayout:: drawPlayerSmilElement: ' ) |
| 130 | + mw.log('SmilLayout:: drawPlayerSmilElement: ' ); |
131 | 131 | var smilType = this.smil.getRefType( smilElement ); |
132 | 132 | switch( smilType ){ |
133 | 133 | // Static content can use drawSmilElementToTarget function: |
— | — | @@ -521,6 +521,7 @@ |
522 | 522 | }) |
523 | 523 | }); |
524 | 524 | }); |
| 525 | + |
525 | 526 | // Switch any named font-size attribute to em |
526 | 527 | $htmlLayout.find('[style]').each( function(inx, node){ |
527 | 528 | if( $j(node).css('font-size') ){ |
Index: branches/MwEmbedStandAlone/modules/AddMedia/mw.FirefoggGUI.js |
— | — | @@ -96,7 +96,7 @@ |
97 | 97 | |
98 | 98 | mw.FirefoggGUI = function( iObj ) { |
99 | 99 | return this.init( iObj ); |
100 | | -} |
| 100 | +}; |
101 | 101 | var default_mvAdvFirefogg_config = { |
102 | 102 | // Config groups to include |
103 | 103 | 'config_groups': [ 'preset', 'range', 'quality', 'meta', 'advVideo', 'advAudio' ], |
— | — | @@ -109,7 +109,7 @@ |
110 | 110 | |
111 | 111 | // The control container |
112 | 112 | 'target_control_container': false |
113 | | -} |
| 113 | +}; |
114 | 114 | |
115 | 115 | mw.FirefoggGUI.prototype = { |
116 | 116 | // The configuration group names |
— | — | @@ -413,7 +413,7 @@ |
414 | 414 | case 'target_btn_save_local_file': |
415 | 415 | var icon; |
416 | 416 | if ( target == 'target_btn_save_local_file' ) { |
417 | | - icon = 'ui-icon-video' |
| 417 | + icon = 'ui-icon-video'; |
418 | 418 | } else { |
419 | 419 | icon = 'ui-icon-folder-open'; |
420 | 420 | } |
— | — | @@ -545,32 +545,6 @@ |
546 | 546 | return out; |
547 | 547 | }, |
548 | 548 | |
549 | | - /** |
550 | | - * Show a dialog box asking the user to select a source URL. |
551 | | - * FIXME: half-written, doesn't work at all. |
552 | | - */ |
553 | | - /* |
554 | | - selectSourceUrl: function() { |
555 | | - // FIXME: i18n |
556 | | - var url = prompt( "Please enter the source media url you would like " + |
557 | | - "to transcode from.", "http://" ); |
558 | | - if ( !url ) { |
559 | | - return; |
560 | | - } |
561 | | - |
562 | | - // update the mode: |
563 | | - this.sourceMode = 'url'; |
564 | | - this.sourceUrl = url; |
565 | | - this.clearSourceInfoCache(); |
566 | | - this.updateSourceFileUI(); |
567 | | - // update the input target |
568 | | - $j( this.target_input_file_name ) |
569 | | - .unbind() |
570 | | - .val( url ) |
571 | | - .removeAttr( 'readonly' ); |
572 | | - }, |
573 | | - */ |
574 | | - |
575 | 549 | bindControls: function() { |
576 | 550 | var _this = this; |
577 | 551 | _this.basefogg_bindControls(); |
— | — | @@ -633,7 +607,7 @@ |
634 | 608 | function() { |
635 | 609 | var configKey = _this.getClassId( this, 'help_' ); |
636 | 610 | if( !helpState[configKey] ) |
637 | | - $j( _this.selector + ' .helpRow_' + configKey ).hide( 'slow' ) |
| 611 | + $j( _this.selector + ' .helpRow_' + configKey ).hide( 'slow' ); |
638 | 612 | } |
639 | 613 | ); |
640 | 614 | |
— | — | @@ -672,7 +646,7 @@ |
673 | 647 | $j( this ).val() ) |
674 | 648 | ); |
675 | 649 | _this.updatePresetSelection( 'custom' ); |
676 | | - }) |
| 650 | + }); |
677 | 651 | break; |
678 | 652 | case 'date': |
679 | 653 | $j( this.selector + ' ._' + configKey ).datepicker({ |
Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/loader.js |
— | — | @@ -6,13 +6,14 @@ |
7 | 7 | * Default player module configuration |
8 | 8 | */ |
9 | 9 | ( function( mw ) { |
10 | | - window['MW_EMBED_LIBRARY_PAGE'] = 'http://www.kaltura.org/project/HTML5_Video_Media_JavaScript_Library'; |
11 | 10 | |
12 | 11 | mw.setDefaultConfig( { |
13 | 12 | // If the player controls should be overlaid on top of the video ( if supported by playback method) |
14 | 13 | // can be set to false per embed player via overlayControls attribute |
15 | 14 | 'EmbedPlayer.OverlayControls' : true, |
16 | 15 | |
| 16 | + 'EmbedPlayer.LibraryPage': 'http://www.kaltura.org/project/HTML5_Video_Media_JavaScript_Library', |
| 17 | + |
17 | 18 | // A default apiProvider ( ie where to lookup subtitles, video properties etc ) |
18 | 19 | // NOTE: Each player instance can also specify a specific provider |
19 | 20 | "EmbedPlayer.ApiProvider" : "local", |
Index: branches/MwEmbedStandAlone/modules/EmbedPlayer/skins/mw.PlayerControlBuilder.js |
— | — | @@ -108,17 +108,17 @@ |
109 | 109 | // Setup the controlBar container |
110 | 110 | var $controlBar = $j('<div />') |
111 | 111 | .addClass( 'ui-state-default ui-widget-header ui-helper-clearfix control-bar' ) |
112 | | - .css( 'height', this.height ) |
| 112 | + .css( 'height', this.height ); |
113 | 113 | |
114 | 114 | $controlBar.css( { |
115 | 115 | 'position': 'absolute', |
116 | 116 | 'bottom' : '0px', |
117 | 117 | 'left' : '0px', |
118 | 118 | 'right' : '0px' |
119 | | - } ) |
| 119 | + } ); |
120 | 120 | // Check for overlay controls: |
121 | 121 | if( _this.checkOverlayControls() ) { |
122 | | - $controlBar.hide() |
| 122 | + $controlBar.hide(); |
123 | 123 | // Make sure the interface is correct height: |
124 | 124 | embedPlayer.$interface.css( { |
125 | 125 | 'height' : parseInt( embedPlayer.height ) |
— | — | @@ -218,7 +218,7 @@ |
219 | 219 | |
220 | 220 | // Set target width |
221 | 221 | var targetWidth = fullWidth; |
222 | | - var targetHeight = targetWidth * ( embedPlayer.getHeight() / embedPlayer.getWidth() ) |
| 222 | + var targetHeight = targetWidth * ( embedPlayer.getHeight() / embedPlayer.getWidth() ); |
223 | 223 | // Check if it exceeds the height constraint: |
224 | 224 | if( targetHeight > fullHeight ){ |
225 | 225 | targetHeight = fullHeight; |
— | — | @@ -233,7 +233,7 @@ |
234 | 234 | 'width' : targetWidth, |
235 | 235 | 'top' : offsetTop, |
236 | 236 | 'left': offsetLeft |
237 | | - } |
| 237 | + }; |
238 | 238 | }, |
239 | 239 | |
240 | 240 | /** |
— | — | @@ -244,7 +244,7 @@ |
245 | 245 | return { |
246 | 246 | 'left' : ( ( pos.width - this.getComponentWidth( 'playButtonLarge' ) ) / 2 ), |
247 | 247 | 'top' : ( ( pos.height - this.getComponentHeight( 'playButtonLarge' ) ) / 2 ) |
248 | | - } |
| 248 | + }; |
249 | 249 | }, |
250 | 250 | |
251 | 251 | /** |
— | — | @@ -258,7 +258,7 @@ |
259 | 259 | //mw.log(' win size is: ' + $j( window ).width() + ' ts: ' + textSize ); |
260 | 260 | return { |
261 | 261 | 'font-size' : textSize + '%' |
262 | | - } |
| 262 | + }; |
263 | 263 | }, |
264 | 264 | |
265 | 265 | /** |
— | — | @@ -379,7 +379,7 @@ |
380 | 380 | |
381 | 381 | |
382 | 382 | // Reposition play-btn-large ( this is unfortunately not easy to position with 'margin': 'auto' |
383 | | - $interface.find('.play-btn-large').animate( _this.getFullscreenPlayButtonCss() ) |
| 383 | + $interface.find('.play-btn-large').animate( _this.getFullscreenPlayButtonCss() ); |
384 | 384 | |
385 | 385 | // Bind mouse move in interface to hide control bar |
386 | 386 | _this.mouseMovedFlag = false; |
— | — | @@ -414,7 +414,7 @@ |
415 | 415 | 'left' : '0px', |
416 | 416 | 'width' : $j( window ).width(), |
417 | 417 | 'height' : $j( window ).height() |
418 | | - } ) |
| 418 | + } ); |
419 | 419 | // Update player size |
420 | 420 | $j( embedPlayer ).css( _this.getFullscreenPlayerCss() ); |
421 | 421 | |
— | — | @@ -494,7 +494,7 @@ |
495 | 495 | 'left' : '0px', |
496 | 496 | 'width' : embedPlayer.getWidth(), |
497 | 497 | 'height' : embedPlayer.getHeight() |
498 | | - }) |
| 498 | + }); |
499 | 499 | // Restore the play button |
500 | 500 | $interface.find('.play-btn-large').animate( { |
501 | 501 | 'left' : ( ( embedPlayer.getPlayerWidth() - this.getComponentWidth( 'playButtonLarge' ) ) / 2 ), |
— | — | @@ -746,7 +746,7 @@ |
747 | 747 | 'padding' : '4px' |
748 | 748 | }) |
749 | 749 | .html( warningMsg ) |
750 | | - ) |
| 750 | + ); |
751 | 751 | |
752 | 752 | $targetWarning = $j( '#warningOverlay_' + embedPlayer.id ); |
753 | 753 | |
— | — | @@ -779,7 +779,7 @@ |
780 | 780 | $targetWarning.append( |
781 | 781 | $j('<span />') |
782 | 782 | .text( gM( 'mwe-embedplayer-do_not_warn_again' ) ) |
783 | | - ) |
| 783 | + ); |
784 | 784 | } |
785 | 785 | // Check the global config before showing the warning |
786 | 786 | if ( mw.getConfig( preferenceId ) === true ){ |
— | — | @@ -850,7 +850,7 @@ |
851 | 851 | mw.log('change::update volume:' + percent); |
852 | 852 | embedPlayer.setVolume( percent ); |
853 | 853 | } |
854 | | - } |
| 854 | + }; |
855 | 855 | |
856 | 856 | if ( this.volume_layout == 'vertical' ) { |
857 | 857 | sliderConf[ 'orientation' ] = "vertical"; |
— | — | @@ -920,7 +920,7 @@ |
921 | 921 | ctrlObj.getPlayerSelect() |
922 | 922 | ); |
923 | 923 | } |
924 | | - ) |
| 924 | + ); |
925 | 925 | }, |
926 | 926 | |
927 | 927 | // Download the file menu |
— | — | @@ -936,7 +936,7 @@ |
937 | 937 | ); |
938 | 938 | $j( ctrlObj.embedPlayer ).trigger( 'showDownloadEvent' ); |
939 | 939 | } |
940 | | - ) |
| 940 | + ); |
941 | 941 | }, |
942 | 942 | |
943 | 943 | // Share the video menu |
— | — | @@ -950,7 +950,7 @@ |
951 | 951 | ); |
952 | 952 | $j( ctrlObj.embedPlayer ).trigger( 'showShareEvent' ); |
953 | 953 | } |
954 | | - ) |
| 954 | + ); |
955 | 955 | }, |
956 | 956 | |
957 | 957 | 'aboutPlayerLibrary' : function( ctrlObj ){ |
— | — | @@ -963,7 +963,7 @@ |
964 | 964 | ); |
965 | 965 | $j( ctrlObj.embedPlayer ).trigger( 'aboutPlayerLibrary' ); |
966 | 966 | } |
967 | | - ) |
| 967 | + ); |
968 | 968 | } |
969 | 969 | }, |
970 | 970 | |
— | — | @@ -1064,7 +1064,7 @@ |
1065 | 1065 | $j('<div />') |
1066 | 1066 | .addClass( 'overlay-content' ) |
1067 | 1067 | .append( overlayContent ) |
1068 | | - ) |
| 1068 | + ); |
1069 | 1069 | |
1070 | 1070 | // Clone the overlay menu css: |
1071 | 1071 | var shadowCss = jQuery.extend( true, {}, overlayMenuCss ); |
— | — | @@ -1100,12 +1100,12 @@ |
1101 | 1101 | .append( |
1102 | 1102 | gM('mwe-embedplayer-about-library-desc', |
1103 | 1103 | $j('<a />').attr({ |
1104 | | - 'href' : MW_EMBED_LIBRARY_PAGE, |
| 1104 | + 'href' : mw.getConfig( 'EmbedPlayer.LibraryPage' ), |
1105 | 1105 | 'target' : '_new' |
1106 | 1106 | }) |
1107 | 1107 | ) |
1108 | 1108 | ) |
1109 | | - ) |
| 1109 | + ); |
1110 | 1110 | }, |
1111 | 1111 | /** |
1112 | 1112 | * Get the "share" interface |
— | — | @@ -1135,7 +1135,7 @@ |
1136 | 1136 | gM( 'mwe-embedplayer-embed_site_or_blog' ) |
1137 | 1137 | ) |
1138 | 1138 | ) |
1139 | | - ) |
| 1139 | + ); |
1140 | 1140 | |
1141 | 1141 | $shareInterface.append( |
1142 | 1142 | $j( '<h2 />' ) |
— | — | @@ -1242,7 +1242,7 @@ |
1243 | 1243 | |
1244 | 1244 | // Close fullscreen if we are in fullscreen mode |
1245 | 1245 | if( _this.fullscreenMode ){ |
1246 | | - _this.restoreWindowPlayer() |
| 1246 | + _this.restoreWindowPlayer(); |
1247 | 1247 | } |
1248 | 1248 | |
1249 | 1249 | embedPlayer.mediaElement.selectSource( sourceId ); |
— | — | @@ -1261,10 +1261,10 @@ |
1262 | 1262 | } ) |
1263 | 1263 | .hover( |
1264 | 1264 | function(){ |
1265 | | - $j( this ).addClass('ui-state-active') |
| 1265 | + $j( this ).addClass('ui-state-active'); |
1266 | 1266 | }, |
1267 | 1267 | function(){ |
1268 | | - $j( this ).removeClass('ui-state-active') |
| 1268 | + $j( this ).removeClass('ui-state-active'); |
1269 | 1269 | } |
1270 | 1270 | ); |
1271 | 1271 | } |
— | — | @@ -1282,7 +1282,7 @@ |
1283 | 1283 | |
1284 | 1284 | } else { |
1285 | 1285 | // No player available: |
1286 | | - $playerSelect.append( gM( 'mwe-embedplayer-no-player', source.getTitle() ) ) |
| 1286 | + $playerSelect.append( gM( 'mwe-embedplayer-no-player', source.getTitle() ) ); |
1287 | 1287 | } |
1288 | 1288 | } ); |
1289 | 1289 | |
— | — | @@ -1394,7 +1394,7 @@ |
1395 | 1395 | $j('<h2 />') |
1396 | 1396 | .text( gM( 'mwe-embedplayer-download_full' ) ), |
1397 | 1397 | $mediaList |
1398 | | - ) |
| 1398 | + ); |
1399 | 1399 | } |
1400 | 1400 | |
1401 | 1401 | if( $textList.find('li').length != 0 ) { |
— | — | @@ -1402,7 +1402,7 @@ |
1403 | 1403 | $j('<h2 />') |
1404 | 1404 | .html( gM( 'mwe-embedplayer-download_text' ) ), |
1405 | 1405 | $textList |
1406 | | - ) |
| 1406 | + ); |
1407 | 1407 | } |
1408 | 1408 | }, |
1409 | 1409 | |
— | — | @@ -1430,7 +1430,7 @@ |
1431 | 1431 | if ( this.components[ component_id ] |
1432 | 1432 | && this.components[ component_id ].h ) |
1433 | 1433 | { |
1434 | | - return this.components[ component_id ].h |
| 1434 | + return this.components[ component_id ].h; |
1435 | 1435 | } |
1436 | 1436 | return false; |
1437 | 1437 | }, |
— | — | @@ -1444,7 +1444,7 @@ |
1445 | 1445 | if ( this.components[ component_id ] |
1446 | 1446 | && this.components[ component_id ].w ) |
1447 | 1447 | { |
1448 | | - return this.components[ component_id ].w |
| 1448 | + return this.components[ component_id ].w; |
1449 | 1449 | } |
1450 | 1450 | return false; |
1451 | 1451 | }, |
— | — | @@ -1497,7 +1497,7 @@ |
1498 | 1498 | var $icon = $j('<span />') |
1499 | 1499 | .addClass( 'ui-icon' ); |
1500 | 1500 | if( buttonConfig['class'] ){ |
1501 | | - $icon.addClass( buttonConfig['class'] ) |
| 1501 | + $icon.addClass( buttonConfig['class'] ); |
1502 | 1502 | } |
1503 | 1503 | // Check for source ( by configuration convention this is a 16x16 image |
1504 | 1504 | if( buttonConfig.iconurl ){ |
— | — | @@ -1505,7 +1505,7 @@ |
1506 | 1506 | $j('<img />') |
1507 | 1507 | .css({'width': '16px', 'height': '16px'}) |
1508 | 1508 | .attr('src', buttonConfig.iconurl ) |
1509 | | - ) |
| 1509 | + ); |
1510 | 1510 | } |
1511 | 1511 | |
1512 | 1512 | return $j('<a />') |
— | — | @@ -1524,7 +1524,7 @@ |
1525 | 1525 | .append( |
1526 | 1526 | $icon |
1527 | 1527 | ) |
1528 | | - ) |
| 1528 | + ); |
1529 | 1529 | } |
1530 | 1530 | }, |
1531 | 1531 | |
— | — | @@ -1622,7 +1622,7 @@ |
1623 | 1623 | .buttonHover() |
1624 | 1624 | .click( function() { |
1625 | 1625 | ctrlObj.showTextInterface(); |
1626 | | - } ) |
| 1626 | + } ); |
1627 | 1627 | } |
1628 | 1628 | }, |
1629 | 1629 | |
— | — | @@ -1681,7 +1681,7 @@ |
1682 | 1682 | .addClass( "ui-widget time-disp" ) |
1683 | 1683 | .append( |
1684 | 1684 | ctrlObj.embedPlayer.getTimeRange() |
1685 | | - ) |
| 1685 | + ); |
1686 | 1686 | } |
1687 | 1687 | }, |
1688 | 1688 | |
Index: branches/MwEmbedStandAlone/remotes/mediaWiki.js |
— | — | @@ -186,9 +186,7 @@ |
187 | 187 | 'target' : '#bodyContent', |
188 | 188 | 'catLinks' : catLinksHtml |
189 | 189 | }); |
190 | | - window.mwSequencerRemote.drawUI(); |
191 | | - |
192 | | - //setTimeout(function(){ |
| 190 | + window.mwSequencerRemote.drawUI(); |
193 | 191 | }); |
194 | 192 | } |
195 | 193 | |