Skip to Content
It is currently September 24th, 2021, 7:36 am

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 8 posts ] 
Author Message
 Post subject: Kick pal Source
PostPosted: March 15th, 2010, 8:07 am 
Offline
New User
New User

Joined: March 15th, 2010, 8:03 am
Posts: 1
Hi,

How can i create a kick pal script or source to use with Sam Broadcaster?
Because everytime i and my djs need to kick the other dj,we have to go to the server
and turn it off but i know there is a kick pal script ou source to do that directly from Sam Broadcaster.
Thanks for helping me. :)


Top
 Profile  
Reply with quote  
 Post subject: Re: Kick pal Source
PostPosted: March 15th, 2010, 10:00 am 
Offline
SVS Member
SVS Member

Joined: December 6th, 2004, 9:00 am
Posts: 8254
Location: Cologne (Germany)
Inside PAL Scripts Window click + (add). Look inside the folder where you installed SAM (C:\Program Files(x86)\SpacialAudio\SAMBC or similar)
There's a directory called PAL and inside of that is a PAL Script called KickSource.pal.
Once added click the edit button and enter your shoutcast details (password, hostname, port). Save your changes.

Next time consult the documentation first. It's all written in the help files.

_________________
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  
 Post subject: Re: Kick pal Source
PostPosted: March 21st, 2010, 11:45 pm 
Offline
Senior User
Senior User

Joined: May 3rd, 2008, 10:35 am
Posts: 88
Location: Montreal, Canada
We recently changed from the KICK pal script to running a pal that connects to the REMOTE DJ's shoutcast server.

Much smoother transition between DJ's .. much more secure environment.

Needs a little work (setting up a shoutcast server on each remote dj's computer), connecting to their stream at a specific hour .. BUT .. this way you do not have to give ANY password to YOUR shoutcast server.

Wouldn't go back to using a KICK feature.

BeN

_________________
RadioRockCafe.com, the BEST music you NEVER heard


Top
 Profile  
Reply with quote  
 Post subject: Re: Kick pal Source
PostPosted: October 23rd, 2010, 10:45 am 
Offline
New User
New User

Joined: June 11th, 2009, 10:19 am
Posts: 20
Can you explain more about how that works? and maybe share your script? (a)
Im a bit noob at sam boadcaster, but im learning more and more!
My kicksource doesnt work eighter so I guess your solution can fix my problems?!

Thank you!


Top
 Profile  
Reply with quote  
 Post subject: Re: Kick pal Source
PostPosted: October 23rd, 2010, 12:25 pm 
Offline
Senior User
Senior User

Joined: May 3rd, 2008, 10:35 am
Posts: 88
Location: Montreal, Canada
I cannot take credit for this PAL as it was originally designed by Festerhead.

Thanks Festerhead!

1st .. Have your host/dj install a working Shoutcast server on HIS LOCAL machine. Get the Shoutcast DNAS Tool and help in the forums. I will not get into the details on how to set this up as it's pretty much explained in there.

2nd .. Once this is setup, your host/dj will have to broadcast to THAT local server instead of YOUR shoutcast hosted server. To make sure everything is working fine, make sure YOU can connect to his shoutcast server. There could be some firewall related issues and/or some configuration tweaks to apply. Find help on this on the shoutcast.com forums

3rd .. Once the setup is working correctly and streaming to the web. You need to create an event in YOUR SAM that will execute a PAL script a few seconds PRIOR to having your host start his show. I usually ask my hosts/djs to run our station ID a few seconds prior to the start of his show so that I can connect to his stream and not have him right smack in the middle of him talking.

4th .. Create/edit the following PAL script to your liking/needs.

Code:
PAL.LockExecution;
{ About:
   Modified RemoteShow.pal from SAMs PAL folder to use a relative wait time.
   Schedule via the Event Scheduler.
   FesterHead is cool.

   Comments left as-is...
   This script will play a remote show inside SAM
   The show starts at a specified time, and then ends at
   another specified time.

   The script also contains some error-correction code
   that will attempt to connect to the stream up to 5 times
   in case it goes down. We schedule one song between each attempt.

   Usage:
    a) Comple configuration below and start PAL script.
    b) If this show is only in certain days you will need to modify the script to
       only queue the show up during these days.
       See the DayOfWeek function.
}
{ CONFIGURATION }
{==================================================}

