ich möchte gern per $_GET oder so etwas in eine XML übergeben. Geht das?
Das wäre die XML
<config> <!-- (c) 2007 TUFaT.com, All Rights Reserved. Unauthorized redistribution is prohibited. --> <!-- true / false --> <auto_start>false</auto_start> <player_skin>./skins/skin2.swf</player_skin> <main_title>WINAMP</main_title> <playlist_title>PLAYLIST</playlist_title> <time_text>TOTAL TIME</time_text> <pan_labels>L,R</pan_labels> <!-- possible options: GENRE, IP (show in second column in playlist) --> <playlist_show>GENRE</playlist_show> <genre_title>Genre</genre_title> <station_title>Station</station_title> <quality_title>Quality</quality_title> <!-- for example: best quality = *****, worst quality = * --> <quality_icon>*</quality_icon> <!-- must be an integer 1 - 20 --> <scroller_speed>3</scroller_speed> <!-- possible options: #CURRENT_SONG#, #STATION_URL#, #STATION_NAME#, #GENRE#, #CURRENT_ARTIST# --> <scroller_marquee_content>#CURRENT_SONG#</scroller_marquee_content> <!--Shuffle button enabled--> <!-- true / false --> <shuffle_is_enabled>false</shuffle_is_enabled> <!-- must be an integer 0 .. 100 --> <default_volume>20</default_volume> <!-- must be an integer -100 .. 100 --> <default_pan>0</default_pan> <!-- Message, if player couldn't load music--> <music_error_message>Please open WebRadio in Mozilla</music_error_message> <!-- Timeout to get radio station quality --> <quality_timeout>2</quality_timeout> <!-- Timeout to get music name --> <musicname_timeout>5</musicname_timeout> <station url="weg_des_musik_pfades"> </station> </config>
Denn teil möchte ich individuell gestallten:
<station url="weg_des_musik_pfades"> </station>
diese wird für ein Flash ausgelesen:
<script type="text/javascript" src="swfobject.js"></script> </head> <body bgcolor="#161616"> <div id="flashcontent"> </div> <script type="text/javascript"> var browser=navigator.appName; var res = ""; browser = browser.toLowerCase(); if(browser=="netscape") { res = "opened_by=MOZILLA"; } else { res = "opened_by=IE"; } var webradio = new SWFObject("player.swf?"+res+"&xml=config.xml&player_skin=./skins/lila.swf", "skin9", "205", "105", "8", "#000000", true); webradio.addParam("quality", "high"); webradio.addParam("allowScriptAccess", "always"); webradio.write("flashcontent"); </script>