Skip to Content
It is currently October 23rd, 2019, 11:18 pm

All times are UTC - 6 hours [ DST ]




Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: November 14th, 2008, 10:13 am 
Offline
New User
New User

Joined: August 31st, 2008, 2:50 pm
Posts: 11
Hi All...

Ok...For weeks now i have wondered how you get the name of a person to show up on the following Script,so as i can get the DJ's name to show up..I have 2 Ports i use for bringing DJ's in through Sam..wanting to know where if possible what i have to do to include the Neccessary code Info...So the Dj's name shows up in the stats!.

Here Is The Script:


Code:
{ CONFIGURATION }
{==================================================}
const ShowURL   = 'http://000.00.00.00:0000/';
const StartTime = '19:59:50'; //<-- MODIFY START TIME
const EndTime   = '21:59:35'; //<-- MODIFY END TIME

{ IMPLEMENTATION }
{--------------------------------------------------}
var T : Integer;
{Wait for the show to start}
PAL.WaitForTime(StartTime);

{Add show to queue}
Queue.Clear;
Queue.AddURL(ShowURL,ipTop);

{Fade to show}
ActivePlayer.FadeToNext;


T := 0;
while T < 20 do
begin
  Queue.AddURL(ShowURL,ipBottom);
  CAT['Music (All)'].QueueBottom(smLRP,EnforceRules);
  T := T + 1;
end;

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

{Clear queue}
Queue.Clear;

ActivePlayer.FadeToNext;

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



Any Help would be appreciated

Many Thanks....

Derek


Top
 Profile  
Reply with quote  
PostPosted: November 14th, 2008, 10:40 am 
Offline
New User
New User

Joined: August 31st, 2008, 2:50 pm
Posts: 11
Hi All...

Got it resolved using trial and error...so here is the working script...

Code:
{ CONFIGURATION }
{==================================================}
const ShowURL   = 'http://000.000.00.00:000/';
const StartTime = '19:59:50'; //<-- MODIFY START TIME
const EndTime   = '21:59:35'; //<-- MODIFY END TIME
const StreamTitle = 'Show Name'; //<-- MODIFY SHOW TIME

{ IMPLEMENTATION }
{--------------------------------------------------}
var T : Integer;
{Wait for the show to start}
PAL.WaitForTime(StartTime);

{Add show to queue}
Queue.Clear;
Queue.AddURL(ShowURL,ipTop);

{Fade to show}
ActivePlayer.FadeToNext;


T := 0;
while T < 20 do
begin
  Queue.AddURL(ShowURL,ipBottom);
  CAT['Music (All)'].QueueBottom(smLRP,EnforceRules);
  T := T + 1;
end;

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

{Clear queue}
Queue.Clear;

ActivePlayer.FadeToNext;

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



AND THAT WORKS THE SCRIPT ABOVE 100%... :D

Derek


Top
 Profile  
Reply with quote  
PostPosted: November 14th, 2008, 11:45 am 
Offline
New User
New User

Joined: August 31st, 2008, 2:50 pm
Posts: 11
Hi All..

mmm...on looking at it again it don't do what it should do...any help would be much appreciated...Still unsolved...worked on one but not on others...ah well i await some replys..

Many Thanks...

DEREK.


Top
 Profile  
Reply with quote  
PostPosted: November 14th, 2008, 11:51 am 
Offline
Alumni
Alumni

Joined: October 14th, 2006, 9:38 am
Posts: 5986
Location: Deep in the heart of the PRNJ
You defined the show title but didn't do anything with it.

Check out the Create method in the PAL scripting reference. You can create a song info item and send it out periodically.

_________________
- Stan Olochwoszcz
A proud licensed SAM user since 2002

Raritan Bay Radio


Top
 Profile  
Reply with quote  
PostPosted: November 14th, 2008, 12:00 pm 
Offline
New User
New User

Joined: August 31st, 2008, 2:50 pm
Posts: 11
Thankyou..

Will Have a look...Cheers Stan!!,,After having a look i am totaly STUMPED on this one PAL Scripting is not one of my best features


Derek


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

All times are UTC - 6 hours [ DST ]


Who is online

Users browsing this forum: No registered users and 2 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