Skip to Content
It is currently March 1st, 2021, 5:06 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 11 posts ] 
Author Message
 Post subject: Kick Source SHOUTcast 2
PostPosted: September 22nd, 2014, 3:46 pm 
Offline
Junior User
Junior User

Joined: April 21st, 2013, 12:27 pm
Posts: 53
Hi.I ran into a problem.
I have a PAL script that kicks the source conencted to my shoutcast server and conencts my sam.
What I want it to do is to only kick if there is a source connected.
If there is no soruce connected , skip and automatically start the encoder.
Also I'm wonderin'if this supports Shoutcast 2 server since I only used it on v1.
Also need a PAL scrit that will check if no source is connected to server it will Encoders[0].Start;.

{ About:
This script will you to disconnect any source connected
to a SHOUTcast server.It will also connect this SAM to the server.

Usage:
a) Create a single MP3/AAC encoder to connect to the shoutcast server.
b) Supply your shoutcast server details in the configuration section below
c) If you want to start this PAL script at a specific time , use the EventScheduler.
}
{KICK CONFIGURATION }
{==================================================}
const shoutcast_password = 'streampassword';
const shoutcast_host = 'streamip';
const shoutcast_port = 'streamport';
{==================================================}


{ IMPLEMENTATION }
{--------------------------------------------------}

{ Build URL used to send command to SHOUTcast server }
var URL : String;
URL := 'http://admin:'+shoutcast_password+'@'+shoutcast_host+':'+shoutcast_port+'/admin.cgi?mode=kicksrc';

{ Kick source from chosen SHOUTcast server }
WebToFile('c:\dummy.txt',URL);

{TIP: Start the encoder(s):
Encoders[0].Start;
Queue.Clear;
ActivePlayer.FadeToNext;
}

{--------------------------------------------------}


Top
 Profile  
Reply with quote  
PostPosted: September 22nd, 2014, 11:34 pm 
Offline
SVS Member
SVS Member

Joined: September 11th, 2004, 1:51 pm
Posts: 670
Location: PA
I would probably assume that this wont work on a Shoutcast V2.+ stream. As v2 and up does not require auto DJ to be "Kicked". When you start your encoder with a version 2 stream, it automatically takes over from auto DJ and auto DJ runs in the background.
Auto DJ fades out, and your music starts. Once you stop your encoder, auto dj fades back in.

This is only assuming that you are not using SAM Broadcaster as your auto DJ and are using a stream host.

_________________
Mark L. - SVS (Spacial Volunteer Support)
-------------------------------------------------
DJ Fire - CEO
http://www.crossfire-radio.com


Top
 Profile  
Reply with quote  
PostPosted: September 22nd, 2014, 11:48 pm 
Offline
SVS Member
SVS Member

Joined: October 15th, 2003, 11:59 pm
Posts: 4743
Location: Los Angeles - A Little West Of Nashville
You can kick the SHOUTcast version 2 source ... here is the format:

http://sc15.shoutcaststreaming.us:8000/ ... s=password

Since there can be multiple streams (SID=1,2,3,etc.) you must specify which one you are kicking. Also the password is the ADMIN password for the stream.

_________________
- DJ Dee
- Spacial Volunteer Support (SVS)
- Custom PAL services: www.palscripts.com
- http://www.AlternativeHD.com
- http://www.lahotcountry.com


Top
 Profile  
Reply with quote  
PostPosted: September 23rd, 2014, 7:15 am 
Offline
Junior User
Junior User

Joined: April 21st, 2013, 12:27 pm
Posts: 53
THX!


Top
 Profile  
Reply with quote  
PostPosted: January 31st, 2017, 3:16 pm 
Offline
New User
New User

Joined: December 4th, 2006, 11:16 am
Posts: 5
I am having the same problem with my old SHOUTcast v1 KickSource script not being able to kick v2 server. How do I modify KickSource.pal to include the SID # (We use SID 1)
What should it look like? I can not see the format in countrywesterndj 's reply.

Thanks in advance


Top
 Profile  
Reply with quote  
PostPosted: February 1st, 2017, 6:19 am 
Offline
SVS Member
SVS Member

Joined: September 11th, 2004, 1:51 pm
Posts: 670
Location: PA
Code:
http://sc15.shoutcaststreaming.us:8000/admin.cgi?sid=1&mode=kicksrc&pass=password

