Hi Damien,

I'm not sure what's so annoying when the remote server is down. If you
have a common fallback like fallback([playlist(remote),localstuff])
then it would switch to localstuff when the remote playlist fails to
get something from the server.

If you want more control based on whether the server is alive or not,
you could have a switch between local stuff and remote files, with a
condition that enables local stuff only when the remote server seems
down.

In more details, you have to write a function (all in liquidsoap, or
with a mix of liquidsoap and shell or whatever script language) that
regularly checks whether the server seems alive. Then set a bool
reference to true if the server is dead. Then instead of
playlist(remote) you could have
  switch([
    ({!server_dead},localstuff),
    ({not(!server_dead)},playlist(remote))
  ])

Note tat this won't stop the playlist to try to get one file ready in
advance, but it's only one file so it should be okay.

Hope this helps,
-- 
David

------------------------------------------------------------------------------
Live Security Virtual Conference
Exclusive live event will cover all the ways today's security and 
threat landscape has changed and how IT managers can respond. Discussions 
will include endpoint security, mobile security and the latest in malware 
threats. http://www.accelacomm.com/jaw/sfrnl04242012/114/50122263/
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to