| View previous topic :: View next topic |
| Author |
Message |
TonyOlivero
Joined: 02 Oct 2012 Posts: 1 Location: Lincoln, NE
|
Posted: Wed Oct 03, 2012 1:20 am Post subject: time Based Falback |
|
|
Hello:
I will be working with an organization this weekend to live stream their event. I have the Icecast server setup and tested. I've configured a fallback mount that I would like to play one file during times when we are not actively streaming (this will announce when we will be live), and a different file when we're streaming, but our connection dropped for some reason.
I was looking for an automated solution to swap the file that is served as the fallback mount. Using cron, I would have it "flip" between the "we're offline" and "technical difficulties" files; setting up a job to cp the right file into /fallback.mp3 a couple minutes before we were done for the day.
Is there a better way to do this? Does anyone know of a better way to change the content of the fallback?
Thanks,
Tony |
|
| Back to top |
|
 |
karlH Code Warrior

Joined: 13 Jun 2005 Posts: 5476 Location: UK
|
Posted: Wed Oct 03, 2012 2:08 am Post subject: |
|
|
you should be able to change the xml and reload it, eg via the HUP signal. Overwriting the fallback file may not be a reliable way to handle it but possible.
karl. |
|
| Back to top |
|
 |
robertut
Joined: 31 Aug 2007 Posts: 156
|
Posted: Wed Oct 03, 2012 11:24 am Post subject: |
|
|
| I would just overwrite the XML with a new config pointing to the new file and hit reload. |
|
| Back to top |
|
 |
|