_________________
Mark L. - SVS (Spacial Volunteer Support)
-------------------------------------------------
DJ Fire - CEO
http://www.crossfire-radio.com


Top
 Profile  
Reply with quote  
PostPosted: February 1st, 2017, 11:30 am 
Offline
SVS Member
SVS Member

Joined: October 15th, 2003, 11:59 pm
Posts: 4743
Location: Los Angeles - A Little West Of Nashville
All you had to do is right click on the link you couldn't see and then copy and paste it in Notepad and the full link would have appeared. This bulletin board tends to shorten links.

_________________
- DJ Dee
- Spacial Volunteer Support (SVS)
- Custom PAL services: www.palscripts.com
- http://www.AlternativeHD.com
- http://www.lahotcountry.com


Last edited by Mastacheata on February 1st, 2017, 3:08 pm, edited 1 time in total.
Notepad is the editor, Notebook is where you have to do the writing by hand, FTFY


Top
 Profile  
Reply with quote  
PostPosted: April 20th, 2020, 11:28 pm 
Offline
New User
New User

Joined: April 20th, 2020, 11:10 pm
Posts: 8
This thread is old, so I would assume that the solutions offered work in all versions of SAM since ShoutCast V2 has been implemented. However such doesn't seem to be the case;

Our radio doesn't make use of AutoDJ, so we must rely on a Pal script kicker that this thread has helped me implement for our DJs. Funny thing is, it works fine in SAM Pro 2020 but not in Pro 2017, the two versions present in our organization.

Any idea why that would be?

Here is the script I use, a small adaptation of the generic one provided with SAM;
Code:
{ CONFIGURATION }
{==================================================}
const pass     = 'server password';
const host     = 'ex.url; mesradiosweb.ca/radio';
const port     = 'input port ex; 8000';
{==================================================}


{ IMPLEMENTATION }
{--------------------------------------------------}

{ Build URL used to send command to SHOUTcast server }
var URL : String;
URL := 'https://'+host+'/'+port+'/admin.cgi?sid=1&mode=kicksrc&pass='+pass;

{ Kick source from SHOUTcast server }
WebToFile('c:\dummy.txt',URL);

{TIP: This assumes you only have one encoder  }
{ NOTE: Use this to start a specific encoder: }
Encoders[0].Start;

{Now start & connect all encoders}
{Encoders.StartAll}

{--------------------------------------------------}


Last edited by SpeedyCharly on April 22nd, 2020, 3:55 am, edited 2 times in total.

Top
 Profile  
Reply with quote  
PostPosted: April 21st, 2020, 11:16 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8152
Location: Cologne (Germany)
Easy:
SAM 2017.10 and older => HTTP-only
SAM 2018.1 and newer => HTTP and HTTPS

SAM 2018 was the first to introduce TLS support in SAM. Previous versions came with a very outdated version of the Delphi socket connection processing that didn't support TLS and thus couldn't be used with HTTPS.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
PostPosted: April 22nd, 2020, 3:49 am 
Offline
New User
New User

Joined: April 20th, 2020, 11:10 pm
Posts: 8
Mastacheata wrote:
Easy:
SAM 2017.10 and older => HTTP-only
SAM 2018.1 and newer => HTTP and HTTPS

SAM 2018 was the first to introduce TLS support in SAM. Previous versions came with a very outdated version of the Delphi socket connection processing that didn't support TLS and thus couldn't be used with HTTPS.


Ok so that is what I am up against - don't think there is a fix for that. Thanks for the info all the same

Provided my two Sam 2017 DJs with an auto-kicker that works thru any Web browser...

Good noise to you Bro!


Top
 Profile  
Reply with quote  
PostPosted: April 22nd, 2020, 4:41 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8152
Location: Cologne (Germany)
SpeedyCharly wrote:
don't think there is a fix for that

At least none that are as simple as a PAL script.
If anyone is interested, feel free to look up what a reverse proxy is and how to set up one.

_________________
Benedikt Bauer - SVS (Spacial Volunteer Support)

Shop for readymade PAL scripts by countrywesterndj - Or get a custom script made by me (or others)

My Project:
Send "Now Playing" from SAM to Twitter and/or Facebook | Sourcecode


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 11 posts ] 

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 39 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB® Forum Software © phpBB Group