# Load Balancer and RTMP redirection

**URL:** <https://community.wowza.com/t/load-balancer-and-rtmp-redirection/44448>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [December 15, 2014, 10:39am UTC](https://community.wowza.com/t/load-balancer-and-rtmp-redirection/44448 "2014-12-15T10:39:18Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![Valentin\_Manthei](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@Valentin\_Manthei](https://community.wowza.com/u/Valentin_Manthei)\
**Post date:** [December 15, 2014, 10:39am UTC](https://community.wowza.com/t/load-balancer-and-rtmp-redirection/44448/1 "2014-12-15T10:39:18Z")

</div>

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

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

```

this happens:

```auto
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):

```auto
<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

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [December 15, 2014, 10:41am UTC](https://community.wowza.com/t/load-balancer-and-rtmp-redirection/44448/2 "2014-12-15T10:41:39Z")

</div>

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:

```auto
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:

```auto
<?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

---

<div class="post-metadata">

**Author:** ![sal\_jefferson](https://avatars.discourse-cdn.com/v4/letter/s/6de8d8/32.png) [@sal\_jefferson](https://community.wowza.com/u/sal_jefferson)\
**Post date:** [December 16, 2014, 8:17am UTC](https://community.wowza.com/t/load-balancer-and-rtmp-redirection/44448/3 "2014-12-16T08:17:29Z")

</div>

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/](http://www.jwplayer.com/)

[https://www.flowplayer.org/](https://www.flowplayer.org/)

Kind regards,

Salvadore

---

<div class="post-metadata">

**Author:** ![Valentin\_Manthei](https://avatars.discourse-cdn.com/v4/letter/v/ea5d25/32.png) [@Valentin\_Manthei](https://community.wowza.com/u/Valentin_Manthei)\
**Post date:** [December 15, 2014, 5:59pm UTC](https://community.wowza.com/t/load-balancer-and-rtmp-redirection/44448/4 "2014-12-15T17:59:04Z")

</div>

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
