Old 27th July 2012, 23:08   #1
JVonD
Junior Member
 
JVonD's Avatar
 
Join Date: Feb 2007
Location: Boulder, CO
Posts: 39
Understanding the Calendar

Trying to figure out how the calendar works and have been trouble shooting it a lot.
I'm under the impression that if you take a bunch of 30second jingles and then code like this,
<event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="1">
jingles
</playlist>
<calendar
repeat="255"
timeoffset="00:15:00"
duration="00:00:30"
/>
</event>
then the only way that the jingle will play is if the song on the original playlist ends within the duration time. So a song would have to end within 00:15:00 - 00:15:30 otherwise the jingle will be skipped..?
So if you have a bunch of longer tunes you're chances of every hearing a jingle is slim..?
Can anyone confirm that? Thanks ~J

"Memories are what life is..." ~JVonD
JVonD is offline   Reply With Quote
Old 7th August 2012, 22:04   #2
JVonD
Junior Member
 
JVonD's Avatar
 
Join Date: Feb 2007
Location: Boulder, CO
Posts: 39
Good calendar example.

Hey dudes. Here's a good example of a calendar playlist. Seems to hit a jingle ever 3-4 tunes considering the tunes are 6-10 minutes long. I have regular jingles and "special" jingles that may over lap. I also have a couple of scheduled days of other playlists that also have their own jingles. So as you can see I have jingles loading almost all the time but they are only 30 second (duration) jingles so the chances of a tune stopping during that 30 second period is pretty slim, so I made a lot of them to repeat more often. Hope it helps! ~J


<?xml version="1.0" encoding="UTF-8"?>
<!--Calendar configuration file-->
<!--Made with the SHOUTcast 2 Configuration Builder-->
<eventlist>
<event type="dj">
<dj archive="inherit">jvond</dj>
<calendar />
</event>

<event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="3">
jingles
</playlist>
<calendar
repeat="255"
starttime="00:04:00"
duration="00:00:30"
timeoffset="00:10:00"
/>
</event>

<event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="4">
jingles_special
</playlist>
<calendar
repeat="255"
starttime="00:07:00"
duration="00:00:30"
timeoffset="00:10:00"
/>
</event>

<event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="1">
electronicjamnight
</playlist>
<calendar
repeat="129"
starttime="00:00:00"
duration="23:59:59"
/>
</event>

<event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="2">
electronicjamnight_jingles
</playlist>
<calendar
repeat="129"
starttime="00:02:00"
duration="00:00:30"
timeoffset="00:10:00"
/>
</event>

<event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="1">
doubledippedsunshine
</playlist>
<calendar
repeat="168"
starttime="00:00:00"
duration="23:59:59"
/>
</event>

<event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="2">
doubledippedsunshine_jingles
</playlist>
<calendar
repeat="168"
starttime="00:02:00"
duration="00:00:30"
timeoffset="00:10:00"
/>
</event>
</eventlist>

"Memories are what life is..." ~JVonD
JVonD is offline   Reply With Quote
Old 8th August 2012, 01:00   #3
jaromanda
Forum King
 
Join Date: Jun 2007
Location: Under the bridge
Posts: 2,290
Quote:
Originally Posted by JVonD View Post
Trying to figure out how the calendar works and have been trouble shooting it a lot.
I'm under the impression that if you take a bunch of 30second jingles and then code like this,
<event type="playlist">
<playlist loopatend="1" shuffle="inherit" priority="1">
jingles
</playlist>
<calendar
repeat="255"
timeoffset="00:15:00"
duration="00:00:30"
/>
</event>
then the only way that the jingle will play is if the song on the original playlist ends within the duration time. So a song would have to end within 00:15:00 - 00:15:30 otherwise the jingle will be skipped..?
So if you have a bunch of longer tunes you're chances of every hearing a jingle is slim..?
Can anyone confirm that? Thanks ~J
I can confirm that you are wrong - at least, according to the documentation http://wiki.winamp.com/wiki/SHOUTcas..._Specification

when a playlist "Time Periodic Event" fires, it will add to the main playback queue, so, anything it adds will play after the current playing track, before what would've been the next playing track

Quote:
Originally Posted by JVonD View Post
Good calendar example.
looks funky


and by funky, I mean not right ... at least, I wouldn't call it a Good example ... I'd call it "what works for you"

EVERY playlist entry is a "Time Periodic Event" - that's funky

"If you don't like DNAS, write your own damn system"

So I did
jaromanda is offline   Reply With Quote
Old 8th August 2012, 19:13   #4
JVonD
Junior Member
 
JVonD's Avatar
 
Join Date: Feb 2007
Location: Boulder, CO
Posts: 39
Please notice the log here.

2012-08-08 12:58:00 I msg:[PLAYLISTMGR] Playlist load from file ******/jingles.lst
2012-08-08 12:58:00 I msg:[PLAYLISTMGR] Load complete
2012-08-08 12:58:31 I msg:[PLAYLISTMGR] Deactivating playlist=jingles id=4

You can see the jingles playlist gets deactivated when the duration is reached. That means that the only way a 30 second jingle will play is if the file on the main playlist reaches it's end with in that 30 seconds.
This is the only way I can figure this out.
The "Time Periodic Event" shouldn't seem funky. I want my playlists to keep loading every week. That means Double Dipped Sunshine jams all day long every Friday! Yey! =)

If you have any ideas please post them but at this point, after trouble shooting Shoutcast 2.0 for weeks it seems, this is the only way I could figure out how to use it.
Thanks! ~J

"Memories are what life is..." ~JVonD
JVonD is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Shoutcast > Shoutcast Technical Support

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump