Can mount users be added/manage remotely with other software

Steamcast is a stand alone server that combines the features of SHOUTcast and Icecast2 and more to make one mega awesome server.
Post Reply
sound selecta
Posts: 78
Joined: Tue Jan 15, 2002 4:41 am
Location: Vancouver
Contact:

Can mount users be added/manage remotely with other software

Post by sound selecta »

Would someone be able to access Steamcast back end with other software (custom module) to say add users to the live mount. I was thinking more of Drupal users with the right access being able to log into the Drupal site, pick a date on a calendar and on that date Drupal would add the Streamcast user to the live mount so they could access it. This way verified DJ's could pick their own schedule to play on the stream.
User avatar
Jay
Will work for food (Administrator)
Posts: 3020
Joined: Mon Jan 14, 2002 12:48 am
Location: Next Door
Contact:

Re: Can mount users be added/manage remotely with other soft

Post by Jay »

You could write something that could do this by making the right form calls to the backend control panel.

Something like this

Add

Code: Select all

http://{Your Steamcast Address}/admin/stream/{StreamID}/users/?action=create&username={USER}&password={PASSWORD}&password-confirm={PASSWORD}&group=4
Remove

Code: Select all

http://{Your Steamcast Address}/admin/stream/{StreamID}/users/?action=delete&{USER}=on
You can also automate this for other rolls.

Administration is group 2, stats is 3, mount manager is 4, mount source (can only authenticate as source and not to the panel) is 5 and listener is 6.

Listener authentication automation in this way is not necessary as you can use "NotifyListenerAdd" and "NotifyListenerRemove" configuration values to have Steamcast ask a defined script if that user should be allowed. Unfortunately doing this for sources was missed but will be in future version of Steamcast.

Keep in mind that you will have to authenticate yourself to the admin panel using authentication-basic from the script.

We are in the process of designing a REST API that will make this a little less cumbersome and more officially documented.
- Jay
sound selecta
Posts: 78
Joined: Tue Jan 15, 2002 4:41 am
Location: Vancouver
Contact:

Re: Can mount users be added/manage remotely with other soft

Post by sound selecta »

Jay wrote:You could write something that could do this by making the right form calls to the backend control panel.

Something like this

Add

Code: Select all

http://{Your Steamcast Address}/admin/stream/{StreamID}/users/?action=create&username={USER}&password={PASSWORD}&password-confirm={PASSWORD}&group=4
Remove

Code: Select all

http://{Your Steamcast Address}/admin/stream/{StreamID}/users/?action=delete&{USER}=on
You can also automate this for other rolls.

Administration is group 2, stats is 3, mount manager is 4, mount source (can only authenticate as source and not to the panel) is 5 and listener is 6.

Listener authentication automation in this way is not necessary as you can use "NotifyListenerAdd" and "NotifyListenerRemove" configuration values to have Steamcast ask a defined script if that user should be allowed. Unfortunately doing this for sources was missed but will be in future version of Steamcast.

Keep in mind that you will have to authenticate yourself to the admin panel using authentication-basic from the script.

We are in the process of designing a REST API that will make this a little less cumbersome and more officially documented.
Thanks, gonna see if I can get someone to create a module that can do this in Drupal.
User avatar
Max
Posts: 153
Joined: Fri Oct 21, 2011 1:39 am

Re: Can mount users be added/manage remotely with other soft

Post by Max »

sound selecta wrote: Thanks, gonna see if I can get someone to create a module that can do this in Drupal.
Make sure to validate all input and verify that the username is just alphanumerical.
Post Reply