hi there, let's say I have a mountpoint /important with a source a, and a mountpoint /notimportant with source b now I have to switch source a and b so that the content of source b plays on mountpoint /important mountpoint /notimportant is, well, not so important of course I can do it manually, but I wonder if there is a trick to accomplish that programmatically or within icecast. ideas welcome! thx, u
That all depends on your source client capabilities and how well you could automate that task. I'd think ices2 would be a pretty good route as it is scriptable. You could just use different config files with the necessary configuration for each scenario. You can temporarily move listeners from mountpoint to mountpoint within the admin interface, but that's a temporary thing afaik. Not sure if the API exposes any of that functionality, though this is veering off of your original goal I think. Cheers, Jordan On 11/24/20 6:53 AM, unosonic wrote:> > hi there, > > let's say I have a mountpoint /important with a source a, and a mountpoint /notimportant with source b > now I have to switch source a and b so that the content of source b plays on mountpoint /important > mountpoint /notimportant is, well, not so important > > of course I can do it manually, but I wonder if there is a trick to accomplish that > programmatically or within icecast. ideas welcome! > thx, u > _______________________________________________ > Icecast mailing list > Icecast at xiph.org > http://lists.xiph.org/mailman/listinfo/icecast >
Jordan Erickson:> That all depends on your source client capabilities and how well you could > automate that task. I'd think ices2 would be a pretty good route as it is > scriptable. You could just use different config files with the necessary > configuration for each scenario.the sources are liquidsoap and libretime (liquidsoap), both on different servers. but when I re-think about it, I'd need a function which works like a "redirect" in a webserver. client connects to icecast:8000/stream1 and gets redirected to icecast:8000/stream2 Can't find anything in the docs.> You can temporarily move listeners from mountpoint to mountpoint within thethat would be also ok, since it can be called easily from a script, but that, as far as I know, only moves the current listeners to another mointpont.> On 11/24/20 6:53 AM, unosonic wrote: > > > > hi there, > > > > let's say I have a mountpoint /important with a source a, and a mountpoint /notimportant with source b > > now I have to switch source a and b so that the content of source b plays on mountpoint /important > > mountpoint /notimportant is, well, not so important > > > > of course I can do it manually, but I wonder if there is a trick to accomplish that > > programmatically or within icecast. ideas welcome! > > thx, u