Order Now AdSolution Sign Up | Login » Bits on the Run Sign Up | Login »

Setting up RTMP Dynamic Streaming

To set up RTMP dynamic streaming, you will need to create an Media RSS (MRSS) playlist which contains all of your video encodings. This example shows how to create such a playlist.

Note: this example uses the QualityMonitor plugin, which is useful for setting up and debugging dynamic streams, by displaying the current video quality as well as the client's available bandwidth and player width. You should remove this plugin in production environments.

Using Inline Playlists

If you're using the JW Embedder, you may wish to define your playlist directly in your embed code. Here's how to incorporate dynamic streaming using this method:

<script type='text/javascript' src='/jwplayer/jwplayer.js'></script>

<div id='mediaplayer'>

<script type="text/javascript">
  jwplayer('mediaplayer').setup({
    'flashplayer': 'player.swf',
    'width': '720',
    'height': '306',
    'playlist': [
        {
           'title': 'Sintel',
           'provder': 'rtmp',
           'image': '/thumbs/sintel.jpg',
           'duration': '888'
           'streamer': 'rtmp://rtmp.server.com/application',
           'levels': [
              { bitrate:"2920", width:"1920", file:"videos/sintel-1920.mp4" },
              { bitrate:"2080", width:"1280", file:"videos/sintel-1280.mp4" },
              { bitrate:"2080", width:"720", file:"videos/sintel-720.mp4" },
              { bitrate:"650", width:"480", file:"videos/sintel-480.mp4" },
              { bitrate:"420", width:"320", file:"videos/sintel-320.mp4" }
           ]
        }
    ]
  });
</script>