Hello Liquidsoap users,

My name is Mark, I'm the system administrator for the No Agenda podcast
and stream.

Recently I have switched to Liquidsoap for our 24h stream. Our servers
are using Gentoo and Liquidsoap isn't easy to install, so for this
purpose I created a Docker container[1]. It works quite nicely.

I am sharing the Liquidsoap code for our stream on Github[2], so you can
see how it currently is coded.

I guess this type of stream is a bit unusual because the shows are long
(generally longer than 1h), and we don't play music from a playlist.

The tl;dr of my problem: whenever there is an "event", the first thing
that should be played is the sweeper. I.e. when the host connects; when
he disconnects; between all shows from the playlist; when 'online'
starts and when 'offline' starts.

A broader explanation:

There is a live show two times a week. Outside those hours we play a
short list of various recorded podcasts.

The idea is as follows and, for a part, I have been able to get it
to work.

* The stream has two 'modes': offline and online. During 'offline' hours
  we play a podcast playlist. We play a sweeper between every podcast.

* The actual show is scheduled two times a week, i.e. on Sunday and
  Thursday, starting at about 17:00h UTC until approx. 20:00h UTC.

* 15 minutes before the show starts, the stream switches to 'elevator
  music' which plays until 15 minutes after the show. This is the
  'online' mode.

* The show host can connect at any time, so, both during online hours
  and offline hours. So, if he wants to broadcast on e.g. a Wednesday,
  he is able to connect and Liquidsoap patches him through.

The reasons for the elevator music is to let people know that a show is
about to start, or that the show has already finished, or that there are
technical difficulties, i.e. if the host disconnects within the online
hours.

On to my problem. What I would like is the following. When the stream
switches to offline or online, I want it to always start with a sweeper.
Only then, depending on the time, it should play the playlist (offline)
or the elevator music (online).

When the host connects, his stream should immediately be broadcast, even
if he interrupts a running show from the offline playlist. It would also
be nice if this can be prefaced by the sweeper, but I haven't gotten
this to work, and I'm not sure about this feature yet, but I would like
to know how to get this into code.

When the host disconnects during offline hours, you should hear the
sweeper, and then a show should start from the beginning. I got this to
work thanks to fallback.skip.

When the host disconnects during online hours, i.e. between 16:45 and
20:15, you should hear the sweeper, and then the elevator music. I
*think* I have this working too.

But, right now, when the stream switches to offline or online at the
scheduled time, the sweeper is skipped. I think this is because of the
fallback.skip and I haven't found a way to get this working properly. I
guess that it shouldn't skip when 'switch' starts or ends but only when
the host disconnects.

I'm hoping for advice, maybe someone who is interested to help can
review the code I have so far written. Liquidsoap is fairly new to me,
and I'm sure I'm not doing things in the best way possible.

Thanks in advance. Liquidsoap is fantastic.
Mark

[1] https://registry.hub.docker.com/u/noagenda/lqs/
[2] https://github.com/NoAgendaIT/noagendastream


------------------------------------------------------------------------------
Download BIRT iHub F-Type - The Free Enterprise-Grade BIRT Server
from Actuate! Instantly Supercharge Your Business Reports and Dashboards
with Interactivity, Sharing, Native Excel Exports, App Integration & more
Get technology previously reserved for billion-dollar corporations, FREE
http://pubads.g.doubleclick.net/gampad/clk?id=157005751&iu=/4140/ostg.clktrk
_______________________________________________
Savonet-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/savonet-users

Reply via email to