Skip to content

Instantly share code, notes, and snippets.

@manishval
Created January 8, 2015 21:34
Show Gist options
  • Save manishval/bbfab7d17f61418e7360 to your computer and use it in GitHub Desktop.
Save manishval/bbfab7d17f61418e7360 to your computer and use it in GitHub Desktop.
RTMP redirection
To add RTMP redirection functionality to the Load Balancer, configure the load-balancing system, and then add the following module to the Application.xml file for any live or VOD application on the Load Balancer. Be sure to add it "after" the last <Module> that's included in the <Modules> section in Application.xml. The following example shows an RTMP redirection module named redirect:
<Module>
<Name>Redirect</Name>
<Description>Redirect</Description>
<Class>com.wowza.wms.plugin.loadbalancer.redirect.ClientConnections</Class>
</Module>
This module returns an RTMP redirect to clients that connect to the Load Balancer, except for those that are configured to be ignored in the loadbalanceIgnoreClients property in the Server.xml file. Wowza edge servers that connect to a Load Balancer that's also an origin server in a live stream repeater (origin/edge) configuration are also ignored.
An example URL used to redirect RTMP clients is:
rtmp://[load-balancer-ip-address]:1935/redirect/[application-name]/[stream-name]
In this example, RTMP clients are redirected to:
rtmp://[load-balanced-server-ip-address]:1935/[application-name]/[stream-name]
Notes:
You don't need to add this module if you've already configured RTSP redirection.
Not all RTMP clients support redirection via the RTMP protocol.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment