| alex | 2549 Posts | |
| wrote on 10.11.10 at 19:11 | | No problem |
| | | | LG/Best regards, Alex
"Journalism is printing what someone else does not want printed. Everything else is public relations." - George Orwell
D1734FA178BF7D5AE50CB1AD54442494 |
|
|
| |
|
| alex | 2549 Posts | |
| wrote on 12.11.10 at 19:32 | | I thought about your question but I don't know exactly what you want.. You can retrieve the stations as you explained and get the corresponding playlist (the thing you can feed streamWriter with) by using http://yp.shoutcast.com/sbin/tunein-station.pls?id=1207848 for example, where id is the id field you get using the second link you posted. I have set up "my own shoutcast" because I don't think those people like it if streamWriter hammers their servers.. |
| | | | LG/Best regards, Alex
"Journalism is printing what someone else does not want printed. Everything else is public relations." - George Orwell
D1734FA178BF7D5AE50CB1AD54442494 |
|
|
| | wrote on 13.11.10 at 02:39 | | sorry for my incomplete explanation…
i just want to try get list of channel from the shoutcast..not hammer their server, but i already did it with another xml component..
thanks again…. |
|
|
|
| alex | 2549 Posts | |
| wrote on 13.11.10 at 22:54 | | If you downloaded the XML (I download it using my THTTPThread) and want to parse it, it's easy. Take a look at HomeCommunication.pas, for example procedure TGetStreamsThread.DoDisconnected - it parses XML from the streamwriter.org server and displays it in the streambrowser. It's the same thing in procedure TGetGenresThread.DoDisconnected where all received genres are parsed. Does this help you? I'm wondering what you are trying to achieve, so I might provide better help. |
| | | | LG/Best regards, Alex
"Journalism is printing what someone else does not want printed. Everything else is public relations." - George Orwell
D1734FA178BF7D5AE50CB1AD54442494 |
|
|
| |
|
| alex | 2549 Posts | |
| wrote on 15.11.10 at 19:28 | | Hi,
HomeCommunication.pas does all the stuff you want. You will have to modify THomeCommunication.GetGenres and TGetGenresThread.DoDisconnected. Modify the URL in GetGenres and change XML parsing in DoDisconnected so that the genres from shoutcast are read. There's already code that shows how to parse XML that should be adaptable to your needs. It's (nearly) the same for getting the streams I think, but there might be a difference. streamWriter loads only as many streams it can display in the list, I don't know if you can tell the shoutcast server something like "I want to get streams 100 to 120 of genre xyz", not "I want to get all streams of genre xyz".
HTH and have a nice day |
| | | | LG/Best regards, Alex
"Journalism is printing what someone else does not want printed. Everything else is public relations." - George Orwell
D1734FA178BF7D5AE50CB1AD54442494 |
|
|
| | wrote on 16.11.10 at 02:13 | | thx man….it means lot…
shoutcast handles for requesting channel with limit example if i just wanna show only 500 channel
it can be done with
add &limit=%d to limit xml entry results where %d is the number of items to return |
|
|
|
| alex | 2549 Posts | |
| wrote on 16.11.10 at 21:18 | | If it is possible to supply not just the count to retrieve but also the offset from where to retrieve, it should be very easy to integrate the shoutcast database into streamWriter. Otherwise, the control that shows the channels would need to be changed. |
| | | | LG/Best regards, Alex
"Journalism is printing what someone else does not want printed. Everything else is public relations." - George Orwell
D1734FA178BF7D5AE50CB1AD54442494 |
|