[Icecast] fallback in Icecast 2.3 RC3
Karl Heyes
karl at xiph.org
Mon Sep 19 22:59:07 UTC 2005
On Mon, 2005-09-19 at 21:43, Milos Wimmer wrote:
> > If there's no fallback link from /cro-region-256.ogg to
> > /z-cro-region.ogg then it's wrong, but I'd prefer to see the xml and
> > error log (level 4) before saying it's a bug. If there is a fallback
> > from /cro-region-256.ogg to /cro-region.ogg with override enabled then
> > it could happen.
>
> I would like to have fallback from /cro-region-256.ogg to
> /z-cro-region.ogg. But when I had it, it worked exactly same. So I tried
> remove it for simpler description.
> On other side - why is wrong to have /cro-region-256.ogg without fallback?
> I'm running lot of other streams on that icecast server and some of them
> have no fallback.
your xml has
<mount>
<mount-name>/cro-region-256.ogg</mount-name>
<fallback-mount>/z-cro-region.ogg</fallback-mount>
<fallback-override>1</fallback-override>
</mount>
so if your listeners have fallen back to /z-cro-region.ogg and
/cro-region-256 reconnects then the listeners will be moved to that
mountpoint.
If you want to have the same fallback to 2 or more sources but maintain
the original mountpoint for where they came from then fallback to a
mountpoint which is a local relay of the fallback stream.
eg
<relay>
<server>127.0.0.1</server>
<port>8000</port>
<mount>/z-cro-region.ogg</mount>
<local-mount>/fall-cro-region.ogg</local-mount>
</relay>
<relay>
<server>127.0.0.1</server>
<port>8000</port>
<mount>/z-cro-region.ogg</mount>
<local-mount>/fall-cro-region-256.ogg</local-mount>
</relay>
<mount>
<mount-name>/cro-region.ogg</mount-name>
<fallback-mount>/fall-cro-region.ogg</fallback-mount>
<fallback-override>1</fallback-override>
</mount>
<mount>
<mount-name>/cro-region-256.ogg</mount-name>
<fallback-mount>/fall-cro-region-256.ogg</fallback-mount>
<fallback-override>1</fallback-override>
</mount>
fallback
/cro-region.ogg -----------------------> /fall-cro-region.ogg
A
| relay
|
/z-cro-region.ogg
|
| relay
fallback V
/cro-region-256.ogg -------------------> /fall-cro-region-256.ogg
The idea is that actual listeners will never be on /z-cro-region.ogg,
the 2 relays will have the same contents but will isolate the listeners.
For this you will need 2 mountpoints for each listener stream, although
in 2.3 and -kh the relay can be on-demand.
karl.
More information about the Icecast
mailing list