Lumen help

Integrating Mesh Delivery with JW Player

Introduction

Step 1: Install JW Player and Mesh Delivery builds

                <!-- JW Player build -->
<script src="YOUR_JWPLAYER_LIBRARY"></script>

<!-- Mesh Delivery plugin -->
<script src="//cdn.streamroot.io/jwplayer-hls-dna-plugin/1/stable/jwplayer-hls-dna-plugin.js?srKey=YOUR_STREAMROOT_KEY"></script> 

            
                <!-- JW Player build -->
<script src="YOUR_JWPLAYER_LIBRARY"></script>

<!-- Mesh Delivery plugin -->
<script src="//cdn.streamroot.io/jwplayer-dash-dna-plugin/1/stable/jwplayer-dash-dna-plugin.js?srKey=YOUR_STREAMROOT_KEY"></script> 

            

To get the highest flexibility of deployment, we recommend setting the StreamrootKey in the Query Parameter "srKey".

 

Parameter name

Mandatory

Description

YOUR_JWPLAYER_LIBRARY

Yes      

The cloud-hosted Player Library URL from your JW dashboard
YOUR_STREAMROOT_KEY

Yes      

The unique Streamroot key that we have assigned to you; make sure it is identical to the one provided in the Account section of your dashboard.

Step 2: Visualize Mesh Delivery

Vizualization graph for Mesh Delivery

Optional: Set up JW Player and Mesh Delivery

Include the following code in the HTML <body> :

                <div id="demoplayer"></div>
<script>
  jwplayer('demoplayer').setup({
    file : "YOUR_PLAYLIST_URL",
    hlsjsConfig: {},
    dnaConfig : {}
  })
</script>

            
                <div id="demoplayer"></div>
<script>
  jwplayer('demoplayer').setup({
    file : "YOUR_PLAYLIST_URL",
    shakaConfig: {},
    dnaConfig : {}
  })
</script>

            

Recommended Hls.js options

                var hlsjsConfig = {
   "maxBufferSize": 0,
   "maxBufferLength": 30,
   "liveSyncDuration": 30,
   "liveMaxLatencyDuration": Infinity
}

            

Recommended Shaka Player options

                var playerConfig = {
    streaming: {
        bufferingGoal: 30,
        useNativeHlsOnSafari: false,
    },
    manifest: {
        defaultPresentationDelay: 30,
    },
}

            

Known Issues

                jwplayer.disableNativeSafariPlayback = false;