nicht angemeldet (Anmelden)

Kategorien

Vanilla 1.1.8 ist ein Produkt von Lussumo. Weitere Informationen (englisch): Documentation, Community Support.


    • CommentAuthorkatweazl
    • CommentTimeNov 29th 2009
     
    Hej,

    ich schlag mich jetzt seit ein paar Tagen mit Zanmantou rum und kriegs nicht zum Laufen.
    Der Player funktioniert, spielt auf Play-Click alle Lieder, aber irgendwas mache ich mit der Jump&Play Geschichte falsch.

    Brauche bitte Hilfe!

    Seite:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>....</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="tina.css" rel="stylesheet" type="text/css">

    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4 resized
    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);

    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }

    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }

    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    if(!x && d.getElementById) x=d.getElementById(n); return x;
    }

    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    </script>

    <script type="text/javascript" src="js/JavascriptMicroAPI.js"></script>
    <script type="text/javascript">

    window.onload = function{
    window.setTimeout ("init()", 2000);
    }
    function init(){
    document.zanmantou1 = new Zanmantou("zanmantou1");
    }
    </script>

    </head>

    <body onload="MM_preloadImages('images/menu/aktuell.png','images/menu/repertoire.jpg','images/menu/vita.jpg','images/menu/fotos.jpg','images/menu/kritiken.jpg','images/menu/kontakt.jpg','images/menu/links.jpg')">


    <h1>MUSIK</h1>
    <p><br>
    Peter Tschaikowski, &#1047;&#1072;&#1073;&#1099;&#1090;&#1100; &#1090;&#1072;&#1082;
    &#1089;&#1082;&#1086;&#1088;&#1086;<br>
    <a href="javascript:;" onclick="document.zanmantou1.jumpAndPlay(0);">&lt;&lt; anh��ren</a>
    </p>
    <p>Peter Tschaikowski, &#1047;&#1072;&#1073;&#1099;&#1090;&#1100; &#1090;&#1072;&#1082;
    &#1089;&#1082;&#1086;&#1088;&#1086;<br>

    <a href="javascript:;" onclick="document.zanmantou1.jumpAndPlay(1);">&lt;&lt; anh��ren</a>
    </p>
    <p>Peter Tschaikowski, &#1047;&#1072;&#1073;&#1099;&#1090;&#1100; &#1090;&#1072;&#1082;
    &#1089;&#1082;&#1086;&#1088;&#1086;<br>
    <a href="javascript:;" onclick="document.zanmantou1.jumpAndPlay(2);">&lt;&lt; anh��ren</a>
    </p>
    <p>

    <script type="text/javascript" src="js/JavascriptMicroAPI.js"></script>
    </script>
    </p>
    <p>

    <object id="zanmantou1" type="application/x-shockwave-flash" data="zanmantou/zanmantou.swf"
    height="150" width="400" imagePath="images/player/" mediaPath="lieder/">
    <param name="allowScriptAccess" value="sameDomain"></param>
    <param name="movie" value="zanmantou/zanmantou.swf"></param>
    <param name="quality" value="best"></param>
    <param name="scale" value="noscale"></param>
    <param name="salign" value="lt"></param>
    <param name="bgcolor" value="#523015"></param>
    <param name="FlashVars" value="config=config.xml"></param>

    </object>
    • CommentAuthorkatweazl
    • CommentTimeNov 29th 2009
     
    config:

    <?xml version="1.0"?>

    <player width="400" height="150" imagePath="images/player/" mediaPath="lieder/">

    <info x="5" y="50" width="385" height="20" overflow="scroll" show="true" />

    <video x="0" y="0" width="0" height="0">
    <autoscale value="false" width_limit="0" height_limit="0" />
    <smoothing value="false" />
    <bufferTime value="2.1" />
    </video>

    <slider>

    <progress show="true">
    <bar x="5" y="30" width="385" height="5" image="progressbar.jpg" show="true" />
    <slider x="5" y="33" width="10" height="10" image="slider.jpg" hover="slider_hover.jpg" show="true" />
    </progress>

    </slider>




    <buttons>
    <start x="5" y="3" image="play.jpg" hover="play_hover.jpg" show="true" /> <stop x="30" y="3" image="stop.jpg" hover="stop_hover.jpg" show="true" />
    <halt x="5" y="3" image="pause.jpg" hover="pause_hover.jpg" show="true" />
    <next x="55" y="3" image="forward.jpg" hover="forward_hover.jpg" show="true" />
    <last x="80" y="3" image="backward.jpg" hover="backward_hover.jpg" show="true" />


    </buttons>

    <settings>
    <font size="0.8em" family="Geneva" color="FFFFFF" font-weight="lighter" />
    <scrolling interval="100" step="2" mode="default" />

    <loadingProcess show="true" showTrackName="true" />

    <streaming value="true" />

    <repeatAll value="false" />
    <repeat value="false" />
    <shuffle value="false" onStart="false" />

    <autostartNext value="true" />
    <autoloadNext value="true" />

    <ID3Names value="false" />

    <skipTrack stopAtLast="true" stopAtZero="true"/>
    </settings>

    <media>
    <item name="song1" filename="tschaikowski.mp3" />
    <item name="song2" filename="tschaikowski2.mp3" />
    <item name="song3" filename="tschaikowski3.mp3" />
    </media>


    </player>
    •  
      CommentAuthorxaos
    • CommentTimeNov 30th 2009
     
    ganz einfach: deine lieben swapImage funktionen überladen im body tag den event handler vom zanamntou zum erstellen einer instanz. somit ist document.Zanmantou immer null..
    setzt das was du im body onload tag stehen hast in die onload handler funktion von zanmantou und lösch das attribut ausm body.

    p.s. wofür benutzt du eigentlich (wie sehr viele andere auch) diesen schrott, ein bisle css zum bilder vorladen und gut ;)
    • CommentAuthorkatweazl
    • CommentTimeNov 30th 2009 bearbeitet
     
    Ok, gemacht, gelöscht.
    Wie die onload handler funktion von zanmantou funktioniert, weiss ich nicht, habs jetzt einfach ganz raus und lädt trotzdem ;)
    Jump&Play funktioniert leider trotzdem nicht.
    ???

    Code sieht jetzt so aus:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>
    <title>...</title>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8">
    <link href="tina.css" rel="stylesheet" type="text/css">

    <script language="JavaScript" type="text/JavaScript">
    <!--
    function MM_reloadPage(init) { //reloads the window if Nav4 resized
    if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
    else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
    }
    MM_reloadPage(true);

    function MM_swapImgRestore() { //v3.0
    var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
    }

    function MM_preloadImages() { //v3.0
    var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
    }

    function MM_findObj(n, d) { //v4.01
    var p,i,x; if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
    if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
    for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
    if(!x && d.getElementById) x=d.getElementById(n); return x;
    }

    function MM_swapImage() { //v3.0
    var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
    if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
    }
    //-->
    </script>

    <script type="text/javascript" src="js/JavascriptMicroAPI.js"></script>
    <script type="text/javascript">

    window.onload = function{
    window.setTimeout ("init()", 2000);
    }
    function init(){
    document.zanmantou1 = new Zanmantou("zanmantou1");
    }
    </script>

    </head>
    <body>

    <table width="610" border="0" align="center">

    <h1>MUSIK</h1>
    <p><br>
    Peter Tschaikowski, &#1047;&#1072;&#1073;&#1099;&#1090;&#1100; &#1090;&#1072;&#1082;
    &#1089;&#1082;&#1086;&#1088;&#1086;<br>
    <a href="javascript:;" onclick="document.zanmantou1.jumpAndPlay(0);">&lt;&lt; anhören</a>
    </p>
    <p>Peter Tschaikowski, &#1047;&#1072;&#1073;&#1099;&#1090;&#1100; &#1090;&#1072;&#1082;
    &#1089;&#1082;&#1086;&#1088;&#1086;<br>
    <a href="javascript:;" onclick="document.zanmantou1.jumpAndPlay(1);">&lt;&lt; anhören</a>
    </p>
    <p>Peter Tschaikowski, &#1047;&#1072;&#1073;&#1099;&#1090;&#1100; &#1090;&#1072;&#1082;
    &#1089;&#1082;&#1086;&#1088;&#1086;<br>
    <a href="javascript:;" onclick="document.zanmantou1.jumpAndPlay(2);">&lt;&lt; anhören</a>
    </p>
    <p>
    <script type="text/javascript" src="js/JavascriptMicroAPI.js"></script>
    </script>
    </p>
    <p>

    <object id="zanmantou1" type="application/x-shockwave-flash" data="zanmantou/zanmantou.swf"
    height="150" width="400" imagePath="images/player/" mediaPath="lieder/">
    <param name="allowScriptAccess" value="sameDomain"></param>
    <param name="movie" value="zanmantou/zanmantou.swf"></param>
    <param name="quality" value="best"></param>
    <param name="scale" value="noscale"></param>
    <param name="salign" value="lt"></param>
    <param name="bgcolor" value="#523015"></param>
    <param name="FlashVars" value="config=config.xml"></param>
    </object>

    </p>
    </tr>
    </table>
    </body>
    </html>
    •  
      CommentAuthorxaos
    • CommentTimeNov 30th 2009
     
    hast du mal eine testseite online ??
    •  
      CommentAuthorxaos
    • CommentTimeNov 30th 2009
     
    window.onload = function(){
    window.setTimeout ("init()", 2000);
    }

    function init(){
    document.zanmantou1 = new Zanmantou("zanmantou1");
    }



    ersetz das init mal durch die beiden zeilen hier, es haben die klammer auf/zu gefehlt
    • CommentAuthorkatweazl
    • CommentTimeNov 30th 2009
     
    ...leider kein Erfolg...
    •  
      CommentAuthorxaos
    • CommentTimeNov 30th 2009
     
    also es müsste eigentlich funktionieren, strange.....
    änder einmal bitte die player ID zu "zanmantou_player"
    das ganze einmal im object tag und bei "new Zanmantou("zanmantou_player")"

    ich befürchte, dass es atm sonst die gleiche referenz im DOM wie im JS ist und es daher nicht geht ;)
    • CommentAuthorkatweazl
    • CommentTimeNov 30th 2009
     
    That's it! Grossartig! Vielen vielen Dank!

    ...und wo wir gerade dabei sind :)
    Fiele Dir spontan ein, warum der Liedname bei mir nicht angezeigt wird? Player müsste eigentlich 3x gross genug sein...


    config lautet so:
    <?xml version="1.0"?>

    <player width="400" height="150" imagePath="images/player/" mediaPath="lieder/">

    <info x="5" y="50" width="385" height="20" overflow="scroll" show="true" />

    <video x="0" y="0" width="0" height="0">
    <autoscale value="false" width_limit="0" height_limit="0" />
    <smoothing value="false" />
    <bufferTime value="2.1" />
    </video>

    <slider>

    <progress show="true">
    <bar x="5" y="30" width="385" height="5" image="progressbar.jpg" show="true" />
    <slider x="5" y="33" width="10" height="10" image="slider.jpg" hover="slider_hover.jpg" show="true" />
    </progress>

    </slider>




    <buttons>
    <start x="5" y="3" image="play.jpg" hover="play_hover.jpg" show="true" /> <stop x="30" y="3" image="stop.jpg" hover="stop_hover.jpg" show="true" />
    <halt x="5" y="3" image="pause.jpg" hover="pause_hover.jpg" show="true" />
    <next x="55" y="3" image="forward.jpg" hover="forward_hover.jpg" show="true" />
    <last x="80" y="3" image="backward.jpg" hover="backward_hover.jpg" show="true" />


    </buttons>

    <settings>
    <font size="0.8em" family="Geneva" color="FFFFFF" font-weight="lighter" />
    <scrolling interval="100" step="2" mode="default" />

    <loadingProcess show="true" showTrackName="true" />

    <streaming value="true" />

    <repeatAll value="false" />
    <repeat value="false" />
    <shuffle value="false" onStart="false" />

    <autostartNext value="true" />
    <autoloadNext value="true" />

    <ID3Names value="false" />

    <skipTrack stopAtLast="true" stopAtZero="true"/>
    </settings>

    <media>
    <item name="song1" filename="tschaikowski.mp3" />
    <item name="song2" filename="tschaikowski2.mp3" />
    <item name="song3" filename="tschaikowski3.mp3" />
    </media>


    </player>
    •  
      CommentAuthorxaos
    • CommentTimeNov 30th 2009
     
    <font size="0.8em" family="Geneva" color="FFFFFF" font-weight="lighter" />


    zanamntou unterstützt weder angaben in em noch
    font-weight geht auch nur bold, normal, italic
    family würde ich außer Arial, Verdana nichts nehmen...

    probier doch einfach mal:

    <font size="11" family="Verdana" color="454545"/>
    • CommentAuthorkatweazl
    • CommentTimeNov 30th 2009
     
    Danke! Jetzt geht alles!
    ...auch Geneva... ;)
    • CommentAuthor4711
    • CommentTimeDec 3rd 2009
     
    Hi,

    erstmal möcht ich loswerden, dass ich schlicht begeistert bin wie einfach sich der Player anpassen lässt, ich hoffe da kommt irgendwann nochmal ne 1.7 oder 2.0, vielleicht dann auch mit Fullscreen-Modus?

    Ich habe nun aber das Problem, dass ich es ums verrecken nicht schaffe den Titel fett zu setzen, egal of ich style="font-weight:bold;" schreibe, oder was auch immer (ich glaube inzwischen habe ich zehn verschiedene Varianten Probiert, ich wär deshalb für ein kruzes Statement dankbar, wie die Config-Zeile aussehen muss um die Schrift fett zu kriegen oder geht das überhaupt nicht?
    Aus deinem letzten Post bin ich nicht ganz schlau geworden.

    So siehts derzeit aus....

    <font size="9" family="Verdana" color="c6c6c6" style="font-weight: bold;" />



    Gruß Marco
    •  
      CommentAuthorxaos
    • CommentTimeDec 3rd 2009
     
    wenn ich mich recht erinnere hab ich in der 1.6er das attribut style sogar zu gunsten einer html darstellung des titels deaktiviert.
    probier einfach mal deinen titel in <b>title</b> zu setzen, sollte glaub ich gehen.

    p.s. wenn ich mal eine flash cs4 bekomme wird es eine V2 des players auf jedenfall geben, bzw die ist schon fertig, ich kanns nur nicht compilieren^^
    der 1.x zweig wird nicht mehr weiterentwickelt.
    • CommentAuthor4711
    • CommentTimeDec 3rd 2009
     
    Das klappt leider auch nicht, da sagt mir der Player "undefined songname at index", auch wenn ich das ganze als CDATA auszeichne ändert sich nichts.

    So hatte ichs probiert:

    <item name="<![CDATA[<b>Title 08/15</b>]]>" filename="test.mp3"/>
    bzw.
    <item name="<b>Title 08/15</b>" filename="test.mp3"/>


    PS: Wovon hängt es denn ab, ob/wann du Flash CS4 bekommst?
    •  
      CommentAuthorxaos
    • CommentTimeDec 5th 2009
     
    hm misst, sry da kann selbst ich gerade nicht helfen...

    p.s. hängt von meinem arbeitgeber oder von meinen sehr beschränkten finanziellen möglichkeiten ab ...^^
    • CommentAuthordorrn
    • CommentTimeDec 30th 2009
     
    Hallo Xaos,
    auch von meiner Seite erst mal vielen Dank für die viele Arbeit, die Du wohl schon in den Player gesteckt hast. Ich habe ihn mir erst vorhin runtergeladen und bin sehr erfreut über die Features, die er bietet.
    Zur Zeit versuche ich erst mal bei mir lokal, mit einer simplen Testseite und einigen mp3s im media Verzeichnis, alles zum Laufen zu bekommen: Leider habe ich ein paar Probleme bei der Integration.
    1. Die Songs werden nicht in der Reihenfolge der Tracklist abgespielt, egal ob ich sie in einer separaten Datei oder direkt in der config.xml eintrage.
    2. jumpAndPlay funktioniert bei mir nicht. Ich bekomme einen JavaScript-Fehler aus der JavascriptMicroAPI.js (Zeile 99): "Objekt unterstützt diese Eigenschaft oder Methode nicht." Er scheint also wohl die Methode JMAPI_jump nicht zu kennen, wenn ich es richtig sehe. Hier ist der Code meiner htm-Seite:

    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml" >
    <head>
    <title>Untitled Page</title>
    <script type="text/javascript" src="JavascriptMicroAPI.js"></script>
    <script type="text/javascript">
    window.onload = init;
    function init(){
    document.zanmantou1 = new Zanmantou("zanmantou");
    }
    </script>
    </head>
    <body>
    <object id="zanmantou" type="application/x-shockwave-flash" data="zanmantou.swf" width="326" height="248">
    <param name="allowScriptAccess" value="sameDomain" />
    <param name="movie" value="zanmantou.swf" />
    <param name="quality" value="best" />
    <param name="scale" value="noscale" />
    <param name="salign" value="lt" />
    <param name="bgcolor" value="#ffffff" />
    </object>
    <img src="darksite_video/play.jpg" alt="" onclick="document.zanmantou1.jumpAndPlay(0)"/>
    </body>
    </html>

    Wäre klasse, wenn Du mir helfen könntest. Sollten wir vorher nichts mehr voneinander hören, schon mal einen guten Rutsch.
    Bernd
    www.dorrn.de
    •  
      CommentAuthorxaos
    • CommentTimeDec 30th 2009
     
    haste mal ne testseite ... ?
    • CommentAuthordorrn
    • CommentTimeDec 31st 2009
     
    Hi Xaos,
    melde mich jetzt erst, da ich dachte, dass ich per Mail Bescheid bekomme, wenn sich etwas tut.
    Unter www.dorrn.de/ftp/zanmantou/test.htm habe ich die entsprechende Testseite. Im Netz verhält es sich noch mal anders als bei mir lokal. Jetzt kommt keine Fehlermeldung mehr, aber er spielt den falschen Song ab.
    Config-Dateien findest Du hier:
    http://www.dorrn.de/ftp/zanmantou/config.xml
    http://www.dorrn.de/ftp/zanmantou/tracklist.xml

    Besten Gruß
    Bernd
    • CommentAuthordorrn
    • CommentTimeDec 31st 2009
     
    Habe eben noch mal ein bisschen an der config.xml rumgeschraubt - jetzt spielt er nix mehr ab. Habe dann die Original config.xml Datei wieder rüberkopiert und nur den Media-Path angepasst. Werde erst mal meine Finger davon lassen...
    • CommentAuthordorrn
    • CommentTimeJan 1st 2010
     
    Hi Xaos,
    erst mal ein frohes neues Jahr. Nachdem ich die Folgen der letzten Nacht einigermaßen auskuriert habe, habe ich mir noch mal Deinen Player vorgenommen und alles neu konfiguriert - und siehe da, es geht! Reihenfolge stimmt und jumpAndPlay klappt auch. Was ich gestern nun falsch gemacht habe, weiß ich nicht. Aber jetzt geht es auf jeden Fall.
    Also, danke für den Player - und wenn Du magst, werden wir Dich bzw. Deine Webseite bei uns verlinken.
    Besten Gruß
    Bernd
    www.dorrn.de
    •  
      CommentAuthorxaos
    • CommentTimeJan 3rd 2010
     
    :) glückwunsch, schön, dass es auch ohne hilfe geht :)
    • CommentAuthormartyn
    • CommentTimeJan 7th 2010 bearbeitet
     
    Moin moin und ein gutes neues Jahr wünsch ich euch!

    Ich habe heute den Zanmantou-Player in meine Webseite eingebaut und alles funktioniert prima - vielen Dank schon mal dafür!

    Leider funktioniert auch bei mir jumpAndPlay nicht und ich kann den Fehler beim besten Willen nicht finden. Die files lassen sich wunderbar über die Bedienelemente steuern, aber nicht über die Liste.

    Hier ist die "Testseite" online: Testseite

    Hier ist die Test-Html-Datei:

    <html>
    <head>
    <script type=”text/javascript” src=”JavascriptMicroAPI.js”></script>
    <script type=”text/javascript”>
    window.onload = init;
    function init(){
    // Wichtig : die richtige Player ID eintragen
    document.zanmantou1 = new Zanmantou("player1");
    }
    </script>



    </head>
    <body>

    <div class="playerContainer">

    <div class="playlist">
    <a href="javascript:;" onclick="document.zanmantou1.jumpAndPlay(0);">1. Doerthe</a><br>
    <a href="javascript:;" onclick="document.zanmantou1.jumpAndPlay(1);">2. Bye Bye Barbara</a><br>
    </div>

    <object id="player1" type="application/x-shockwave-flash" data="zanmantou.swf" height="40" width="200">
    <param name="allowScriptAccess" value="sameDomain"></param>
    <param name="movie" value="zanmantou.swf"></param>
    <param name="quality" value="best"></param>
    <param name="scale" value="noscale"></param>
    <param name="salign" value="lt"></param>
    <!-- <param name="FlashVars" value="tracklist=tracklist_malli.xml"></param> -->

    <!-- <param name="FlashVars" value="tracks=doerthe.mp3~Doerthe~barbara.mp3~Barbara"></param> -->
    <param name="bgcolor" value="#ffffff"></param>
    </object>

    </div>


    </body>
    </html>
    • CommentAuthormartyn
    • CommentTimeJan 7th 2010
     
    Hier die Tracklist:

    <?xml version="1.0"?>

    <media>
    <item name="Doerthe" filename="doerthe.mp3" />
    <item name="Bye Bye Barbara" filename="barbara.mp3" />


    </media>
    • CommentAuthormartyn
    • CommentTimeJan 7th 2010
     
    Und hier die config.xml:


    <?xml version="1.0"?>

    <player width="200" height="40" background="play_bg.png" imagePath="images/" mediaPath="mp3/">

    <info x="80" y="190" width="213" height="18" overflow="scroll" show="true" />

    <video x="2" y="2" width="322" height="186">
    <autoscale value="false" width_limit="322" height_limit="186" />
    <smoothing value="false" />
    <bufferTime value="2.1" />
    </video>


    <slider>

    <progress show="true">
    <bar x="0" y="25" width="191" height="10" image="" progress="" show="true" />
    <slider x="0" y="26" width="9" height="14" image="play_slider_prog.png" hover="play_slider_prog_hover.png" show="true" />
    </progress>

    <volume show="true">
    <bar x="104" y="8" width="39" height="9" image="" show="true" />
    <slider x="97" y="9" width="15" height="14" image="play_slider.png" hover="play_slider_hover.png" show="true" />
    </volume>

    <balance show="false">
    <bar x="8" y="226" width="109" height="13" image="" show="true" />
    <slider x="8" y="221" width="8" height="8" image="slider_progress.png" hover="slider_progress_hover.png" show="true" />
    </balance>
    </slider>




    <buttons>
    <start x="12" y="5" image="play_play.png" hover="play_play_hover.png" show="true" />
    <halt x="12" y="5" image="play_pause.png" hover="play_pause_hover.png" show="true" />
    <stop x="26" y="5" image="play_stop.png" hover="play_stop_hover.png" show="true" />
    <last x="43" y="5" image="play_back.png" hover="play_back_hover.png" show="true" />
    <next x="60" y="5" image="play_next.png" hover="play_next_hover.png" show="true" />

    <mute x="172" y="5" image="play_mute.png" hover="play_mute_hover.png" show="true" />
    <unmute x="172" y="5" image="play_unmute.png" hover="play_unmute_hover.png" show="true" />
    </buttons>

    <settings>
    <font size="11" family="Verdana" color="FFFFFF" style="" />
    <scrolling interval="100" step="2" mode="reverse" />

    <loadingProcess show="false" showTrackName="true" />

    <streaming value="true" />
    <autoload value="false" />
    <autostart value="false" />

    <repeatAll value="false" />
    <repeat value="false" />
    <shuffle value="false" onStart="false" />

    <autostartNext value="true" />
    <autoloadNext value="true" />

    <ID3Names value="true" />

    <skipTrack stopAtLast="true" stopAtZero="true"/>
    </settings>

    <media>
    <item name="Zanmantou 1.5 WebAVPlayer DEMO" filename="zanmantou_demo.flv"/>

    </media>

    </player>
    •  
      CommentAuthorxaos
    • CommentTimeJan 7th 2010
     
    schau dir mal die anführungszeichen in den js script tags an <script type=”text/javascript”>
    ersetz die einmal alle gegen normale anführungszeichen, dann sollte es gehen ^^
    • CommentAuthormartyn
    • CommentTimeJan 7th 2010
     
    YESS!!! Dankeschön, funktioniert! Lokal nicht, aber online. Die Anführungszeichen hatte ich übrigens so von der Zanmantou-Seite kopiert.

    Also, vielen Dank nochmal und frohes Schaffen weiterhin
    martyn
    • CommentAuthormartyn
    • CommentTimeJan 7th 2010
     
    Hm, leider wird jetzt nur der erste track gespielt, auch wenn ich den zweiten link anklicke (der ja eigentlich track (1), also den zweiten, abspielen soll). Wenn ich dann einen dritten track angebe und die liste um eins erweitere, spielt der dritte link dann den zweiten track.

    Wo kann da der Feher liegen?

    Grüße - martyn
    •  
      CommentAuthorxaos
    • CommentTimeJan 8th 2010
     
    hm deine testseite geht nichtmehr ka...ich würde drauf tippen, dass der 3te track "nicht exisitert" und der player daraufhin zum letzten index springt, der verfügbar ist
    • CommentAuthormartyn
    • CommentTimeJan 8th 2010
     
    Hier ist der Player wieder, jetzt mit 3 Tracks:

    http://www.martin-bartsch.de/reformflocken/playerTest.html

    Die ersten beiden spielt er richtig, beim dritten zeigt er "udefined songname at index"

    Hier die html:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
    "http://www.w3.org/TR/html4/loose.dtd">


    <html>
    <head>
    <script type="text/javascript" src="JavascriptMicroAPI.js"></script>
    <script type="text/javascript">
    window.onload = init;
    function init(){
    // Wichtig : die richtige Player ID eintragen
    document.zanmantou1 = new Zanmantou("player1");
    }
    </script>



    </head>
    <body>

    <div class="playerContainer">

    <div class="playlist">
    <a href="javascript:;" onclick="document.zanmantou1.jumpAndPlay(0);">Doerthe</a><br>
    <a href="javascript:;" onclick="document.zanmantou1.jumpAndPlay(1);">Bye Bye Barbara</a><br>
    <a href="javascript:;" onclick="document.zanmantou1.jumpAndPlay(2);">Electric Cafe</a><br>
    </div>

    <object id="player1" type="application/x-shockwave-flash" data="zanmantou.swf" height="40" width="200">
    <param name="allowScriptAccess" value="sameDomain"></param>
    <param name="movie" value="zanmantou.swf"></param>
    <param name="quality" value="best"></param>
    <param name="scale" value="noscale"></param>
    <param name="salign" value="lt"></param>
    <param name="bgcolor" value="#ffffff"></param>
    </object>

    </div>


    </body>
    </html>
    • CommentAuthormartyn
    • CommentTimeJan 8th 2010
     
    Und hier die config (habe die 3 tracks jetzt hier angegeben), mp3 sind alle upgeloaded:

    <?xml version="1.0"?>

    <player width="200" height="30" background="play_bg.png" imagePath="images/" mediaPath="mp3/">

    <info x="23" y="1" width="132" height="17" overflow="scroll" show="true" />


    <video x="2" y="2" width="322" height="186">
    <autoscale value="false" width_limit="322" height_limit="186" />
    <smoothing value="false" />
    <bufferTime value="2.1" />
    </video>


    <slider>

    <progress show="true">
    <bar x="18" y="18" width="143" height="10" image="" progress="" show="true" />
    <slider x="15" y="18" width="7" height="12" image="play_slider_prog.png" hover="play_slider_prog_hover.png" show="true" />
    </progress>

    <volume show="true">
    <bar x="168" y="0" width="21" height="18" image="" show="true" />
    <slider x="161" y="0" width="18" height="18" image="play_slider.png" hover="play_slider_hover.png" show="true" />
    </volume>

    <balance show="false">
    <bar x="8" y="226" width="109" height="13" image="" show="true" />
    <slider x="8" y="221" width="7" height="12" image="slider_progress.png" hover="slider_progress_hover.png" show="true" />
    </balance>
    </slider>




    <buttons>
    <start x="0" y="0" image="play_play.png" hover="play_play.png" show="true" />
    <halt x="0" y="0" image="play_pause.png" hover="play_pause.png" show="true" />
    <stop x="26" y="5" image="play_stop.png" hover="play_stop_hover.png" show="false" />
    <last x="43" y="5" image="play_back.png" hover="play_back_hover.png" show="false" />
    <next x="60" y="5" image="play_next.png" hover="play_next_hover.png" show="false" />

    <mute x="172" y="5" image="play_mute.png" hover="play_mute_hover.png" show="false" />
    <unmute x="172" y="5" image="play_unmute.png" hover="play_unmute_hover.png" show="false" />
    </buttons>

    <settings>
    <font size="10" family="Verdana" color="a0a0a0" style="" />
    <scrolling interval="100" step="2" mode="reverse" />

    <loadingProcess show="false" showTrackName="true" />

    <streaming value="true" />
    <autoload value="false" />
    <autostart value="false" />

    <repeatAll value="false" />
    <repeat value="false" />
    <shuffle value="false" onStart="false" />

    <autostartNext value="true" />
    <autoloadNext value="true" />

    <ID3Names value="true" />

    <skipTrack stopAtLast="true" stopAtZero="true"/>
    </settings>

    <media>
    <item name="Doerthe" filename="doerthe.mp3" />
    <item name="Bye Bye Barbara" filename="barbara.mp3" />
    <item name="Electric Cafe" filename="electric_cafe.mp3" />



    </media>



    </player>
    •  
      CommentAuthorxaos
    • CommentTimeJan 8th 2010
     
    du hast im trackname bei Cafe ein sonderzeichen, nimm das mal raus ;)
    • CommentAuthormartyn
    • CommentTimeJan 8th 2010
     
    Cool, jetzt scheints zu funktionieren :-)

    Vielen Dank!!!
    • CommentAuthorkatweazl
    • CommentTimeJan 9th 2010 bearbeitet
     
    ...hat sich erledigt...
    • CommentAuthorkatweazl
    • CommentTimeJan 15th 2010
     
    ...und schon wieder das selbe Problem. Player funktioniert, die Tracks lassen sich aber nicht durch Jump&Play ansteuern.

    config:

    <?xml version="1.0"?>

    <player width="400" height="100" imagePath="images/player/" mediaPath="audio/">

    <info x="0" y="50" width="400" height="50" overflow="scroll" show="true" />

    <video x="0" y="0" width="0" height="0">
    <autoscale value="false" width_limit="0" height_limit="0" />
    <smoothing value="false" />
    <bufferTime value="2.1" />
    </video>

    <slider>

    <progress show="true">
    <bar x="7" y="37" width="400" height="1" image="progressbar.jpg" show="true" />
    <slider x="7" y="34" width="10" height="10" image="slider.jpg" hover="slider_hover.jpg" show="true" />
    </progress>

    </slider>




    <buttons>
    <start x="50" y="3" image="play.jpg" hover="play_hover.jpg" show="true" />
    <stop x="0" y="3" image="stop.jpg" hover="stop_hover.jpg" show="true" />
    <halt x="50" y="3" image="pause.jpg" hover="pause_hover.jpg" show="true" />
    <next x="75" y="3" image="forward.jpg" hover="forward_hover.jpg" show="true" />
    <last x="25" y="3" image="prev.jpg" hover="prev_hover.jpg" show="true" />
    </buttons>

    <settings>
    <font size="10" family="Geneva" color="FFFFFF" />
    <scrolling interval="100" step="2" mode="default" />

    <loadingProcess show="false" showTrackName="true" />

    <streaming value="false" />

    <repeatAll value="false" />
    <repeat value="false" />
    <shuffle value="false" onStart="false" />

    <autostartNext value="true" />
    <autoloadNext value="true" />

    <ID3Names value="false" />

    <skipTrack stopAtLast="true" stopAtZero="true"/>
    </settings>

    <media>
    <item name="schutzlos - score" filename="schutzlos.mp3" />
    <item name="die rebellin - hans + lena" filename="hanslena.mp3" />
    <item name="die rebellin - schicksal" filename="schicksal.mp3" />
    <item name="freche mädchen - sag mir - end title" filename="sagmir.mp3" />
    <item name="lilys geheimnis - score" filename="lily.mp3" />
    <item name="das siebte foto - score - suite" filename="dassiebtefoto.mp3" />
    <item name="die pathologin - main title" filename="diepathologin.mp3" />
    <item name="tschüss, wir bleiben... - score" filename="twbh.mp3" />
    <item name="2030 - aufstand der alten - score" filename="2030.mp3" />
    <item name="miss texas - end title" filename="misstexas.mp3" />
    <item name="baal - cover me" filename="coverme.mp3" />
    </media>

    </player>
    • CommentAuthorkatweazl
    • CommentTimeJan 15th 2010
     
    html:

    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
    <html>
    <head>

    <script type="text/javascript" src="js/JavascriptMicroAPI.js"></script>
    <script type="text/javascript">

    window.onload = function(){
    window.setTimeout ("init()", 2000);
    }
    function init(){
    document.zanmantou1 = new Zanmantou("zanmantou_player");
    }
    </script>
    </head>
    <body>

    ...

    <h2>schutzlos<font size="1"><a href="javascript:;" onClick="document.zanmantou1.jumpAndPlay(0);">
    </a></font></h2>
    </td>
    <td width="89"><a href="javascript:;" onClick="document.zanmantou1.jumpAndPlay(0);">
    <img src="images/listen.png" width="16" height="12" border="none">
    listen</a></td>
    </tr>
    <tr>
    <td><h3>score</h3></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td><h2>die rebellin</h2></td>
    <td><a href="javascript:;" onClick="document.zanmantou1.jumpAndPlay(1);"><img src="images/listen.png" width="16" height="12" border="none">
    listen</a></td>
    </tr>
    <tr>
    <td><h3>hans + lena</h3></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td><h2>die rebellin </h2></td>
    <td><a href="javascript:;" onClick="document.zanmantou1.jumpAndPlay(2);">
    <img src="images/listen.png" width="16" height="12" border="none"> listen</a></td>
    </tr>
    <tr>
    <td><h3>schicksal</h3></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td><h2>freche m&auml;dchen</h2></td>
    <td><a href="javascript:;" onClick="document.zanmantou1.jumpAndPlay(3);">
    <img src="images/listen.png" width="16" height="12" border="none"> listen</a></td>
    </tr>
    <tr>
    <td><h3>sag mir - endtitel</h3></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td><h2>lilys geheimnis</h2></td>
    <td><a href="javascript:;" onClick="document.zanmantou1.jumpAndPlay(4);"><img src="images/listen.png" width="16" height="12" border="none"> listen</a></td>
    </tr>
    <tr>
    <td><h3>score</h3></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td><h2>das siebte foto</h2></td>
    <td><a href="javascript:;" onClick="document.zanmantou1.jumpAndPlay(5);"><img src="images/listen.png" width="16" height="12" border="none"> listen</a></td>
    </tr>
    <tr>
    <td><h3>score &#8211; suite</h3></td>
    <td>&nbsp;</td>
    </tr>
    <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    </tr>

    ...


    </table>

    <p>
    <script type="text/javascript" src="js/JavascriptMicroAPI.js"></script>
    </p>
    <p>
    <object id="zanmantou_player" type="application/x-shockwave-flash" data="zanmantou/zanmantou.swf"
    height="100" width="400" imagePath="images/player/" mediaPath="lieder/">
    <param name="allowScriptAccess" value="sameDomain"></param>
    <param name="movie" value="zanmantou/zanmantou.swf"></param>
    <param name="quality" value="best"></param>
    <param name="scale" value="noscale"></param>
    <param name="salign" value="lt"></param>
    <param name="bgcolor" value="#000000"></param>
    <param name="FlashVars" value="config=config.xml"></param>
    </object>
    </td>


    ...

    </body>
    </html>
    •  
      CommentAuthorxaos
    • CommentTimeJan 15th 2010
     
    wäre super wenn du eine testseite posten könntest.....so kann man sich da sposten vom code auch sparen ;)
    • CommentAuthorkatweazl
    • CommentTimeJan 15th 2010
     
    Ja, klar. ;)

    http://katsu.de/HPOliBiehler2010/audio.html
    •  
      CommentAuthorxaos
    • CommentTimeJan 15th 2010
     
    • CommentAuthorkatweazl
    • CommentTimeJan 15th 2010
     
    klatsch an die Stirn, und stell in die Ecke und schäm...

    Danke schön!