# HLS redirect 302 problem with jw player

**URL:** <https://community.wowza.com/t/hls-redirect-302-problem-with-jw-player/43402>\
**Category:** Wowza Streaming Engine\
**Tags:** server-administration\
**Created:** [October 22, 2014, 2:41am UTC](https://community.wowza.com/t/hls-redirect-302-problem-with-jw-player/43402 "2014-10-22T02:41:47Z")\
**Posts on this page:** 11\
**Page:** 1

<div class="post-metadata">

**Author:** ![david\_slt](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@david\_slt](https://community.wowza.com/u/david_slt)\
**Post date:** [October 22, 2014, 2:41am UTC](https://community.wowza.com/t/hls-redirect-302-problem-with-jw-player/43402/1 "2014-10-22T02:41:47Z")

</div>

Hello

I has configured loadbalancer 4 and it works great and will run on ios , android , browsers and media players

unfortunately jw player do not support redirect 302 over http

please guide me how can i use loadbalancer 4 with jwplayer over HLS ?

i added the redirect module but rtmp redirect doesn’t work too

in scheme=rtmp where i should use the XML code ?

a smil file in load balancer server ? or i should use it in JWplayer code ?

thanks

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [October 22, 2014, 4:14pm UTC](https://community.wowza.com/t/hls-redirect-302-problem-with-jw-player/43402/2 "2014-10-22T16:14:01Z")

</div>

Hi,

I think that the RTMP redirect is not supported in the newer version of JWPlayer.

If you download the latest version of the [Dynamic Load Balancer for Wowza Streaming Engine](https://www.wowza.com/docs/how-to-get-dynamic-load-balancing-addon#loadbalancing4), you will see in the **WowzaDynamicLoadBalancingAddOn\_UsersGuide.pdf** document on page 12, there is an example that describes RTMP redirection using the HTTP redirect request.

Basically you will be using a playback URL similar to this one with your JWPlayer:

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

```

which will return a SMIL formatted response, which will be picked up by JWPlayer. Here is how this SMIL response looks like:

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

```

I hope this helps.

Zoran

---

<div class="post-metadata">

**Author:** ![william\_portillo](https://avatars.discourse-cdn.com/v4/letter/w/919ad9/32.png) [@william\_portillo](https://community.wowza.com/u/william_portillo)\
**Post date:** [January 20, 2016, 9:49am UTC](https://community.wowza.com/t/hls-redirect-302-problem-with-jw-player/43402/3 "2016-01-20T09:49:47Z")

</div>

Hello I found the same issue yo found a solution with http hls load balancer ?

---

<div class="post-metadata">

**Author:** ![fabian\_Avila](https://avatars.discourse-cdn.com/v4/letter/f/9dc877/32.png) [@fabian\_Avila](https://community.wowza.com/u/fabian_Avila)\
**Post date:** [April 18, 2015, 7:28pm UTC](https://community.wowza.com/t/hls-redirect-302-problem-with-jw-player/43402/4 "2015-04-18T19:28:25Z")

</div>

Hi.

I write URL to loadbalancer.smil but not work

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

In this URL only show the IP of edge server and port and not show XML format.

xxx.xxx.xxx:1935

Rtmp redirection works fine with this format

rtmp://[load-balancer-ip-address]:1935/redirect/[application-name]/[streamname]

HLS Redirection not work too.

The load balancer system plugin that we are used Load Balancer 4.0 Build 14408 and Wowza 4.1.2 build13947

Any idea and suggestions

Thanks

---

<div class="post-metadata">

**Author:** ![Daren\_Johnson](https://avatars.discourse-cdn.com/v4/letter/d/ee59a6/32.png) [@Daren\_Johnson](https://community.wowza.com/u/Daren_Johnson)\
**Post date:** [May 17, 2015, 9:39pm UTC](https://community.wowza.com/t/hls-redirect-302-problem-with-jw-player/43402/5 "2015-05-17T21:39:07Z")

</div>

Hi,

This was handled in support ticket #125342

and resolved by re-downloading the latest [Dynamic Load Balancer 4.0 from here.](https://www.wowza.com/docs/how-to-get-dynamic-load-balancing-addon)

Daren

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [October 23, 2014, 12:33am UTC](https://community.wowza.com/t/hls-redirect-302-problem-with-jw-player/43402/6 "2014-10-23T00:33:06Z")

</div>

Hi,

You should use the specified URL directly with your JWPlayer.

To do a quick test, you can use the [JWPlayer Wizard](http://www.jwplayer.com/wizard/) page and insert the following URL in the playback URL field:

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

```

You don’t need to create any additional files on your Wowza server. The loadbalancer.smil is not an actual file that is physically located on your Wowza server.

Regards,

Zoran

---

<div class="post-metadata">

**Author:** ![Zoran](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/zoran/32/385_2.png) [@Zoran](https://community.wowza.com/u/Zoran)\
**Post date:** [January 8, 2015, 7:22pm UTC](https://community.wowza.com/t/hls-redirect-302-problem-with-jw-player/43402/7 "2015-01-08T19:22:31Z")

</div>

> how can i add Multibitrate or smil file to this rtmp url ?

You can do that by following the instructions described on **page 13** from the **WowzaDynamicLoadBalancingAddOn\_UsersGuide.pdf** document delivered in the [Dynamic Load Balancing for Wowza Streaming Engine](https://www.wowza.com/docs/how-to-get-dynamic-load-balancing-addon#loadbalancing4) package.

Zoran

---

<div class="post-metadata">

**Author:** ![david\_slt](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@david\_slt](https://community.wowza.com/u/david_slt)\
**Post date:** [October 22, 2014, 12:16pm UTC](https://community.wowza.com/t/hls-redirect-302-problem-with-jw-player/43402/8 "2014-10-22T12:16:43Z")

</div>

> Hi,
> 
> I think that the RTMP redirect is not supported in the newer version of JWPlayer.
> 
> If you download the latest version of the [Dynamic Load Balancer for Wowza Streaming Engine](https://www.wowza.com/docs/how-to-get-dynamic-load-balancing-addon#loadbalancing4), you will see in the **WowzaDynamicLoadBalancingAddOn\_UsersGuide.pdf** document on page 12, there is an example that describes RTMP redirection using the HTTP redirect request.
> 
> Basically you will be using a playback URL similar to this one with your JWPlayer:
> 
> ```auto
> http://[load-balancer-ip-address]:1935/redirect/[application-name]/[streamname]/loadbalancer.smil
> 
> ```
> 
> which will return a SMIL formatted response, which will be picked up by JWPlayer. Here is how this SMIL response looks like:
> 
> ```auto
> <?xml version="1.0"?>
> <smil>
> <head>
> <meta base="rtmp://[load-balanced-server-ip-address]:1935/[application-name]/_definst_" />
> </head>
> <body>
> <switch>
> <video src="[stream-name]" />
> </switch>
> </body>
> </smil>
> 
> ```
> 
> I hope this helps.
> 
> Zoran

Thanks for your reply

I enbaled loadbalancer module and it works but the user guide is weak or very professional .

Is this xml code server side?

Where i should put the loadbalancer.smil file ? In wowza content directory or somewhere else ?

As the user guide said the xml code is for rtmp redirect ,Does it work on HLS too?

I`m using latest version of jwplayer enterprise and i should use HLS to provide timeshift feature on my live contents. Is there any way to enable redirect 302 on jwplayer ? Or i should use DNS loadbalancing solutions ?

can you please introduce me a HLS player which support redirect 302 on a webpage .

---

<div class="post-metadata">

**Author:** ![david\_slt](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@david\_slt](https://community.wowza.com/u/david_slt)\
**Post date:** [November 5, 2014, 12:41am UTC](https://community.wowza.com/t/hls-redirect-302-problem-with-jw-player/43402/9 "2014-11-05T00:41:24Z")

</div>

> Hi,
> 
> You should use the specified URL directly with your JWPlayer.
> 
> To do a quick test, you can use the [JWPlayer Wizard](http://www.jwplayer.com/wizard/) page and insert the following URL in the playback URL field:
> 
> ```auto
> http://[load-balancer-ip-address]:1935/redirect/[application-name]/[streamname]/loadbalancer.smil
> 
> ```
> 
> You don’t need to create any additional files on your Wowza server. The loadbalancer.smil is not an actual file that is physically located on your Wowza server.
> 
> Regards,
> 
> Zoran

Hi zoran thanks for your help

Yes it works great

how can i add adaptive bitrate or smil file to this RTMP format ?

---

<div class="post-metadata">

**Author:** ![david\_slt](https://avatars.discourse-cdn.com/v4/letter/d/8baadc/32.png) [@david\_slt](https://community.wowza.com/u/david_slt)\
**Post date:** [November 5, 2014, 12:45am UTC](https://community.wowza.com/t/hls-redirect-302-problem-with-jw-player/43402/10 "2014-11-05T00:45:17Z")

</div>

> Hi,
> 
> You should use the specified URL directly with your JWPlayer.
> 
> To do a quick test, you can use the [JWPlayer Wizard](http://www.jwplayer.com/wizard/) page and insert the following URL in the playback URL field:
> 
> ```auto
> http://[load-balancer-ip-address]:1935/redirect/[application-name]/[streamname]/loadbalancer.smil
> 
> ```
> 
> You don’t need to create any additional files on your Wowza server. The loadbalancer.smil is not an actual file that is physically located on your Wowza server.
> 
> Regards,
> 
> Zoran

Hi, Thanks for your help

it Works great

how can i add Multibitrate or smil file to this rtmp url ?

---

<div class="post-metadata">

**Author:** ![Michelle\_B](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/michelle_b/32/394_2.png) [@Michelle\_B](https://community.wowza.com/u/Michelle_B)\
**Post date:** [January 21, 2016, 4:57pm UTC](https://community.wowza.com/t/hls-redirect-302-problem-with-jw-player/43402/11 "2016-01-21T16:57:51Z")

</div>

Hi wportillo,

There may be several causes to why the Load Balancer module is not working for you. So that we can further investigate, it is best for you [send a support request](https://www.wowza.com/support/open-ticket) with a zip copy of your conf/ and logs/ files from your master and client servers.

Michelle
