Autor | Zpráva | ||
---|---|---|---|
table Profil * |
#1 · Zasláno: 31. 10. 2013, 18:42:49
Zdravím chtěl bych vytvořit na svůj web něco podobného jako je zde:
http://radio.hotwar.eu/ Nějaký takovýto přehrávač kde by si mohl kdokoliv vybrat jakékoliv radio a mohl ho poslouchat. Pokud by se někdo ptal proč tak protože mám web o hudbě. Existuje hotové řešení a nebo jak složité je něco obdobného udělat? Děkuji za rady. |
||
table Profil * |
#2 · Zasláno: 1. 11. 2013, 17:34:36
Tak jsem použil jedno z hotových řešení, viz. zde: http://erasttest.comehere.cz/radio/index-xhtml.htm
Ovšem bohužel mi to nehraje ikdyž mám správný stream na radio. Zde jsou zdrojové kody: <!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" xml:lang="fr" lang="fr"> <head> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> <title>Dewplayer</title> <link rel="stylesheet" type="text/css" href="styles.css" /> </head> <body id="dewbody"> <div id="content"> <h1>Dewplayer</h1> <div id="players"> <h2>Playlist</h2> <p class="hint">La playlist est stockée dans le fichier playlist.xml</p> <p class="hint">The playlist is stored in playlist.xml</p> <object type="application/x-shockwave-flash" data="dewplayer-playlist.swf" width="240" height="200" id="dewplayer" name="dewplayer"> <param name="wmode" value="transparent" /> <param name="movie" value="dewplayer-playlist.swf" /> <param name="flashvars" value="showtime=true&autoreplay=true&xml=playlist.xml" /> </object> </div> <!-- #players --> </div> <!-- #content --> </body> </html> playlist.xml: <?xml version="1.0" encoding="UTF-8"?> <playlist version="1" xmlns="http://xspf.org/ns/0/"> <title>Ounage Playlist</title> <creator>Dew</creator> <link>http://www.blup.fr/</link> <info>The Best Playlist</info> <image>covers/0.jpg</image> <trackList> <track> <location>http://api.play.cz/radio/countryradio128.aac.m3u</location> <creator>Country radio</creator> <album>Country</album> <title>Country radio</title> <annotation></annotation> <duration>32000</duration> <image>covers/1.jpg</image> <info></info> <link></link> </track> <track> <location></location> <creator></creator> <album></album> <title></title> <annotation></annotation> <duration></duration> <image></image> <info></info> <link></link> </track> <track> <location></location> <creator></creator> <album></album> <title></title> <annotation></annotation> <duration></duration> <image>covers/3.jpg</image> <info></info> <link></link> </track> </trackList> </playlist> |
||
Časová prodleva: 10 let
|
0