Jump to content

Pal Script for playing ad every XX:XX in Sam Broadcaster


Recommended Posts

Hi all,

 

I've started streaming via Radionomy, mostly Live with SAM, and as you may know you have to insert a trigger file twice in an hour for ads.

 

Can anyone help or advise what i can do to play it at the specified time. Or what PAL i could use?

 

Below is what they say on their site.

 

"The first distribution must be between xx:10 and xx:30 (every hour)

The second must be between xx:40 and xx:59 (every hour)"

 

 

 

Link to comment
Share on other sites

//
// Keep the script repeating
//
PAL.loop := true;

//
// Wait for 10 minutes after the hour
//
PAL.WaitForTime('xx:10:00');
CAT['Ads'].QueueTop(smLRP,EnforceRules);

//
// Wait for 40 minutes after the hour
//
PAL.WaitForTime('xx:40:00');
CAT['Ads'].QueueTop(smLRP,EnforceRules);

 

Make sure you change the Category of where your ads are from 'Ads" to wherever you keep them.

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

I suggest to agree with CWdj

 

He has much more knowledge about it than I do ... and thats a good thing !

I have a feeling GKlye will be along any second to answer this one ;)

I would also add the ads simply at the Top "after" a song has played ...

One minute more or less - sooner or later, ain't a problem

Its the music that counts ...

Link to comment
Share on other sites

I suggest to agree with CWdj

 

He has much more knowledge about it than I do ... and thats a good thing !

 

I would also add the ads simply at the Top "after" a song has played ...

One minute more or less - sooner or later, ain't a problem

Its the music that counts ...

 

 

Thanks GKlye that would actually be a good idea, it would sound a bit better than just cutting over the middle of a song.

 

Any idea how I would do that? Would I have to alter the PAL slightly?

Link to comment
Share on other sites

Actually, GKIye is incorrect. My script does NOT cut off the song, but puts in the top of the queue and plays it after the current song is complete.

 

I believe what GKIye means is if this line is inserted:

ActivePlayer.FadeToNext;

Which it isn't.

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

Hi CWdj,

 

I guess you have read my post with sleepy eyes ... LOL

Actually, GKIye is incorrect. My script does NOT cut off the song, but puts in the top of the queue and plays it after the current song is complete.

I am correct ... I do say and mean the same thing as You do :yes:

and for that reason I wrote : "I agree with CWdj"

and added this line to it - exactly the same, but in other words - of what You say :

I would also add the ads simply at the Top "after" a song has played ...

One minute more or less - sooner or later, ain't a problem

Its the music that counts ...

Peace ! :kiss: ... LOL

Link to comment
Share on other sites

You are so confusing to understand. My script did add at the top. It doesn't matter if it's 1 minute or 2 minutes or whatever remaining in a song. The current song playing will continue to the finish. Then the AD will play.

 

The OP also was confused if you read his response.

Thanks GKlye that would actually be a good idea, it would sound a bit better than just cutting over the middle of a song.

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

Thanks countrywesterndj! It works, just a small issue you may be able to advise me.

 

The trigger file is in the Advertisements category in Sam, its only one file. Im not sure if that would affect the PAL as it is. Do I have to change the rules? I changed it to that category. It seems to be stopping randomly though.

Link to comment
Share on other sites

I'm no PAL expert, but did you try just changing EnforceRules to NoRules in that script? I would think that would omit this from any repeat rules you may have set.

 

Yes I done that, no change though. I think I might change smLRP to smPriority maybe?

 

Edit: I changed it to the above, all working ok now. It's not stopping anymore.

Link to comment
Share on other sites

If you only have 1 Ad in that category, then the script should be this:

 //
// Keep the script repeating
//
PAL.loop := true;

//
// Wait for 10 minutes after the hour
//
PAL.WaitForTime('xx:10:00');
CAT['Ads'].QueueTop(smLRP,NoRules);

//
// Wait for 40 minutes after the hour
//
PAL.WaitForTime('xx:40:00');
CAT['Ads'].QueueTop(smLRP,NoRules);

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

Archived

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

×
×
  • Create New...