View Single Post
Old 29th November 2011, 14:13   #38
MADxHAWK
Senior Member
 
Join Date: Jan 2010
Posts: 181
Hi Matrix2000,

not yet.

If you always have the same times your DJs will broadcast,
example:
DJ A 18:00 - 20:00
DJ B 20:00 - 22:00
DJ C 22:00 - 00:00
you can try the folowing:

1. Create a playliste "silence" with a single mp3. the mp3 should have very low volume, best would be silence.

2. create a playlistevent
1th event using playlist silence, starts at 19:55 with a duration of 10 minutes
2nd event using playlist silence, starts at 21:55 with a duration of 10 minutes
both playlist with shuffle and loop disabled and a priotity higher than other playlists.

3. create a cronjob to force sc_trans to skip current track
1st cron:
code:

55 19 * * * killall -SIGWINCH sc_trans >/dev/null 2>&1


2nd cron:
code:

55 21 * * * killall -SIGWINCH sc_trans >/dev/null 2>&1


Sending a signal SIGWINCH to sc_trans will force sc_trans to skip to the next track

sc_trans will load the silence playlist at 19:55 and 21:55 but wil not start to play it as long as a DJ is connected. The Cronjob simply makes sure that that the current track that would be played by sc_trans will be skipped and the silence playlist will be next when the DJ disconnects. So if DJ A hands over to DJ B between 19:55 and 20:05 the silence playlist will be played. Same for handover from DJ B to DJ C.

Maybe the dev-team will add a skiptrack function triggered by a dj connection to one of the next builds of sc_trans, and maybe they add a option to trigger a special playlist to be played when the dj disconnect. Would be a great feature

-MAD
MADxHAWK is offline