Re: Done: current track, artist, and time from Live365

"Mark C . Langston" <[email protected]> Tue, 9 Oct 2001 11:38:57 -0700
Newsgroups gmane.music.equipment.slimp3.dev
Message-ID <[email protected]>
On Tue, Oct 09, 2001 at 06:26:57PM +0000, Sean Adams wrote:
> 
> >  3)  We need to determine whether there is a method more efficient than
> >      just polling the remote stream server every X seconds to update
> >      the song/artist info.  So far, I haven't come across anything, but
> >      this is my first attempt at any such code, so this may just reflect
> >      my own ignorance.
> 
> Why is it so difficult to find the specs for these protocols?

At least with Live365, it's in part due to the fact that they would
prefer you Always Do Things Their Way(TM).  And that means using their
interface, etc.

> I snooped
> around on google and found:
> 
> http://sourceforge.net/projects/streamripper/
> 
> It looks like you have to poll for live365, but I couldn't find any
> details.

I was going to grope through their code, but cvs.sourceforge.net seems
to be kaput at the moment.  Once it's back up I'll have a look.  It
does appear as though they have some way of determining song ends in
Live365.  if that's the case, I can use that as the prompt to poll.

We should probably incorporate shout/icecast meta-data handling into
the code at some point as well.  I haven't looked at it because that's
not where my interests lie, currently.  perhaps Dan or someone would
like to take a whack at it?

> 
> Bandwidth wise, polling even once per second would not be expensive
> compared to the stream itself. It's ugly, but it's not an appreciable
> amount of overhead.


It's not the overhead I'm worried about so much as the kludginess of
the approach.  I would prefer something a bit more elegant.

(and actually, the code I've written requires the parsing of some
rather large raw javascript.  So a per-second poll might actually get
notice from the Live365 folks, particularly if it's thousands of
SliMP3's doing the polling.  Their "standard" approach doesn't have
anything resembling that kind of footprint, so it'd be a red flag to
them.  Live365 has a history of being a bit antagonistic towards 3rd-
party solutions.)


-- 
Mark C. Langston
[email protected]
Systems & Network Admin
http://www.bitshift.org

------------------------ Yahoo! Groups Sponsor ---------------------~-->
Pinpoint the right security solution for your company- Learn how to add 128- bit encryption and to authenticate your web site with VeriSign's FREE guide!
http://us.click.yahoo.com/yQix2C/33_CAA/yigFAA/rIp0lB/TM
---------------------------------------------------------------------~->

To unsubscribe from this group, send an email to:
[email protected]

 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/