Changeset 905


Ignore:
Timestamp:
03/26/10 06:40:02 (3 years ago)
Author:
jeroen
Message:

updated the testing tool with options as part of #760. Next, moved the v5 plugin branches to the plugins/xxx/v5/ folders. Last, removed a few plugins I built but were not tested released (spoton,popout,tabbar,replay)

Files:
4 added
7 deleted
15 edited
2 copied
19 moved

Legend:

Unmodified
Added
Removed
  • plugins/hd/v5/build/build.bat

    r866 r905  
    66echo "Compiling player 5 plugin..." 
    77 
    8 %FLEXPATH%\bin\mxmlc ..\src\com\longtailvideo\plugins\hd\HD.as -sp ..\src\ -o ..\bin-release\hd.swf -library-path+=..\libs -load-externs ..\libs\sdk-classes.xml  -use-network=false -debug=false 
     8%FLEXPATH%\bin\mxmlc ..\src\com\longtailvideo\plugins\hd\HD.as -sp ..\src\ -o ..\hd.swf -library-path+=..\libs -load-externs ..\libs\sdk-classes.xml  -use-network=false -debug=false 
  • plugins/hd/v5/build/build.sh

    r830 r905  
    55 
    66echo "Compiling with MXMLC..." 
    7 $FLEXPATH/bin/mxmlc ../src/com/longtailvideo/plugins/hd/HD.as -sp ../src -o ../bin-release/hd.swf -library-path+=../libs -use-network=false -optimize=true -incremental=false 
     7$FLEXPATH/bin/mxmlc ../src/com/longtailvideo/plugins/hd/HD.as -sp ../src -o ../hd.swf -library-path+=../libs -use-network=false -optimize=true -incremental=false 
  • skins/beelden/beelden.xml

    r892 r905  
    2222                                <element name="shade" src="background.png" /> 
    2323                                <element name="divider" src="divider.png" /> 
    24                                                                  
     24 
    2525                                <element name="blankButton" src="blankButton.png" /> 
    2626                                <element name="blankButtonOver" src="blankButton.png" /> 
    27                                  
     27 
    2828                                <element name="playButton" src="playButton.png" /> 
    2929                                <element name="playButtonOver" src="playButtonOver.png" /> 
    30                                  
     30 
    3131                                <element name="pauseButton" src="pauseButton.png" /> 
    3232                                <element name="pauseButtonOver" src="pauseButtonOver.png" /> 
    33                                  
    34                                 <element name="timeSliderRail" src="timeSliderRail.png" />                                                               
     33 
     34                                <element name="timeSliderRail" src="timeSliderRail.png" /> 
    3535                                <element name="timeSliderBuffer" src="timeSliderBuffer.png" /> 
    3636                                <element name="timeSliderProgress" src="timeSliderProgress.png" /> 
    3737                                <element name="timeSliderThumb" src="timeSliderThumb.png" /> 
    38                                  
     38 
    3939                                <element name="fullscreenButton" src="fullscreenButton.png" /> 
    4040                                <element name="fullscreenButtonOver" src="fullscreenButtonOver.png" /> 
    41                                  
     41 
    4242                                <element name="normalscreenButton" src="normalscreenButton.png" /> 
    4343                                <element name="normalscreenButtonOver" src="normalscreenButtonOver.png" /> 
    44                                  
     44 
    4545                                <element name="muteButton" src="muteButton.png" /> 
    4646                                <element name="muteButtonOver" src="muteButtonOver.png" /> 
    47                                  
     47 
    4848                                <element name="unmuteButton" src="unmuteButton.png" /> 
    4949                                <element name="unmuteButtonOver" src="unmuteButtonOver.png" /> 
    50                                  
     50 
    5151                                <element name="volumeSliderRail" src="volumeSliderRail.png" /> 
    5252                                <element name="volumeSliderBuffer" src="volumeSliderBuffer.png" /> 
     
    5454                        </elements> 
    5555                </component> 
    56                  
     56 
    5757                <component name="display"> 
    5858                        <elements> 
     
    6464                        </elements> 
    6565                </component> 
    66                  
     66 
    6767                <component name="dock"> 
    6868                        <elements> 
     
    7171                        </elements> 
    7272                </component> 
    73                  
     73 
    7474                <component name="playlist"> 
    7575                        <elements> 
     
    8181                        </elements> 
    8282                </component> 
    83                  
     83 
    8484                <component name="hd"> 
    8585                        <elements> 
  • skins/lulu/lulu.xml

    r874 r905  
    3636                                <element name="unmuteButton" src="unmuteButton.png" /> 
    3737                                 
    38                                 <element name="volumeSliderRail" src="timeSliderRail.png" /> 
    39                                 <element name="volumeSliderProgress" src="timeSliderProgress.png" /> 
    40                                 <element name="volumeSliderThumb" src="timeSliderThumb.png" /> 
     38                                <element name="volumeSliderRail" src="volumeSliderRail.png" /> 
     39                                <element name="volumeSliderProgress" src="volumeSliderProgress.png" /> 
     40                                <element name="volumeSliderThumb" src="volumeSliderThumb.png" /> 
    4141                                 
    4242                                <element name="fullscreenButton" src="fullscreenButton.png" /> 
    43                                  
    4443                                <element name="normalscreenButton" src="normalscreenButton.png" /> 
    4544                                 
  • testing/files/style.css

    r888 r905  
    44body { 
    55        font-family: Arial, sans-serif; 
    6         padding: 20px 40px; 
     6        padding: 0 40px 20px 40px; 
    77} 
    88a {  
     
    126126        background: #e4eed3; 
    127127} 
     128#optionsform { 
     129        height: 20px; 
     130} 
     131#optionsform select { 
     132        width: 120px; 
     133        margin-left: 20px; 
     134        float: right; 
     135        clear: none; 
     136} 
  • testing/index.html

    r889 r905  
    44<link rel="stylesheet" href="files/style.css" type="text/css"> 
    55<script type="text/javascript" src="files/jquery.js"></script> 
     6<script type="text/javascript" src="files/jquery.cookie.js"></script> 
    67<script type="text/javascript" src="files/swfobject.js"></script> 
    78<script type="text/javascript" src="settings.js"></script> 
     
    2021        /** When jQuery is loaded, we initialize everything. **/ 
    2122        $().ready(function() { initializeTool(); }); 
    22         /** Load the settings and querystring to initialize the tool. **/ 
     23        /** Initialize the tool options. **/ 
    2324        function initializeTool() { 
     25                var ops = ['api_forms','plugin_api','skinning']; 
     26                for (var i=0; i<ops.length; i++) {  
     27                        if($.cookie(ops[i])) { 
     28                                settings[ops[i]] = $.cookie(ops[i]); 
     29                                $('#'+ops[i]).val($.cookie(ops[i])); 
     30                        } 
     31                        $('#'+ops[i]).change(function(evt) { 
     32                                $.cookie($(evt.currentTarget).attr('id'),$(evt.currentTarget).val(),{expires:99}); 
     33                                location.reload(true); 
     34                        }); 
     35                } 
     36                loadSettings(); 
     37        } 
     38        /** Load the settings and querystring. **/ 
     39        function loadSettings() { 
    2440                // load the settings. 
    25                 for (dct in settings) { 
    26                         for (itm in settings[dct]) { 
    27                                 $("#"+dct).append("<option>"+itm+"</option>"); 
    28                         } 
    29                 } 
     41                for (itm in settings['examples']) { $("#examples").append("<option>"+itm+"</option>"); } 
     42                for (itm in settings['players']) { $("#players").append("<option>"+itm+"</option>"); } 
     43                for (itm in settings[settings.skinning+'_skins']) { $("#skins").append("<option>"+itm+"</option>"); } 
     44                for (itm in settings[settings.plugin_api+'_plugins']) { $("#plugins").append("<option>"+itm+"</option>"); } 
    3045                // When an example is selected, we reload the entire page. 
    3146                $("#examples").change(function(evt) { 
     
    4358                if(variables['skin']) { $('#skins').val(variables['skin']); } 
    4459                $("#skins").change(function(evt) { insertPlayer(evt); }); 
    45                 if(variables['plugins']) {  $('#plugins').val(variables['plugins'].split(',')); } 
     60                if(variables['plugins']) { $('#plugins').val(variables['plugins'].split(',')); } 
    4661                $("#plugins").change(function(evt) { reloadFieldsets(evt); }); 
    4762                // set the handler on the flashvars and load the whole bunch. 
     
    7893                        for (var i=0; i<arr.length; i++) { 
    7994                                parsing++; 
    80                                 swf = settings.plugins[arr[i]]; 
     95                                swf = settings[settings.plugin_api+'_plugins'][arr[i]]; 
    8196                                xml = swf.substr(0,swf.length-4) + '.xml'; 
    8297                                parsePluginXML(xml,arr[i]); 
     
    171186                variables['player'] = $('#players').val(); 
    172187                if($("#skins").val() != 'none') { 
    173                         vrs['skin'] = settings.skins[$("#skins").val()]; 
     188                        vrs['skin'] = settings[settings.skinning+'_skins'][$("#skins").val()]; 
    174189                        variables['skin'] = $("#skins").val(); 
    175190                } 
     
    178193                        var arr = $("#plugins").val(); 
    179194                        for(var i=0; i<arr.length; i++) { 
    180                                 plg.push(settings.plugins[arr[i]]); 
     195                                plg.push(settings[settings.plugin_api+'_plugins'][arr[i]]); 
    181196                        } 
    182197                        vrs['plugins'] = plg.join(','); 
     
    219234        /** When the player is ready and the API forms can be shown, display them. **/ 
    220235        function playerReady(obj) { 
    221                 if(settings['show_api_forms']) { 
     236                if(settings['api_forms'] == 'show') { 
    222237                        player = document.getElementById(obj['id']); 
    223238                        $('#javascript').css('display','block'); 
     
    311326 
    312327 
     328<form id="optionsform"> 
     329        <select name="api_forms" id="api_forms"> 
     330                <option value="hide">hide API forms</option> 
     331                <option value="show">show API forms</option> 
     332        </select> 
     333        <select name="skinning" id="skinning"> 
     334                <option value="png">PNG skins</option> 
     335                <option value="swf">SWF skins</option> 
     336        </select> 
     337        <select name="plugin_api" id="plugin_api"> 
     338                <option value="v4">v4 plugins</option> 
     339                <option value="v5">v5 plugins</option> 
     340        </select> 
     341</form> 
     342 
    313343 
    314344 
     
    321351        </fieldset> 
    322352</form> 
    323  
    324353 
    325354 
  • testing/settings.js

    r885 r905  
    11var settings = { 
    2         /** Show or hide the API (vars, events, listeners) forms. **/ 
    3         show_api_forms:true, 
     2        /** Global settings. **/ 
     3        api_forms:'hide', 
     4        plugin_api:'v4', 
     5        skinning:'png', 
    46        /** Player versions to test. **/ 
    57        players: { 
     
    1618                '4.0':'../tags/mediaplayer-4.0/player.swf' 
    1719        }, 
    18         /** Available plugins to test. **/ 
    19         plugins: { 
     20        /** Available JW4 plugins to test. **/ 
     21        v4_plugins: { 
     22                agegate:'../plugins/agegate/v4/agegate.swf', 
    2023                audiodescription:'../plugins/audiodescription/v4/audiodescription.swf', 
    2124                captions:'../plugins/captions/v4/captions.swf', 
    2225                clickproxy:'../plugins/clickproxy/clickproxy.swf', 
    23                 hd:'../plugins/hd/hd.swf', 
     26                hd:'../plugins/hd/v4/hd.swf', 
    2427                livestream:'../plugins/livestream/livestream.swf', 
    2528                metaviewer:'../plugins/metaviewer/metaviewer.swf', 
     
    2730                revolt:'../plugins/revolt/revolt.swf', 
    2831                searchbar:'../plugins/searchbar/searchbar.swf', 
    29                 sharing:'../plugins/sharing/sharing.swf', 
     32                sharing:'../plugins/sharing/v4/sharing.swf', 
    3033                snapshot:'../plugins/snapshot/snapshot.swf' 
    3134        }, 
    32         /** Skins to test. **/ 
    33         skins: { 
     35        /** Available JW5 plugins to test. **/ 
     36        v5_plugins: { 
     37                agegate:'../plugins/agegate/v5/agegate.swf', 
     38                captions:'../plugins/captions/v5/captions.swf', 
     39                hd:'../plugins/hd/v5/hd.swf', 
     40                sharing:'../plugins/sharing/v5/sharing.swf' 
     41        }, 
     42        /** PNG skins to test. **/ 
     43        png_skins: { 
    3444                none:'', 
    35                 beelden_xml:'../skins/beelden/beelden.xml', 
     45                beelden:'../skins/beelden/beelden.xml', 
     46                bekle:'../skins/bekle/bekle.xml', 
     47                bluemetal:'../skins/bluemetal/bluemetal.xml', 
     48                classic:'../skins/classic/classic.xml', 
     49                five:'../skins/five/five.xml', 
     50                grungetape:'../skins/grungetape/grungetape.xml', 
     51                icecreamsneaka:'../skins/icecreamsneaka/icecreamsneaka.xml', 
     52                kleur:'../skins/kleur/kleur.xml', 
     53        lulu:'../skins/lulu/lulu.xml', 
     54                modieus:'../skins/modieus/modieus.xml', 
     55                nacht:'../skins/nacht/nacht.xml', 
     56                playcasso:'../skins/playcasso/playcasso.xml', 
     57                schoon:'../skins/schoon/schoon.xml', 
     58                snel:'../skins/snel/snel.xml', 
     59        stormtrooper:'../skins/stormtrooper/stormtrooper.xml' 
     60        }, 
     61        /** SWF skins to test. **/ 
     62        swf_skins: { 
     63                none:'', 
    3664                bekle:'../skins/bekle/bekle.swf', 
    37                 bekle_xml:'../skins/bekle/bekle.xml', 
    3865                bluemetal:'../skins/bluemetal/bluemetal.swf', 
    39                 bluemetal_xml:'../skins/bluemetal/bluemetal.xml', 
    4066                classic:'../skins/classic/classic.swf', 
    41                 classic_xml:'../skins/classic/classic.xml', 
    4267                five:'../skins/five/five.swf', 
    43                 five_xml:'../skins/five/five.xml', 
    4468                grungetape:'../skins/grungetape/grungetape.swf', 
    45                 grungetape_xml:'../skins/grungetape/grungetape.xml', 
    4669                icecreamsneaka:'../skins/icecreamsneaka/icecreamsneaka.swf', 
    47                 icecreamsneaka_xml:'../skins/icecreamsneaka/icecreamsneaka.xml', 
    48         lulu_xml:'../skins/lulu/lulu.xml', 
     70                kleur:'../skins/kleur/kleur.swf', 
    4971                modieus:'../skins/modieus/modieus.swf', 
    50                 modieus_xml:'../skins/modieus/modieus.xml', 
     72                nacht:'../skins/nacht/nacht.swf', 
    5173                playcasso:'../skins/playcasso/playcasso.swf', 
    52                 playcasso_xml:'../skins/playcasso/playcasso.xml', 
    5374                schoon:'../skins/schoon/schoon.swf', 
    54                 schoon_xml:'../skins/schoon/schoon.xml', 
    5575                snel:'../skins/snel/snel.swf', 
    56                 snel_xml:'../skins/snel/snel.xml', 
    57                 stijl:'../skins/stijl/stijl.swf', 
    58                 stijl_xml:'../skins/stijl/stijl.xml', 
    59         stormtrooper_xml:'../skins/stormtrooper/stormtrooper.xml' 
     76                stijl:'../skins/stijl/stijl.swf' 
    6077        }, 
    6178        /** All the setup examples with their flashvars. **/ 
     
    264281                }, 
    265282                '     ': {}, 
    266                 'Audiodescription and captions plugins': { 
     283                'Audiodescription plugin': { 
    267284                        file:'../../testing/files/corrie.flv', 
    268285                        height:240, 
    269286                        width:500, 
    270                         plugins:'audiodescription,captions', 
    271                         'captions.file':'files/corrie.xml', 
     287                        plugins:'audiodescription', 
    272288                        'audiodescription.file':'files/corrie.mp3' 
    273289                }, 
    274                 'Clickproxy plugin': { 
    275                         height:240, 
    276                         width:800, 
    277                         file:'../../testing/files/bunny.flv', 
    278                         plugins:'clickproxy', 
    279                         'clickproxy.listener':'$.alert' 
     290                'Captions plugins': { 
     291                        file:'../../testing/files/corrie.flv', 
     292                        height:240, 
     293                        width:500, 
     294                        plugins:'captions', 
     295                        'captions.file':'files/corrie.xml' 
    280296                }, 
    281297                'HD plugin': { 
     
    334350                        'sharing.code':'<embed src="http://content.bitsontherun.com/players/nPripu9l-1754.swf" width="400" height="250" allowscriptaccess="always" />', 
    335351                        'sharing.link':'http://www.bigbuckbunny.org/' 
    336                 }, 
    337                 'Snapshot plugin': { 
    338                         file:'../../testing/files/bunny.mp4', 
    339                         height:260, 
    340                         width:600, 
    341                         plugins:'snapshot', 
    342                         'snapshot.script':'files/snapshot.php' 
    343352                } 
    344353        } 
  • trunk/fl5/src/com/longtailvideo/jwplayer/player/Player.as

    r730 r905  
    224224                        return controller.setPlaylistIndex(index); 
    225225                } 
    226                  
    227                  
     226 
    228227                /** 
    229228                 * @inheritDoc 
     
    232231                        return controller.next(); 
    233232                } 
    234                  
    235                  
     233 
    236234                /** 
    237235                 * @inheritDoc 
     
    240238                        return controller.previous(); 
    241239                } 
    242                  
    243                  
     240 
    244241                /** 
    245242                 * @inheritDoc 
     
    248245                        return controller.redraw(); 
    249246                } 
    250                  
    251                  
     247 
    252248                /** 
    253249                 * @inheritDoc 
     
    256252                        return model.fullscreen; 
    257253                } 
    258                  
    259                  
     254 
    260255                /** 
    261256                 * @inheritDoc 
     
    264259                        controller.fullscreen(on); 
    265260                } 
    266                  
    267                  
     261 
    268262                /** 
    269263                 * @inheritDoc 
     
    272266                        return controller.link(index); 
    273267                } 
    274                  
    275                  
     268 
    276269                /** 
    277270                 * @inheritDoc 
     
    280273                        return view.components; 
    281274                } 
    282                  
    283                  
     275 
    284276                /** 
    285277                 * @inheritDoc 
     
    288280                        view.overrideComponent(plugin); 
    289281                } 
    290                  
     282 
    291283                /**  
    292284                 * @private 
     
    297289                        return view.getPlugin(id); 
    298290                }  
    299                  
     291 
    300292                /** The player should not accept any calls referencing its display stack **/ 
    301293                public override function addChild(child:DisplayObject):DisplayObject { 
Note: See TracChangeset for help on using the changeset viewer.