HLS redirect 302 problem with jw player

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

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, 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:

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:

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

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

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

Hi,

This was handled in support ticket #125342

and resolved by re-downloading the latest Dynamic Load Balancer 4.0 from here.

Daren

Hi,

You should use the specified URL directly with your JWPlayer.

To do a quick test, you can use the JWPlayer Wizard page and insert the following URL in the playback URL field:

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

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 package.

Zoran

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, 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:

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:

<?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 .

Hi,

You should use the specified URL directly with your JWPlayer.

To do a quick test, you can use the JWPlayer Wizard page and insert the following URL in the playback URL field:

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 ?

Hi,

You should use the specified URL directly with your JWPlayer.

To do a quick test, you can use the JWPlayer Wizard page and insert the following URL in the playback URL field:

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 ?

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 with a zip copy of your conf/ and logs/ files from your master and client servers.

Michelle