Wowza Community

Wowza + jwplayer adaptive bitrate on cdn (edge servers)

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:

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:

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.

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

The output should be

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

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

I hope this helps.

salvadore

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

Salvadore

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

on my vhost.xml i have this config :slight_smile:

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

Thanks for the reply, we will try this out :smiley: