Mp3 Player
Stoney
- javascript
Nabend Leute,
ich habe ein Problem ich habe mir einen Flash Mp3 Player aus dem Netz geladen um diesen auf einer Internetseite zu verwenden, allerdings hab ich jetzt das Problem, dass dieser nicht auf dem Internet Explorer angezeigt wird. Ich sitzte schon den ganzen Abend bei der Fehlersuche, aber ich finde ihn einfach nicht ....
Hier geht es zum Player:
http://www.ankum-live.de/2007/Ankum-Live.de/player/player.html
(Musik ist doof, das ist mir bewusst. Ist ja nur zum testen)
Und das sind die Quelltexte dafür:
(html-Dokument "player.html")
<head>
<title>Ankum-Live 2007 - Player</title>
<meta http-equiv="content-type" content="text/html; charset=iso-8859-1" />
<meta http-equiv="pragma" content="cache" />
<meta name="robots" content="index,follow" />
<meta name="description" content="beschreibung">
<meta name="author" content="Mehlich, Hendrik">
<meta name="keywords" content="schlusselwörter">
<meta name="generator" content="Ulli Meybohms HTML EDITOR">
<meta name="revisit-after" content="5 days" />
<link rel="stylesheet" href="../css/default.css" type="text/css">
<script type="text/javascript" src="js_interface_api_beta.js"></script>
<script type="text/javascript">
window.onload = init;
function init(){
document.zanmantou1 = new Zanmantou("player1");
}
</script>
</head>
<body leftmargin="0" topmargin="0">
<table border="0">
<tr>
<td>
<form action="">
<select size="1" onkeyup="Go(this.options[this.options.selectedIndex].value)"
onchange="Go(this.options[this.options.selectedIndex].value)" class="qbar" style="width:145px;">
<option value="#">.... Playlist ....</option>
<option value="javascript:;" onclick="document.zanmantou1.stop();">Musik ausschalten</option>
<option value="javascript:;" onclick="document.zanmantou1.jumpAndPlay(0);">[Billenkamp] Mozart</option>
<option value="javascript:;" onclick="document.zanmantou1.jumpAndPlay(1);">[Raming] Lowrider</option>
<option value="javascript:;" onclick="document.zanmantou1.jumpAndPlay(2);">[Bergmann] Helge Schneider</option>
</select>
</td>
</tr>
<tr bgcolor="#FFFFFF">
<td>
<object id="player1" type="application/x-shockwave-flash" data="player.swf" width="145" height="60">
<param name="allowScriptAccess" value="sameDomain" />
<param name="movie" value="player.swf" />
<param name="quality" value="best" />
<param name="scale" value="noscale" />
<param name="salign" value="lt" />
<param name="bgcolor" value="#FFFFFF" />
<param name="FlashVars" value="config=config.xml"/>
</object>
</td>
</tr>
</table>
</body>
</html>
(xml-Dokument "config.xml")
<?xml version="1.0"?>
<player width="120" height="35" background="" imagePath="images/" songPath="mp3/">
<info x="10" y="0" width="125" height="18" overflow="scroll" show="true" />
<slider>
<progress show="true">
<bar x="13" y="40" width="120" height="1" image="progressbar.gif" show="true" />
<slider x="13" y="38" width="6" height="6" image="progressslider.gif" hover="slider_hover.gif" show="true" />
</progress>
<volume show="true">
<bar x="80" y="20" width="20" height="10" image="volumebar.gif" show="true" />
<slider x="80" y="20" width="2" height="10" image="volumeslider.gif" hover="slider_hover.gif" show="true" />
</volume>
<balance show="false">
<bar x="115" y="20" width="18" height="10" image="balancebar.gif" show="true" />
<slider x="115" y="20" width="2" height="10" image="balanceslider.gif" hover="slider_hover.gif" show="true" />
</balance>
</slider>
<buttons>
<start x="27" y="20" image="play.gif" hover="play_hover.gif" show="true" />
<stop x="41" y="20" image="stop.gif" hover="stop_hover.gif" show="true" />
<halt x="27" y="20" image="pause.gif" hover="pause_hover.gif" show="true" />
<next x="57" y="20" image="forward.gif" hover="forward_hover.gif" show="true" />
<last x="11" y="20" image="prev.gif" hover="prev_hover.gif" show="true" />
<mute x="11" y="50" image="mute.gif" hover="mute_hover.gif" show="true" />
<unmute x="11" y="50" image="unmute.gif" hover="unmute_hover.gif" show="true" />
</buttons>
<settings>
<font size="11" family="VERDANA,ARIAL,HELVETICA" color="563D27" />
<scrolling interval="100" step="2" mode="reverse" />
<loadingProcess show="true" showTrackName="true" />
<streaming value="true" />
<autoload value="false" />
<autostart value="true" />
<repeatAll value="true" />
<repeat value="false" />
<shuffle value="false" onStart="true" />
<autostartNext value="true" />
<autoloadNext value="true" />
<ID3Names value="false" />
<skipTrack stopAtLast="true" stopAtZero="true"/>
</settings>
<songs>
<song name="Mozart" filename="1.mp3" />
<song name="Lowrider" filename="2.mp3" />
<song name="Helge Schneider" filename="3.mp3" />
</songs>
</player>
(js-Dokument "js_interface_api_beta.js")
/**************************************************************************************************
* Zamantou Javascript Communication Interface Class - JSI 1.0 BETA
* Releases http://zanmantou.voodoon.com
* Copyright 2007 by Andi Dittrich andi.dittrich@voodoon.com
* Terms of Use avaible under : "http://zanmantou.voodoon.com"
* ALL RIGHTS RESERVED
* This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY;
* without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**************************************************************************************************/
/* konstruktor */
function Zanmantou(id){
this.zanmantou = document.getElementById(id);
}
/* command exec */
Zanmantou.prototype.exec = function(){
var cmd = Zanmantou.prototype.exec.arguments[0];
for (i=1;i<Zanmantou.prototype.exec.arguments.length;i++){
cmd += "~" + Zanmantou.prototype.exec.arguments[i];
}
this.zanmantou.SetVariable("js_communication_var", cmd);
}
/* start */
Zanmantou.prototype.start = function(position){
this.exec('start', position);
}
/* stop */
Zanmantou.prototype.stop = function(){
this.exec('stop');
}
/* halt */
Zanmantou.prototype.halt = function(){
this.exec('halt');
}
/* next */
Zanmantou.prototype.next = function(){
this.exec('next');
}
/* last */
Zanmantou.prototype.last = function(){
this.exec('last');
}
/* jumpAndPlay */
Zanmantou.prototype.jumpAndPlay = function(index){
this.exec('jumpAndPlay', index);
}
/* setTransform */
Zanmantou.prototype.setTransform = function(ll, lr, rr, rl){
this.exec('setTransform', ll, lr, rr, rl);
}
/* addTrack */
Zanmantou.prototype.addTrack = function(name, url, index){
this.exec('addTrack', name, url, index);
}
/* removeTrack */
Zanmantou.prototype.removeTrack = function(index){
this.exec('removeTrack', index);
}
/**************************************************************************************************/
Ich hoffe mal das hier jemand weiß, warum der Player beim Internet Explorer nicht richtig wiedergegeben wird.
Danke, der Stoney