Results 1 to 6 of 6

Thread: Wowza + jwplayer adaptive bitrate on cdn (edge servers)

  1. #1

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

    <smil>
    <head>
    <meta base="rtmp://[WOWZA IP ADDRESS]: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>


    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,

  2. #2

    Default

    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

  3. #3

    Default

    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

  4. #4

    Default

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

    <smil>
    <head>
    <meta base="rtmp://[MY WOWZA IP ADDRESS]:1935/live/_definst_"/>
    </head>
    <body>
    <switch></switch>
    </body>
    </smil>


    on my vhost.xml i have this config


    <HTTPProviders>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPCrossdomain</BaseClass>
    <RequestFilters>*crossdomain.xml</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPClientAccessPolicy</BaseClass>
    <RequestFilters>*clientaccesspolicy.xml</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPProviderMediaList</BaseClass>
    <RequestFilters>*jwplayer.rss|*jwplayer.smil|*medialist.smil|*manifest-rtmp.f4m</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.timedtext.http.HTTPProviderCaptionFile</BaseClass>
    <RequestFilters>*.ttml|*.srt|*.scc|*.vtt</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    <HTTPProvider>
    <BaseClass>com.wowza.wms.http.HTTPServerVersion</BaseClass>
    <RequestFilters>*</RequestFilters>
    <AuthenticationMethod>none</AuthenticationMethod>
    </HTTPProvider>
    </HTTPProviders>

  5. #5

    Default

    Quote Originally Posted by kenji24 View Post
    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:

    <smil>
    <head>
    <meta base="rtmp://[WOWZA IP ADDRESS]: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>


    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.

    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.
    Last edited by roger_l; 06-22-2014 at 03:04 PM.

  6. #6

    Default

    Thanks for the reply, we will try this out

Similar Threads

  1. Using a CDN between WOwza servers?
    By microvideo in forum General Forum
    Replies: 6
    Last Post: 03-15-2013, 07:23 AM
  2. loadbalancer, adaptive bitrate, and jwplayer.rss
    By eedfwChris in forum General Forum
    Replies: 1
    Last Post: 01-17-2013, 11:00 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •