Hi all !

The two solutions mentioned by Bede are valid. I even believe we use the first 
one for dolebrai.

Additionally, you can also use the on_metadata operator. This operator will 
call a function that you specifiy, which can be in particular a call to an 
external script, when it see new metadata.

That way, you can register the latest metada in a database, for instance, and 
use it on the other computer in order to retreive the current song.

Romain

Le lundi 3 août 2009 09:31:05, bede a écrit :
> 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

------------------------------------------------------------------------------
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

Reply via email to