[Icecast] Question about Icecast2 when not streaming

José Luis Artuch artuch at speedy.com.ar
Wed Jun 3 05:36:54 PDT 2015


El mié, 03-06-2015 a las 14:18 +0200, Marvin Scholz escribió:
> On 3 Jun 2015, at 14:10, José Luis Artuch wrote:
> 
> > El mar, 02-06-2015 a las 21:48 -0400, Kyle Blizzard escribió:
> >> Hello.
> >>
> >> I've been using Icecast for a few days now, and am really enjoying
> >> it. One thing I can't figure out how to do is have a specific file
> >> play if someone were to click on my stream url, and I wasn't actively
> >> streaming at the time. I want it to play if I'm not streaming, but
> >> play the stream if I am. I'm not sure if this is possible; I've
> >> searched the Icecast
> >> site and forums and didn't see anything about it, but I've seen other
> >> people do something similar. Is it possible to do this?
> >>
> >> Thanks for any information you may be able to provide.
> > Hello Kyle,
> > If you want that the listener always receive audio from your *Web 
> > site*,
> > whether or not your *Icecast server* is running, you can include an
> > onclick event on your stream url, so, if your *Icecast server* is not
> > running, a song hosted in your *Web server* will be played:
> > document.getElementById('idYourStreamUrlButton').onclick=function(){if(icecastIsRunning){playYourIcecast}else{playYourSong}}
> 
> Thanks for the reply, but actually this solution you are advising is not 
> really suitable.
> Client side Javascript is no solution to the problem that users may have 
> a direct link to
> the stream and will not be able to listen to it, when it is not 
> available.
> 
> There is actually a much better approach which works natively in Icecast 
> without any need for
> anything else: Fallbacks
> You can setup a fallback for your stream, which can be either another 
> mountpoint or a file located in
> your webroot. Check the Documentation [1] for more information about 
> that.
> Feel free to ask again if you are experiencing any problems or need 
> further help setting it up.
> 
> [1]: 
> http://icecast.org/docs/icecast-2.4.1/config-file.html#mountsettings
> 
> > José Luis
Hello Marvin,
Thank you very much for the information, I did not know.
But the solution "Fallbacks" requires the Icecast server is working, is
it?. If so, what about if Icecast is not working ?.
> >> _______________________________________________
> >> Icecast mailing list
> >> Icecast at xiph.org
> >> http://lists.xiph.org/mailman/listinfo/icecast
> >
> >
> > _______________________________________________
> > Icecast mailing list
> > Icecast at xiph.org
> > http://lists.xiph.org/mailman/listinfo/icecast
> _______________________________________________
> Icecast mailing list
> Icecast at xiph.org
> http://lists.xiph.org/mailman/listinfo/icecast




More information about the Icecast mailing list