I need something that I can run can take 2 Flash Streams and switch between them to a master stream.
The streams will already exist. There will be 1 Live Stream (Server A), 1 Archive Stream (Server B) and 1 Master Stream (Server A).
Master stream will be what the viewers watch, when Live Stream is down it should stream the Archive Stream. When Live Stream is up it makes way for it and switches to Live Stream.
This would run on the server side, on the Flash Media Server, I think as part of the Master Stream Live Application.
I have DJ using Flash Media Live Encoder, they connect to Live Stream (Server A), I have a master stream which is what the flash players play on website (Server A) and a third stream which is a continous live stream of archived shows. (Server B)
The server is on linux and we do not use apache for any of this, the website is on a different server and should not be involved as nothing is client side, this should all be done on the server. I see this as when the Live Encoder publishes to the Live Stream (Server A) it switches the input feed on Master (Server A) to Live Stream, When the Live encoder unpublishes or disconnects it switchs to Archive Stream (Server B).
All 3 streams already exist, this is just a script hopefully 20 lines or so to just change the input of what the master stream shows.