Jump to content

Cutting problem with reconnecting


Recommended Posts

Hello experts,

 

Unfortunately I did not find any thread with this problem, so :

 

We Use Shoutcast and for connect Sam Broadcaster.

Our radio station run in this system :

1/ We dont have own studio, so moderator conect to shoutcast from home. So new moderator if connect after moderator before him, the radio cutting.

 

2/ We connect to the server from SAM Broadcaster

 

3/ Also if we kick from our PC and shoucast go to AutoDJ radio is cutting

 

So listeners must to shut down down and on or they must refresh by F5 to listen without cutting.

 

Is that any solution when system is like us and work without cutting after connection to another PC or to AutoDJ or from AutoDJ?

 

I will very appreciate your suggestions !

 

 

Link to comment
Share on other sites

The best way to do this is to set up a separate Shoutcast server for the remote DJ's.

 

So, whenever a remote DJ wants to get "on-the-air" they would connect to this one (or two) port server, which you should make private, NOT public.

 

You can use the remoteDJ PAL script that comes with SAM broadcaster. This will add the remote Shoutcast URL to the queue and pick it up at a certain time and play. When the time is over, the PAL will revert back to Auto DJ.

 

This way, the listeners will not get 'bumped' off of the station. Listeners with WinAmp usually don't get bumped off, but iTunes listeners always do.

 

Kicking the source is NOT a good solution.

 

We use this method for all of our stations.

 

DJ Dee

Spacial SVS Team

Spacial SVS Support Team

http://support.spacialaudio.com/forums/

Get help with PAL Scripts at http://www.palscripts.com

Link to comment
Share on other sites

Interesting, thanks but.

 

We have this problem also if you change only irc channel on SAM or other moderator connect after old moderator.

 

So this cutting isnt only from AutoDJ to live broadcasting (or other way)

 

If I play our radio on VLC player no cutting within reconnecting new live moderator.

 

So Can be problem in flash player ?

Link to comment
Share on other sites

Another method is to use Icecast which allows simultaneous mount points. Point autodj to /autodj, point your live stream to /live, and point all listeners to /stream.

 

By default it connects to /live automatically, but if there is not a /live going it will check the /stream.

Stream101 | Affordable Media Solutions

Shared cPanel? Web Hosting | WordPress Hosting | Premium Stream Hosting

TOLL-FREE: (616) 277-7280 | 30 Day NO QUESTIONS Money-Back Guarantee

100% Cogent Free Network | CloudLinux OS | Tier 1 Bandwidth | Grand Rapids, MI

Link to comment
Share on other sites

please can anyone help out with the code i have got its a php code i still can't get it to work?

 

heres the code

 

<?php

$h = date('G'); //set variable $h to the hour of the day

$d = date('w'); //set variable $d to the day of the week.

$year = date('Y'); //set variable $year to the current year

//G is the date key for hours in 24 format (not 12), with no leading 0s, like 02.

// Adjust 2 hour offset for MST below.

$h = $h+1;

 

// MONDAY SCHEDULE

if ($d == 1 && $h >= 0 && $h

else if ($d == 1 && $h >= 4 && $h

else if ($d == 1 && $h >= 8 && $h

else if ($d == 1 && $h >= 12 && $h

else if ($d == 1 && $h >= 14 && $h

else if ($d == 1 && $h >= 16 && $h

else if ($d == 1 && $h >= 19) $img = '/images2/dj/images/dj_dog.jpg';

else if ($d == 2 && $h

 

// TUESDAY SCHEDULE

if ($d == 2 && $h >= 0 && $h

else if ($d == 2 && $h >= 4 && $h

else if ($d == 2 && $h >= 8 && $h

else if ($d == 2 && $h >= 12 && $h

else if ($d == 2 && $h >= 13 && $h

else if ($d == 2 && $h >= 15 && $h

else if ($d == 2 && $h >= 17 && $h

else if ($d == 2 && $h >= 20) $img = '/images2/dj/images/dj_dog.jpg';

else if ($d == 3 && $h

 

// WEDNESDAY SCHEDULE

if ($d == 3 && $h >= 0 && $h

else if ($d == 3 && $h >= 4 && $h

else if ($d == 3 && $h >= 8 && $h

else if ($d == 3 && $h >= 12 && $h

else if ($d == 3 && $h >= 13 && $h

else if ($d == 3 && $h >= 15 && $h

else if ($d == 3 && $h >= 19) $img = '/images2/dj/images/dj_dog.jpg';

else if ($d == 4 && $h

 

// THURSDAY SCHEDULE

if ($d == 4 && $h >= 0 && $h

else if ($d == 4 && $h >= 4 && $h

else if ($d == 4 && $h >= 8 && $h

else if ($d == 4 && $h >= 12 && $h

else if ($d == 4 && $h >= 13 && $h

else if ($d == 4 && $h >= 15 && $h

else if ($d == 4 && $h >= 19) $img = '/images2/dj/images/dj_dog.jpg';

else if ($d == 5 && $h

 

// FRIDAY SCHEDULE

if ($d == 5 && $h >= 0 && $h

else if ($d == 5 && $h >= 4 && $h

else if ($d == 5 && $h >= 8 && $h

else if ($d == 5 && $h >= 10 && $h

else if ($d == 5 && $h >= 12 && $h

else if ($d == 5 && $h >= 13 && $h

else if ($d == 5 && $h >= 15 && $h

else if ($d == 5 && $h >= 18 && $h

else if ($d == 5 && $h >= 20 && $h

else if ($d == 5 && $h >= 22) $img = '/images2/dj/images/dj_dog.jpg';

else if ($d == 6 && $h

 

// SATURDAY SCHEDULE

else if ($d == 6 && $h >= 0 && $h

else if ($d == 6 && $h >= 4 && $h

else if ($d == 6 && $h >= 5 && $h

else if ($d == 6 && $h >= 8 && $h

else if ($d == 6 && $h >= 9 && $h

else if ($d == 6 && $h >= 10 && $h

else if ($d == 6 && $h >= 11 && $h

else if ($d == 6 && $h >= 12 && $h

else if ($d == 6 && $h >= 13 && $h

else if ($d == 6 && $h >= 14 && $h

else if ($d == 6 && $h >= 15 && $h

else if ($d == 6 && $h >= 17 && $h

else if ($d == 6 && $h >= 19 && $h

else if ($d == 6 && $h >= 22) $img = '/images2/dj/images/dj_dog.jpg';

else if ($d == 0 && $h

 

// SUNDAY SCHEDULE

else if ($d == 0 && $h >= 0 && $h

else if ($d == 0 && $h >= 2 && $h

else if ($d == 0 && $h >= 4 && $h

else if ($d == 0 && $h >= 5 && $h

else if ($d == 0 && $h >= 6 && $h

else if ($d == 0 && $h >= 8 && $h

else if ($d == 0 && $h >= 9 && $h

else if ($d == 0 && $h >= 10 && $h

else if ($d == 0 && $h >= 11 && $h

else if ($d == 0 && $h >= 12 && $h

else if ($d == 0 && $h >= 16 && $h

else if ($d == 0 && $h >= 17 && $h

else if ($d == 0 && $h >= 18 && $h

else if ($d == 0 && $h >= 19 && $h

else if ($d == 0 && $h >= 21) $img = '/images2/dj/images/dj_dog.jpg';

else if ($d == 1 && $h

?>

 

<?php echo $img; ?>

 

 

 

yh i still can't get it to work its on our site at http://nrgextreme.co.uk/index.php under the picture that says on air?

and i have an icecast stream how am i meant to setup a dj thing like countryandwestern said via icecast? i mean is there some sort of code

Link to comment
Share on other sites

also there's this pal script. i have put the stream in but were do i but the pictures

 

{ About:

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 20 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 }

{==================================================}

const ShowURL = 'http://46.32.250.248:8013/live';

const StartTime = '01:01:00';

const EndTime = '01:05:00';

 

{ IMPLEMENTATION }

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

var T : Integer;

PAL.Loop := True;

 

{Wait for the show to start}

PAL.WaitForTime(StartTime);

 

{Add show to queue}

Queue.Clear;

Queue.AddURL(ShowURL,ipTop);

 

{Fade to show}

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;

while T

begin

Queue.AddURL(ShowURL,ipBottom);

CAT['Tracks'].QueueBottom(smLRP,EnforceRules);

T := T + 1;

end;

 

 

 

{Wait for show to end}

PAL.WaitForTime(EndTime);

 

{Clear queue}

Queue.Clear;

 

{Fade to normal programming}

ActivePlayer.FadeToNext;

 

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

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

×
×
  • Create New...