Jump to content

Song information shoutcast V2


NadineB Bailey
 Share

You are about to reply to a thread that has been inactive for 2869 days.

Please take a moment to consider if this thread is worth bumping.

Recommended Posts

Hi :)

Does anyone know how to get the song information inworld from radio channels running the shoutcast V2 software? As i know the 7.html page provided by shoutcast V1 is not longer available on Shoutcast V2 and indeed, it's not longer working on V2 channels.

Any help is much appreciated.

Link to comment
Share on other sites

There's a debug setting for ShowStreamMetadata that shows stream metadata (artist, title) notifications. (0 = Off, 1 = Notification Toast, 2 = Nearby Chat).  I haven't tried setting it myself, since Firestorm accesses that setting directly in Preferences >>> Sound & Media, but I assume that it's active in V3 and the other viewers.  Have you looked?

  • Like 1
Link to comment
Share on other sites

hi, and thanks for answers :)

Yes, im currently using firestorm viewer and I have that option enabled.. Works great with any Radio station. This is a great feature, but i assume that i have to go the mentioned XML way to bring that metadata on a display board. Or is there any other known way? I cant find anything about it..

 

Link to comment
Share on other sites

As I stated earler:

in version 2, 7.html is gone. But there is a public interface - stats.

If you call (sid is the stream id)

http://myserver:myport/stats?sid=1

 You will get a reply that looks something like:

<SHOUTCASTSERVER><CURRENTLISTENERS>1</CURRENTLISTENERS><PEAKLISTENERS>1</PEAKLISTENERS><MAXLISTENERS>32</MAXLISTENERS><UNIQUELISTENERS>1</UNIQUELISTENERS><AVERAGETIME>361</AVERAGETIME><SERVERGENRE>Misc</SERVERGENRE><SERVERURL>http://www.shoutcast.com</SERVERURL><SERVERTITLE>myServer</SERVERTITLE><SONGTITLE>2raumwohnung - Sexy girl (English Version) (Bonus Track)</SONGTITLE><NEXTTITLE>2raumwohnung - Sasha (Sex Secret)</NEXTTITLE><STREAMHITS>1</STREAMHITS><STREAMSTATUS>1</STREAMSTATUS><STREAMPATH>/test.aac</STREAMPATH><BITRATE>48</BITRATE><CONTENT>audio/aacp</CONTENT><VERSION>2.0.0.29 (posix(linux x64))</VERSION></SHOUTCASTSERVER>
Link to comment
Share on other sites

i have tried every way i can think of to get this to work,

no one can post a working example, and no one on SHoutcast forums has a clue.

luckily the 7.html functionality will be returned with the next shoutcast update,

so just hang in there for a bit :P

Link to comment
Share on other sites

hi :)

i'm looking for a working example of the http call?

here is what i'm trying, and many other variations...

( the url i'm using plays on my land radio, but does not show info

 on my song titler, so i * assume* it is v2? )

string url = "http://sl.magnatune.com/Indian/";key HTTPRequest;default{    state_entry()    {    }     touch_start(integer total_number)    {       HTTPRequest=llHTTPRequest(url + "stats/songtitle/sid=1 HTTP/1.0\nUser-Agent: LSL Script (Mozilla Compatible)\n\n",[],"");    }    http_response(key k,integer status, list meta, string body)    {        if(k != HTTPRequest)        {            llSay(0," nope");             return;        }        else        {            llOwnerSay(" got \n" + body);        }                     }}

 i have also tried

 HTTPRequest=llHTTPRequest(url + "stats?sid=1 HTTP/1.0\nUser-Agent: LSL Script (Mozilla Compatible)\n\n",[],"");

if anyone knows of a v2 station url, could they post it?

most of the stations on my radio are responding to the 7.html call

Link to comment
Share on other sites

Your header information needs a little tweaking - this works perfectly for me:

string url = "stream-url";key HTTPRequestKey;default{    state_entry()    {    }     touch_start(integer total_number)    {       HTTPRequestKey=llHTTPRequest(url + "/stats?sid=1 HTTP/1.0\nUser-Agent: XML Getter (Mozilla Compatible)\n\n",[],"");    }    http_response(key k,integer status, list meta, string body)    {        if(k != HTTPRequestKey)        {            llSay(0," nope");             return;        }        else        {            llOwnerSay(" got \n" + body);        }                     }}

 If you need a v2 server for testing, just contact me inworld. I have a server which I don't however run all the time.

Link to comment
Share on other sites

  • 2 years later...
You are about to reply to a thread that has been inactive for 2869 days.

Please take a moment to consider if this thread is worth bumping.

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
 Share

×
×
  • Create New...