Changeset 8

Show
Ignore:
Timestamp:
05/16/07 05:01:27
Author:
ed
Message:

enhance mp3 player using now player from jeroenwijering.com and set up last version of flv-player

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • xmlautoindex/trunk/share/themes/explode/README

    r1 r8  
    11Icons are from Krystal kde's theme 
    22 
    3 audio-player is fmplayer from: 
    4         website: http://framaplayer.sourceforge.net 
    5         author: 
    6         license: GNU/GPL 
    7         note: I am thinking of using player from www.jeroenwijering.com 
    8          
    9  
    10 video-player is flvplayer from: 
     3mp3-player and flv-player are from: 
    114        website: www.jeroenwijering.com 
    125        author: mail@jeroenwijering.com 
  • xmlautoindex/trunk/share/themes/explode/template.xslt

    r1 r8  
    7979                         
    8080                        <script src="{$base}/default.js" type="text/javascript"></script> 
     81                        <script src="{$base}/swfobject.js" type="text/javascript"></script> 
    8182                        <title><xsl:value-of select="$title" /></title> 
    8283                </head> 
     
    203204                    <div id="about" style="text-align: justify;"> 
    204205                      <div class="actions"> 
    205                         <img src='{$base}/nav/crystal/attach.png' />&#160; 
    206                         <xsl:value-of select="$lang[@id='contactMe']"/><br/> 
    207                         <span style="text-align: right;"> 
    208                           <a href="mailto:xmlautoindex@vanbelle.fr"> <img src='{$base}/nav/crystal/mail_forward.png' />&#160; Edouard.</a> 
    209                           <a href="http://www.xmlautoindex.org/"><img src='{$base}/nav/crystal/network.png' />&#160; xmlAutoIndex.</a> 
    210                         </span> 
     206                        <img src='{$base}/nav/crystal/attach.png' />&#160;powered by : 
     207                          <a href="http://www.xmlautoindex.org/">XmlAutoIndex.</a> 
    211208                      </div> 
    212                      <!--p style="margin: 4px;"> 
    213                      </p--> 
    214                      <!--p> 
    215                       <a href="javascript:getMetaData('24022006.3gp?display=meta');">Test</a> 
    216                      </p--> 
    217209                    </div> 
    218210                     
     
    420412                                <param name="codebase" value="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" /> 
    421413                                  --> 
     414                                  <!-- 
    422415                            <object  
    423416                                  type     = "application/x-shockwave-flash" 
     
    429422                                <param name="movie" value="{$base}/video-player.swf?file={$selected-file/previews/preview[@format='flv']/@href}" /> 
    430423                                 
    431                                 <!-- div will be displayed if fladsh plugin is not avaible --> 
    432424                                <xsl:if test="count( $selected-file/previews/preview[@format='size0']) > 0"> 
    433425                                        <img  
     
    435427                                          src = "{$selected-file/previews/preview[@format='size0']/@href}" /> 
    436428                                </xsl:if> 
    437                             </object> 
     429                            </object> --> 
     430                             
     431                            <p id="flv-player">download flash player to watch movie</p> 
     432                            <script type="text/javascript"> 
     433                                  var player = new SWFObject("<xsl:value-of select="$base"/>/flv-player.swf", "single", "352", "280", "7"); 
     434                                  player.addVariable("file","<xsl:value-of select="$selected-file/previews/preview[@format='flv']/@href" />"); 
     435                                  player.addParam("allowfullscreen","true"); 
     436                                  //player.addVariable("backcolor","0x00000"); 
     437                                  //player.addVariable("frontcolor","0xEECCDD"); 
     438                                  //player.addVariable("lightcolor","0xCC0066"); 
     439                                  //player.addVariable("image","<xsl:value-of select="$selected-file/previews/preview[@format='size0']/@href" />"); <!-- TODO: make available size0 --> 
     440                                  player.addVariable("image","<xsl:value-of select="$selected-file/previews/preview[@format='thumb']/@href" />");  
     441                                  player.write("flv-player"); 
     442                            </script> 
     443 
    438444 
    439445                          </xsl:when> 
     
    441447                          <xsl:when test="count( $selected-file/previews/preview[@format='fmxml'] ) > 0"> 
    442448 
    443                             <object  
     449                            <p id="mp3-player">download flash player to listen music</p> 
     450                            <script type="text/javascript"> 
     451                                  var player = new SWFObject("<xsl:value-of select="$base"/>/mp3-player.swf", "playlist", "340", "270", "7"); 
     452                                  player.addVariable("file","<xsl:value-of select="$selected-file/previews/preview[@format='audioPlaylist']/@href" />"); 
     453                                  //player.addVariable("backcolor","0x00000"); 
     454                                  //player.addVariable("frontcolor","0xEECCDD"); 
     455                                  //player.addVariable("lightcolor","0xCC0066"); 
     456                                  player.addVariable("displayheight","0"); 
     457                                  player.addVariable("repeat","list"); 
     458                                  player.addVariable("shuffle","false"); 
     459                                  //player.addVariable("audio","Track02.mp3"); 
     460                                  //player.addVariable("enablejs","true"); 
     461                                  //player.addVariable("javascriptid","mpl"); 
     462                                  player.write("mp3-player"); 
     463                            </script> 
     464                             
     465                            <!-- object  
    444466                                  type     = "application/x-shockwave-flash" 
    445467                                  data     = "{$base}/audio-player.swf" 
     
    453475 
    454476                                <xsl:value-of select="$lang[@id='flashRequired']" /> 
    455                             </object
     477                            </object --
    456478 
    457479                          </xsl:when>