I've been trying to get current song name and artist to show up on Internet streaming. What I have is a windows service that pulls data from log file from the program using to play songs (it's custom made program), and the script is working just fine. These are the parameters that I had to set to get song info:
webSender[n].artistParam=artist
webSender[n].titleParam=station=19a283ec79b547718723961749f55786&title
webSender[n].URL=http://ift.tt/1t8xXjE
webSender[n].Active=True
After this is set in config file, when I go to this link: http://ift.tt/15nrMNb I get current song data, and if I go to this link http://ift.tt/1t8xXjG I get as seems like XML file playlist from last x songs.
These links and configuration I got from the company who made the software for radio, but they can't (or won't) help me with anything else.
I would be happy if I could change those links so that I send data from service to my server, and also read data there - but I have linux server so I can only run .php scripts? Because now I'm sending data to their server and I don't want that.
That all works really fine. But the problem is this, I don't know how to use this data to display it on web page (that's problem no.1), and I would like to show song info in internet stream, so when you stream this radio station in e.g. iTunes you get current song info. We're using program butt (can be found at sourceforge) for sending audio to internet streaming server, and this program butt has an option to send song data by 2 methods, one is manually entering each song data and push OK button (then it will refresh stream info) or automatically by pulling data from local .txt file (first line had to have song data that I want to be pulled to server), and it will do that automatically every 30 sec. Now, I really don't know how to get data generated on the link no 1 to show up on local .txt file continuously, so when song changes that automatically write that in .txt on my computer.
Can anyone help? :D Thank you in advance! I'm here if any information is needed.
No comments:
Post a Comment