# OSMF load balancing

**URL:** <https://community.wowza.com/t/osmf-load-balancing/40374>\
**Category:** Wowza Streaming Engine\
**Tags:** media-players-and-devices\
**Created:** [May 1, 2013, 3:49pm UTC](https://community.wowza.com/t/osmf-load-balancing/40374 "2013-05-01T15:49:29Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![Erich\_Thienhaus](https://avatars.discourse-cdn.com/v4/letter/e/e8c25b/32.png) [@Erich\_Thienhaus](https://community.wowza.com/u/Erich_Thienhaus)\
**Post date:** [May 1, 2013, 3:49pm UTC](https://community.wowza.com/t/osmf-load-balancing/40374/1 "2013-05-01T15:49:29Z")

</div>

Hi all,

I’ve succesfully set up a Wowza streaming environment with several edge servers. Now I want to set up a webplayer using the Adobe osmf player ([http://www.osmf.org/configurator/fmp/#](http://www.osmf.org/configurator/fmp/)). Streaming directly from a node works fine, but I want to use the loadbalancer also for the web application.

According to this thread I assume that it is possible with the OSMF player: [http://www.longtailvideo.com/support/forums/jw-player/servers-and-streaming/31394/wowza-load-balancing/](http://www.longtailvideo.com/support/forums/jw-player/servers-and-streaming/31394/wowza-load-balancing/) but simply give the player [http://master.myserver.tv:1935/loadredirect](http://master.myserver.tv:1935/loadredirect) as streaming adress does not work. How do I manage the player to get the redirectet loadbalanced adress for streaming?

Thanks a lot!

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 1, 2013, 3:03pm UTC](https://community.wowza.com/t/osmf-load-balancing/40374/2 "2013-05-01T15:03:27Z")

</div>

There is not built-in support for the NetConnection 302 method. There is in JW Player and Flowplayer 3x (not sure about v5).

For other clients, it’s pretty easy really, you just have to use the http method:

```auto
http://[load-balancer-ip-address]:1935/loadbalancer

```

, which returns “redirect=[edge-ip]”

You can do this in your application server (e.g. PHP load() command) as you are forming the player to know what edge to connect to. So in the case of the OSMF player using the configurator you would have to modify the embed code that you send to the client.

You might also take a look at this OSMF 2 configurator. The one you are using we think still uses OSMF 1.6:

[http://www.osmf.org/dev/2.0gm/setup.html](http://www.osmf.org/dev/2.0gm/setup.html)

For rtmp streaming it probably won’t matter that much, using OSMF 2 probably has more benefit if you are using it for Flash HTTP (sanjose) streaming

Richard

---

<div class="post-metadata">

**Author:** ![Richard\_Lanham](https://avatars.discourse-cdn.com/v4/letter/r/c68b51/32.png) [@Richard\_Lanham](https://community.wowza.com/u/Richard_Lanham)\
**Post date:** [May 3, 2013, 1:59am UTC](https://community.wowza.com/t/osmf-load-balancing/40374/3 "2013-05-03T01:59:08Z")

</div>

Not with those OSMF players. You can do it with JW Player 6:

[https://www.wowza.com/docs/how-to-use-jw-player-with-wowza-streaming-engine](https://www.wowza.com/docs/how-to-use-jw-player-with-wowza-streaming-engine)

Richard

---

<div class="post-metadata">

**Author:** ![Jason\_Hilton](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/jason_hilton/32/437_2.png) [@Jason\_Hilton](https://community.wowza.com/u/Jason_Hilton)\
**Post date:** [May 2, 2013, 4:11pm UTC](https://community.wowza.com/t/osmf-load-balancing/40374/4 "2013-05-02T16:11:54Z")

</div>

Hi,

Yes OSMF player supports ABR streaming.

The live tutorial shows a .smil file and under is the example for Adobe HDS player (OSMF compatible),

[https://www.wowza.com/docs/how-to-set-up-live-streaming-using-an-rtmp-based-encoder#ABR](https://www.wowza.com/docs/how-to-set-up-live-streaming-using-an-rtmp-based-encoder#ABR)

Jason

---

<div class="post-metadata">

**Author:** ![Erich\_Thienhaus](https://avatars.discourse-cdn.com/v4/letter/e/e8c25b/32.png) [@Erich\_Thienhaus](https://community.wowza.com/u/Erich_Thienhaus)\
**Post date:** [May 1, 2013, 5:58pm UTC](https://community.wowza.com/t/osmf-load-balancing/40374/5 "2013-05-01T17:58:18Z")

</div>

Thanks a lot! I created a few lines of php code and adjust the embed code of the osmf. Works great.

One other question: whats about adaptive bitrate streaming? Does OSMF support this?

---

<div class="post-metadata">

**Author:** ![Erich\_Thienhaus](https://avatars.discourse-cdn.com/v4/letter/e/e8c25b/32.png) [@Erich\_Thienhaus](https://community.wowza.com/u/Erich_Thienhaus)\
**Post date:** [May 3, 2013, 1:12am UTC](https://community.wowza.com/t/osmf-load-balancing/40374/6 "2013-05-03T01:12:53Z")

</div>

Thanks a lot! Works great.

Two more questions: is there a way to have smil with rtmp? I currently get it only to work with HDS and HLS. And is there a way to manually switch the bitrate in the player?