{ Enter IP / Port of your host/dj shoutcast server }
const ShowURL   = 'http://xxx.xxx.xxx.xxx:port/';

{ Enter Duration of his broadcast }
const ShowDuration   = '+hh:mm:ss:';

{ IMPLEMENTATION }
{--------------------------------------------------}
var T : Integer;
{Add show to queue}
Queue.Clear;

{ Add the Host shoutcast server IP to the queue }
Queue.AddURL(ShowURL,ipTop);

{ Insert Station ID category/file in here }
Cat['station id'].QueueTop(smRandom, NoRules);

{ Fade to remote broadcast }
ActivePlayer.FadeToNext;

{ Precautions - if there is a brief disconnect or server problem,
then we would want to retry a few times to get back to the show.
To do this we place the URL quite a few times in the queue, followed
by some normal programmming. That way we will try and reconnect until
the end of the show }

T := 0;
{ Add the shoutcast host/dj IP 5 times in the queue with 1 song between each IP }
while T < 5 do
begin
  Queue.AddURL(ShowURL,ipBottom);

{ Insert Main music category in here  }

  CAT['you music category here'].QueueBottom(smLRP,EnforceRules);
  T := T + 1;
end;

{ Wait for show to end }
PAL.WaitForTime(ShowDuration);

{ Clear queue and make YOUR SAM regain control of the programming }
Queue.Clear;

{ Insert Station ID category/file in here }
Cat['station id'].QueueBottom(smRandom, NoRules);

{ Fade to local broadcast which will play your station ID }
ActivePlayer.FadeToNext;
PAL.UnLockExecution;


Hope this helps!

_________________
RadioRockCafe.com, the BEST music you NEVER heard


Top
 Profile  
Reply with quote  
 Post subject: Re: Kick pal Source
PostPosted: October 7th, 2011, 3:52 pm 
Offline
New User
New User

Joined: June 23rd, 2010, 8:49 pm
Posts: 20
Location: St. Paul, MN
That's neat but my DJs are never right on time for their shows. Maybe if there was a way to make a button on your website that initiates the event when they're ready. The kick source thing does suck, it interrupts the current song which makes for a lousy sounding transition from regular tracks to a live DJ. You could also just setup a separate shoutcast server for your DJs to connect to instead of having them run shoutcast servers on their local machines, I can see that being a lot of trouble (firewall, IPs changing, etc).

_________________
Odogg
Dogglounge Deep House Radio
http://www.dogglounge.com


Top
 Profile  
Reply with quote  
 Post subject: Re: Kick pal Source
PostPosted: October 7th, 2011, 5:36 pm 
Offline
Senior User
Senior User

Joined: May 3rd, 2008, 10:35 am
Posts: 88
Location: Montreal, Canada
Quote:
That's neat but my DJs are never right on time for their shows. Maybe if there was a way to make a button on your website that initiates the event when they're ready. The kick source thing does suck, it interrupts the current song which makes for a lousy sounding transition from regular tracks to a live DJ. You could also just setup a separate shoutcast server for your DJs to connect to instead of having them run shoutcast servers on their local machines, I can see that being a lot of trouble (firewall, IPs changing, etc).


Well, the way it works above in the pal is that it inserts a track(up to 5 but you can configure it like you want) before each of the tries. The drawback from that is that your host will have to wait until the track ends OR that someone no the main machine fades it.

You are right though, you could setup a separate shoutcast server somewhere but then the issue of "On time" arises again and that pal might come in handy.

Firewalls and IPs changing are issues that i've had to deal with over the last few months. I agree. But it is still something i'm willing to live it for the sake of having a decent quality "cut off".

_________________
RadioRockCafe.com, the BEST music you NEVER heard


Top
 Profile  
Reply with quote  
 Post subject: Re: Kick pal Source
PostPosted: October 7th, 2011, 7:53 pm 
Offline
Alumni
Alumni

Joined: October 14th, 2006, 9:38 am
Posts: 5986
Location: Deep in the heart of the PRNJ
Trigger the connection script using a PAL.WaitForEvent. Have the DJ send a specific string to connect.

Details in the PAL Scripting Reference.

_________________
- Stan Olochwoszcz
A proud licensed SAM user since 2002

Raritan Bay Radio


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

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 17 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:  
cron
Powered by phpBB® Forum Software © phpBB Group