Jump to content

Please help me with PAL Script


Recommended Posts

Well, beaten to death is a bit of an overstatement. I never got an eject deck script and the one I had running before worked fine minus the the eject deck part. I didn't think it made sense to resurrect my previous thread but then again, I didn't realize it was still on the front page of the forum section. Figured it would have dropped off the page by now.

 

So if it isn't too much trouble...

Does anybody know the script to eject a deck?

 

Maybe altering this line will do the job

ActivePlayer.FadeToNext;

 

Can you fade to stop? Something like ActivePlayer.FadeToStop;

Link to comment
Share on other sites

Ok, I got it working perfectly. Here is the script for anybody who wants to use it. It is a modification of a script I found online.

 

{ CONFIGURATION }

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

const ShowURL = 'http://stream.com:6558'; //

const StartTime = '12:00:00'; //

const EndTime = '13:00:00'; //

{ IMPLEMENTATION }

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

begin

{Wait for the show to start}

PAL.WaitForTime(StartTime);

Queue.Clear;

Queue.AddURL(ShowURL,ipTop);

Queue.AddURL(ShowURL,ipTop);

DeckA.Play;

DeckA.Next;

Queue.AddURL(ShowURL,ipTop);

Queue.AddURL(ShowURL,ipTop);

Queue.AddURL(ShowURL,ipTop);

Queue.AddURL(ShowURL,ipTop);

Queue.AddURL(ShowURL,ipTop);

Queue.AddURL(ShowURL,ipTop);

Queue.AddURL(ShowURL,ipTop);

PAL.WaitForTime(EndTime);

Queue.Clear;

DeckA.Eject;

end

 

Basically this adds a stream via address and port to the cue 10 times once the start time is reached. That way there is backup streams in the cue in case it doesn't buffer right at first for any reason or drops during the stream.

Then it lets it continue until the end time, it clears the cue and ejects DeckA.

 

Thanks for your help Spazz!

Link to comment
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...