Hello,

I continue being a very happy LiquidSoap User overall...


Here's however another problem I'm struggling with.


Here's what I'd like to achieve:

We're broadcasting a live feed, coming from let's say a Football Stadion. As soon as the feed goes offline, LiquidSoap should play some music, with Station IDs added in between the tracks. The tracks will be randomly picked from a large pool.

After 10 tracks,, it should fallback to our "This Station Is Currently Off Air" loop.


Whenever the Live Feed comes back on, LiquidSoap should switch to it, resetting the counter for the "10 tracks" to 0; So that when the feed stops again, 10 new tracks will be played from our music pool.


Instead of playing "10 tracks" I could also work with a time based numer, like "30 minutes of music".


Well, I have not yet found many LiquidSoap examples working with things like variables, counters or timers.

In fact, I do have issues figuring out how to even "increase" a possible "Song counter" by 1. I guess I am missing the obvious, or am I?

I have a "fallback" in place, switching to "Live" as soon as it becomes available, then falling back into the "10 tracks" pool and finally to the "Off Air Loop". With the only problem that "10 tracks" does not become unavailable after the 10 tracks (or 30 minutes). :)


I welcome any pointers you could share.


Thanks a lot and best regards from Switzerland,

René

$









------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to