# Wowza + jwplayer adaptive bitrate on cdn (edge servers)

**URL:** <https://community.wowza.com/t/wowza-jwplayer-adaptive-bitrate-on-cdn-edge-servers/42067>\
**Category:** Wowza Streaming Engine\
**Created:** [June 20, 2014, 4:07am UTC](https://community.wowza.com/t/wowza-jwplayer-adaptive-bitrate-on-cdn-edge-servers/42067 "2014-06-20T04:07:04Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![kenji\_magto](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@kenji\_magto](https://community.wowza.com/u/kenji_magto)\
**Post date:** [June 20, 2014, 4:07am UTC](https://community.wowza.com/t/wowza-jwplayer-adaptive-bitrate-on-cdn-edge-servers/42067/1 "2014-06-20T04:07:04Z")

</div>

hello wowza,

I am planning to implement an **adaptive bitrate** on **rtmp live stream** using wowza + **JWPLAYER** , Im done with my first step I did successfully able to play it on JWPLAYER with bitrates selection.

Using this url: http://[WOWZA IP ADDRESS]:1935/live/ngrp:streamname\_all/jwplayer.smil (this is also my origin server) i am able to produce this output:

My question is how can i achieve similar output using cdn as my edge server?, right now i can only do adaptive bitrate using my origin server for playback.

Thanks,

---

<div class="post-metadata">

**Author:** ![Roger\_Littin1](https://avatars.discourse-cdn.com/v4/letter/r/c89c15/32.png) [@Roger\_Littin1](https://community.wowza.com/u/Roger_Littin1)\
**Post date:** [June 23, 2014, 10:01am UTC](https://community.wowza.com/t/wowza-jwplayer-adaptive-bitrate-on-cdn-edge-servers/42067/2 "2014-06-23T10:01:26Z")

</div>

> hello wowza,
> 
> I am planning to implement an **adaptive bitrate** on **rtmp live stream** using wowza + **JWPLAYER** , Im done with my first step I did successfully able to play it on JWPLAYER with bitrates selection.
> 
> Using this url: http://[WOWZA IP ADDRESS]:1935/live/ngrp:streamname\_all/jwplayer.smil (this is also my origin server) i am able to produce this output:
> 
> My question is how can i achieve similar output using cdn as my edge server?, right now i can only do adaptive bitrate using my origin server for playback.
> 
> Thanks,

You can modify the request url slightly to add the cdn domain name as a query string variable. This will then return the correct url in the meta tag.

The request still goes to the origin server.

```auto
http://[WOWZA IP ADDRESS]:1935/live/ngrp:streamname_all/jwplayer.smil?domain=[cdn domain name]:1935

```

The output should be

```auto
<smil>
      <head>
              <meta base="rtmp://[cdn domain name]:1935/live/_definst_"/>
      </head>
      <body>
            <switch>
                   <video src="mp4:streamname_source" system-bitrate="3203072" width="1808" height="982"/>
                   <video src="mp4:streamname_360p" system-bitrate="981072" width="662" height="360"/>
            </switch>
        </body>
</smil>

```

> **Note:** for this method to work, the [cdn domain name] should be a load balanced domain name and you need to have the same application & appInstance name on the edge servers as you do on the origin.

Roger.

---

<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:** [June 20, 2014, 7:17am UTC](https://community.wowza.com/t/wowza-jwplayer-adaptive-bitrate-on-cdn-edge-servers/42067/3 "2014-06-20T07:17:05Z")

</div>

Hi there,

I believe you need to use this method as Stream Name Groups(NGRP) do not get forwarded to the edge. The idea is that with this tool you can create a SMIL from using the medialist tool on the origin and create a file that you host in the content folder on the edge.

[How to create and play SMIL files with streams created by Wowza Transcoder](https://www.wowza.com/docs/how-to-create-and-play-smil-files-with-streams-created-by-wowza-transcoder)

I hope this helps.

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:** [June 20, 2014, 7:46am UTC](https://community.wowza.com/t/wowza-jwplayer-adaptive-bitrate-on-cdn-edge-servers/42067/4 "2014-06-20T07:46:53Z")

</div>

Sorry, my first response was incorrect. RTMP does not support server-side .smil files.

There is a convenience method for JW Player found here:

[How to use JW Player with adaptive bitrate streaming from Wowza Streaming Engine](https://www.wowza.com/docs/how-to-use-jw-player-with-adaptive-bitrate-streaming-from-wowza-streaming-engine)

Salvadore

---

<div class="post-metadata">

**Author:** ![kenji\_magto](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@kenji\_magto](https://community.wowza.com/u/kenji_magto)\
**Post date:** [June 21, 2014, 12:10am UTC](https://community.wowza.com/t/wowza-jwplayer-adaptive-bitrate-on-cdn-edge-servers/42067/5 "2014-06-21T00:10:35Z")

</div>

Hello Salvadore, Thanks for your response, I have tried that method but i get this response 🙂

on my vhost.xml i have this config 🙂

com.wowza.wms.http.HTTPCrossdomain

\*crossdomain.xml

none

com.wowza.wms.http.HTTPClientAccessPolicy

\*clientaccesspolicy.xml

none

com.wowza.wms.http.HTTPProviderMediaList

\*jwplayer.rss|\*jwplayer.smil|\*medialist.smil|\*manifest-rtmp.f4m

none

com.wowza.wms.timedtext.http.HTTPProviderCaptionFile

_.ttml|_.srt|_.scc|_.vtt

none

com.wowza.wms.http.HTTPServerVersion

\*

none

---

<div class="post-metadata">

**Author:** ![kenji\_magto](https://avatars.discourse-cdn.com/v4/letter/k/e47774/32.png) [@kenji\_magto](https://community.wowza.com/u/kenji_magto)\
**Post date:** [June 27, 2014, 12:05am UTC](https://community.wowza.com/t/wowza-jwplayer-adaptive-bitrate-on-cdn-edge-servers/42067/6 "2014-06-27T00:05:11Z")

</div>

Thanks for the reply, we will try this out 😃
