Wowza Community

Load Balancer and RTMP redirection

Hey everybody,

I set up the load balancer AddOn successfully. HTTP (HLS) redirection and RTSP redirection work properly and as expected.

However, if I want to play a VOD file over RTMP using

rtmp://example.com/redirect/appname/streamname

this happens:

INFO session connect-pending 123.456.789.012 -
INFO server comment - LB PropertyHandler: getCorrectLBServerClient() Application name balancing for name 'redirect'
INFO session connect 123.456.789.012 -
INFO session disconnect 511125896 -
INFO session disconnect 809015696 -

The DEBUG log level didn’t produce any deeper level of insight.

If I read the documentation correctly there should be no different setup required for RTSP and RTMP redirection. RTSP works and this block is in place (conf/redirect/Application.xml):

<Module>
	<Name>Redirect</Name>
	<Description>Redirect</Description>
	<Class>com.wowza.wms.plugin.loadbalancer.redirect.ClientConnections</Class>
</Module>

Also loadbalanceIgnoreClients defaults to FMLE.

I tried to stream RTMP from VLC and the Flex VideoPlayer component.

Please advise.

Thanks,

Valentin

Hello there.

Some Flash players have limited support for RTMP redirect. The latest Load Balancer 4 addon package has a new RTMP XML redirect mechanism.

RTMP clients that use HTTP requests must support the returned XML

The following is an example for generating XML output for use in some Flash-based players:

http://[load-balancer-ip-address]:1935/redirect/[application-name]/[streamname]/loadbalancer.smil

In this example, an RTMP client using HTTP requests gets XML returned similar to:

<?xml version="1.0"?>
<smil>
<head>
<meta base="rtmp://[load-balanced-server-ip-address]:1935/[application-name]/" />
</head>
<body>
<switch>
<video src="[stream-name]" />
</switch>
</body>
</smil>

I hope this addresses your issue.

Kind regards,

Salvadore

JW Player 5 and Flow player support 302 redirect for RTMP

And I am hearing that the latest version of JW Player 6 has also added this support. But have not tested.

http://www.jwplayer.com/

https://www.flowplayer.org/

Kind regards,

Salvadore

I certainly evaluated this option, but I don’t find it very convenient to rely on a XML file which only includes a single URL.

It would be preferable that the redirection happened automatically. I do however understand that this is not within your scope of responsibility. Could you please name a few players which do support RTMP redirection?

Thanks.

Valentin