OK, I reply to myself as I solved my problem:
First you need to replace the file mediaplayer.swf in the folder "jw" with the lastest version of jwplayer (4.x) and insert a skin file, like "simple.swf" in the same folder. This file can be found here :
http://developer.longtailvideo.com/trac/browser/skins/Then, you will need to change a bit of the index.php file by this:
- Code: Select all
<script type="text/javascript" src="<?php echo $cfg['jw_urls']['js']; ?>"></script>
<p id="player1"><a href="http://www.macromedia.com/go/getflashplayer">Get the Flash Player</a> to see this player.</p>
<script type="text/javascript">
var s1 = new SWFObject('<?php echo $link; ?>','mpl',<?php echo $width; ?>,<?php echo $height; ?>,'8');
s1.addParam('allowscriptaccess','always');
s1.addParam('allowfullscreen','true');
s1.addVariable('height',<?php echo $height; ?>);
s1.addVariable('playlist','bottom');
s1.addVariable('playlistsize','420');
s1.addVariable('width',<?php echo $width; ?>);
s1.addVariable('autostart','true');
s1.addVariable('repeat','list');
s1.addVariable('shuffle','false');
s1.addVariable('abouttext','Return to playlist');
s1.addVariable('aboutlink','http://yoururl/mp3/');
s1.addVariable("backcolor","0x9e9e9e");
s1.addVariable("frontcolor","0x333333");
s1.addVariable("lightcolor","0x555555");
and this tiny code :
- Code: Select all
$link = $cfg['jw_urls']['swf'].'?file='.urlencode($playlist).'&skin=jw/simple.swf';
Finally, change the size of the external player by this (this code can be found in the index.php or kpplaylist.php):
- Code: Select all
// size of window for "external" player
$cfg['jw_window_x'] = 385;
$cfg['jw_window_y'] = 725;
... have fun with the latest jwplayer, which can read more audio files.
