View Single Post
Old 30th December 2021, 14:59   #2
DJ Egg
Techorator
Winamp & Shoutcast Team
 
Join Date: Jun 2000
Posts: 35,973
Hello Michel,

Afaik, the admin/metadata?mount=/{mountpoint} API is for Shoutcast DNAS v2 servers, not Icecast (masterv3 = Icecast v2 server).

Besides, we can't give the global admin pwd to anyone...

As you say, we would need to implement an individual username (e.g. RadioManager email) & RMO pwd type login, similar to how it worked for the stats aggregator tool included with old Shoutcast Streaming Service solution, but unfortunately, that API was never reimplemented in SC4B :-(


Also currently implemented but mostly broken (it works for some stations but not others, another issue which is currently being investigated):
code:
https://ws.shoutcast.com/api/metadata/playing?radioUid=95270753-6425-493f-9beb-febaa0e0ae50


(where the uid is the station guid from the RMO)

The API appears to be working for /bruce-classic-rock


Another method would be to pull the "title" or "yp_currently_playing" data from:

code:
http://masterv3.shoutcast.com:8000/status-json.xsl?mount=/{mountpoint}
e.g. http://masterv3.shoutcast.com:8000/status-json.xsl?mount=/bruce-classic-rock




I hope this helps :-)
DJ Egg is offline   Reply With Quote