NadineB Bailey Posted June 24, 2013 Share Posted June 24, 2013 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 More sharing options...
Darkie Minotaur Posted June 24, 2013 Share Posted June 24, 2013 I haven't used or tried it myself, but v2 has /stats that provides information an XML format Link to comment Share on other sites More sharing options...
Rolig Loon Posted June 24, 2013 Share Posted June 24, 2013 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? 1 Link to comment Share on other sites More sharing options...
NadineB Bailey Posted June 24, 2013 Author Share Posted June 24, 2013 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 More sharing options...
Rolig Loon Posted June 24, 2013 Share Posted June 24, 2013 Try this, or wait until PeterCanessa Oh spots your question here and leaps to the rescue >>> http://community.secondlife.com/t5/LSL-Scripting/Shoutcast-now-playing-anyone/m-p/733605/ Link to comment Share on other sites More sharing options...
PeterCanessa Oh Posted June 25, 2013 Share Posted June 25, 2013 Seen it, didn't answer because I never resolved it :matte-motes-crying: Link to comment Share on other sites More sharing options...
Darkie Minotaur Posted June 25, 2013 Share Posted June 25, 2013 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 More sharing options...
Xiija Posted June 26, 2013 Share Posted June 26, 2013 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 Link to comment Share on other sites More sharing options...
Darkie Minotaur Posted June 26, 2013 Share Posted June 26, 2013 What would such an example be? I can assure you, I didn't type the response I posted by hand Link to comment Share on other sites More sharing options...
Xiija Posted June 26, 2013 Share Posted June 26, 2013 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 More sharing options...
PeterCanessa Oh Posted June 26, 2013 Share Posted June 26, 2013 Thanks Darkis; the thread Rolig referenced was for v1, solutions for which I found unreliable at best. Nice to know there is a good solution for v2 Link to comment Share on other sites More sharing options...
Darkie Minotaur Posted June 26, 2013 Share Posted June 26, 2013 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 More sharing options...
stephawk Posted May 21, 2016 Share Posted May 21, 2016 How do i put this along sid the versuon one script Link to comment Share on other sites More sharing options...
Recommended Posts
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