Pascal Vanbel - Radio Universitaire Namuroise - 107.1MHz FM wrote: > > Hello, > > > > I wonder how to get current song from another computer ? > > > > In fact our web server is not our streaming server. I got the title on > > my stream server (icecast2) but I want to get it on my web server also > > in a nicer way than play with my icecast page :-) > > > > Thx for any help > > > > > 1. (i see you don't want this)
a simple way is: - wget http://IP:PORT/status.xsl (get icecast status page) - parse icecast status page and extract field "Current Song:" - if this script is on icecast server, try to upload information of current song to web server (via ftp or something) - if this script is run from web server, write down in a file or something that info. repeat every minute/ two minutes, whatever 2. on web server start a mplayer instance (with something like "-ao null") and intercept messages : ICY Info: StreamTitle='cuba (phunk investigation miramar mix) (albino alligator)'; ... and do whatever you need with info. Daniel ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ Savonet-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/savonet-users
