How to deactivate inactive http input sources in a switch? #2961
Replies: 4 comments 3 replies
-
Quick side note: maybe would we like to introduce a variant of |
Beta Was this translation helpful? Give feedback.
-
Switch do not animate unused sources 🙂 The problem here is that @liquidpeter the sources returned by |
Beta Was this translation helpful? Give feedback.
-
Thanks for your answers!, Calling "start" and "stop" is exactly what I tried when I said I used the "server.execute" commands. Maybe its easier if you see my code. This is it:
I also tries to use the telnet interface to "stop" the sources with the same result. I use Liquidsoap 2.1.4 (from opam) on Ubuntu 22.04. Thanks and BR, Peter update: I added some missing "ignore(…)" statements |
Beta Was this translation helpful? Give feedback.
-
Nowadays, there’s more syndication going on than probably anticipated. I think—in the long run—we should find a way of syndicating remote streams without keeping open a running stream 24/7 for a show that plays 2 hours a week. I noticed this when agreeing to "take over" a few 2-hour shows from a friend’s radio and ended up blocking 10 of their listener slots all the time (and they only got 50). |
Beta Was this translation helpful? Give feedback.
-
I have a fixed weekly schedule where I want to switch between
between the streams of our local radio stations.
For example: Monday plays station A with its URL, Tuesday plays stationB with its URL and so on.
So I use a "switch" between several http input sources.
In total there are about 10 http input stream sources in the switch.
Unfortunately they all get fetched even if their time predicate is false.
I tried using "server.execute" to stop stations that are not being used at the moment.
But this has no effect: The http source status remains "polling".
Do you have any idea how I can deactivate (stop polling) http sources in a switch (and start them later again)?
Background:
I used to use only 2 streams and set the URL dynamically using an external program to change the stream URLs.
But now I am wondering if there is a simple way to use the switch with fixed time slots to
to select the source depending on the time predicate.
I tried to enable and disable switch sources using thread.run.
Beta Was this translation helpful? Give feedback.
All reactions