Lumen help

Integrating Mesh Delivery with Shaka Player v1


Step 1: Install Shaka Player and Mesh Delivery builds

From our CDN

                <!-- Shaka Player build -->
<script src=""></script>

<!-- Mesh Delivery builds -->
<script src=""></script>
<script src=""></script>


Step 2: Set up Shaka Player and Mesh Delivery

In the HTML <body>

                <video id="demoplayer"></video>
  var videoElement = document.getElementById("demoplayer");
  var player = new shaka.player.Player(videoElement);

  // Link interactor to the player
  // It must ALWAYS be called before the `load` method of the player
  var contentUrl = "<YOUR_PLAYLIST_URL>";
  var playerConfig = { streamBufferSize: 30 };
  var estimator = new shaka.util.EWMABandwidthEstimator();
  var source = new shaka.player.DashVideoSource(contentUrl, null, estimator);



Step 3: Visualize Mesh Delivery

Vizualization graph for Mesh Delivery

Recommended Shaka Player Options

                var playerConfig = {
    streamBufferSize: 30