|
|
|
|
#1 |
|
Junior Member
Join Date: Feb 2015
Posts: 7
|
how to get metadata SHOUTCAST in PHP
How to retrieve information of SHOUTCAST metadata and send to a PHP page?
Informations like Server name, music, etc... |
|
|
|
|
|
#2 |
|
Join Date: Sep 2003
Posts: 27,873
|
look at the documentation provided with the current DNAS 2.x release for what you can query from the DNAS (and how to query that information from the DNAS) and use that. most of that information will also apply if you're having to do this against the legacy 1.x DNAS (you have to ignore the sid parameter in such cases).
|
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Feb 2015
Posts: 7
|
How to get only stream name?
home.html?sid=Something here? |
|
|
|
|
|
#4 |
|
Forum King
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,290
|
as it states in the DOCUMENTATION that comes with DNAS, home.html redirects to the configured stream homepage (streamurl) - so, that wont do what you want no matter what you pass to that URL
there's no URI to get "only the stream name" as far as I can see in the DOCUMENTATION that comes with DNAS, but if you read the DOCUMENTATION, you might find something I missed, because I don't have a need for that ... if the public pages are not disabled through the use of streamhidestats=all, you can use /stats?sid=# (where # is a NUMBER) to get XML info about the steam, including streamtitle (what you refer to as stream name I'm guessing) or /stats?sid=#&json=1 to get JSON version of the same data if the public pages are disabled, you need to use authentication with /admin.cgi?mode=viewjson&page=1&sid=# (for JSON version) or /admin.cgi?mode=viewxml&page=1&sid=# (for XML version) or perhaps pass password=xxx to the previous examples - I'm not 100% clear on that, I think both may be valid, but it's all in the DOCUMENTATION THAT CAME WITH DNAS - so, I'm only regurgitating what I READ in that DOCUMENTATION anyway in summary, as DrO said, "look at the documentation" - preferably read it too "If you don't like DNAS, write your own damn system" So I did |
|
|
|
|
|
#5 |
|
Join Date: Sep 2003
Posts: 27,873
|
for disabled public pages, if you provide a valid password via the 'pass' parameter then you can still access the xml and json versions (so monitoring tools can still work even if you don't want other broadcasters snooping on your stats...).
|
|
|
|
|
|
#6 |
|
Junior Member
Join Date: Feb 2015
Posts: 7
|
Thanks! I Used the public json link.
|
|
|
|
|
|
#7 |
|
Junior Member
Join Date: Feb 2015
Posts: 7
|
I'm trying to parse the xml file with php but return errors... I need to connect with user and password by php?
#EDIT Some PHP coding and the magic is done
|
|
|
|
|
|
#8 |
|
Major Dude
Join Date: Mar 2011
Posts: 576
|
Maybe that can help you, to protect yourself for flooding the php error log while parsing the xml content.
http://forums.winamp.com/showpost.ph...03&postcount=2 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|