ich möchte gern per $_GET oder so etwas in eine XML übergeben. Geht das?
Das wäre die XML
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 | <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:
1 2 | <station url="weg_des_musik_pfades"> </station> |
diese wird für ein Flash ausgelesen:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 | <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> |