flowplayer problem with origin/edge & redirect settings
Any support will be very appreciate on this issue we encounter during our wowza architecture deployment.
We have deployed 4 servers on independent hardware for this configuration.
2 are set-up as origin
2 are set-up as edge
Our encoders push the live mp4/h264 streaming on the origin who make it available to the client by requesting a second application also hosted on the origin to return the netconnection address of the best edge available.
To be fully redundant, we need to be able to configure the player to use a load-balancing feature to try to connect to the second origin server in car the first is no more available. Randomly or in sequence - it's same at this point.
We decide to work with flowplayer, the latest release available at this date on the flowplayer website.
We tested different configuration to be sure the system is working nice and the configuration is correct.
encoder (live) -> origin <- player : OK
encoder (live) -> origin -> edge <- player : OK
encoder (live) -> origin -> edge | origin:redirect <- player : OK
The problem occur when we tried to add load balancing and/or cluster functions in flowplayer.
If you are using Wowza Load Balancer, it doesn't work that way. The redirect app redirects to an edge servers that are configured as Load Balancer Senders. An edge server is what a client connects to and streams from. The edge re-streams from an origin. The load balancer is an overlay that is not directly involved in streaming.
In Flowplayer, connect to the redirect app that is configured as shown in the package readme.html. Flowplayer will handle the redirect without any configuration changes on the player side, it is built-in.
JW Player has a nice live streaming re-connector plugin that will work for you. If the primary origin fails, clients that stop streaming will re-connect. When they connect to an edge, they should fail-over to your secondary, unless you have made it primary arleady, which is what you should aim to do in that circumstance