Old 3rd January 2016, 22:24   #1
rgwells
Junior Member
 
Join Date: Oct 2015
Posts: 2
Any ShoutCast callable APIs

Are their any APIs for control a shoutcast server? I wan to be able to change the password on a stream that has been previously setup. I would like to be able to do this via an ajax call or like a simple rest call. Is this at all possible with the standard shoutcast server software?
rgwells is offline   Reply With Quote
Old 4th January 2016, 13:54   #2
neralex
Major Dude
 
Join Date: Mar 2011
Posts: 576
No and I guess this is caused by the fact that you need to change the config-file and after that you have to reload the config with admin rights. The reload of the config on a running DNAS you can handle with a URL which the "pass"-parameter to the private pages.

For more details check the /docs/ folder in the download package and find the reload infos in the "Private Pages".

If you are running the DNAS on a maschine with a running webserver which supports PHP, then I wouldn't use an ajax-call to run the URL. Because with ajax you would share your DNAS admin password parameter in public. I would use a PHP based form to set the new stream-password in a separate config-file which you can create also with PHP in the same run. You can set an include in the main config-file like this: 'include=streams/*.conf' to make you separate conf accessable. At the end you can add the URL in your admin interface or you are using cURL to run the URL after the file was created.
neralex is offline   Reply With Quote
Old 4th January 2016, 22:13   #3
rgwells
Junior Member
 
Join Date: Oct 2015
Posts: 2
The software I am tying to create would not be run on the same server as the DNAS server would run so running another local web application would not be viable.
rgwells is offline   Reply With Quote
Old 5th January 2016, 21:41   #4
neralex
Major Dude
 
Join Date: Mar 2011
Posts: 576
...then is the answer: no!
neralex is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump