Index: branches/MwEmbedStandAlone/modules/AddMedia/mw.FirefoggGUI.js |
— | — | @@ -129,6 +129,7 @@ |
130 | 130 | 'webvideo': { |
131 | 131 | 'desc': gM( 'fogg-webvideo-desc' ), |
132 | 132 | 'conf': { |
| 133 | + 'videoCodec' : 'theora', |
133 | 134 | 'maxSize' : 400, |
134 | 135 | 'videoBitrate' : 544, |
135 | 136 | 'audioBitrate' : 96, |
— | — | @@ -138,6 +139,7 @@ |
139 | 140 | 'savebandwidth': { |
140 | 141 | 'desc': gM( 'fogg-savebandwidth-desc' ), |
141 | 142 | 'conf': { |
| 143 | + 'videoCodec' : 'theora', |
142 | 144 | 'maxSize' : 200, |
143 | 145 | 'videoBitrate' : 164, |
144 | 146 | 'audioBitrate' : 32, |
— | — | @@ -150,6 +152,7 @@ |
151 | 153 | 'hqstream': { |
152 | 154 | 'desc': gM( 'fogg-highquality-desc' ), |
153 | 155 | 'conf': { |
| 156 | + 'videoCodec' : 'theora', |
154 | 157 | 'maxSize' : 1080, |
155 | 158 | 'videoQuality' : 6, |
156 | 159 | 'audioQuality' : 3, |
— | — | @@ -736,6 +739,7 @@ |
737 | 740 | * Update the UI due to a change in preset |
738 | 741 | */ |
739 | 742 | updatePresetSelection: function( presetKey ) { |
| 743 | + var _this = this; |
740 | 744 | // Update the local configuration |
741 | 745 | this.local_settings['default'] = presetKey; |
742 | 746 | mw.log( 'update preset desc: ' + presetKey ); |
— | — | @@ -748,6 +752,14 @@ |
749 | 753 | if( presetKey != 'custom' ){ |
750 | 754 | // Copy the preset into custom settings |
751 | 755 | this.local_settings.presets['custom']['conf'] = $j.extend( {}, this.local_settings.presets[presetKey]['conf'] ); |
| 756 | + |
| 757 | + // Set the actual HTML & widgets based on any local settings values: |
| 758 | + $j.each( _this.local_settings.presets['custom']['conf'], function( inx, val ) { |
| 759 | + if ( $j( _this.selector + ' ._' + inx ).length != 0 ) { |
| 760 | + $j( _this.selector + ' ._' + inx ).val( val ); |
| 761 | + } |
| 762 | + } ); |
| 763 | + |
752 | 764 | } |
753 | 765 | // Update the preset title |
754 | 766 | $j( this.selector + ' .gd_preset' ) |