Shaka Player with EcoCDN P2P WebRTC (HLS or MPEG-DASH)

Example Code:

<html lang="en">
  <head>
    <meta charset="utf-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1" />
    <title>Shaka Player with EcoCDN P2P WebRTC (HLS or MPEG-DASH)</title>
    <script src="//cdn.jsdelivr.net/npm/ecocdn/vodjs/sigallv1.min.js"></script>
    <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/mux.min.js"></script>
    <script src="//cdn.jsdelivr.net/npm/[email protected]/dist/shaka-player.compiled.min.js"></script>
  </head>
  <body>
    <video id="video" width="640" controls autoplay muted></video>
    <script>
      shaka.polyfill.installAll();
      var video_url = "https://wowza.peer5.com/live/smil:bbb_abr.smil/playlist.m3u8"
      function onError(error) { 
        console.error("Error code: ", error.code, ", object: ", error); 
      }
      if (shaka.Player.isBrowserSupported()) {
        var player = new shaka.Player(document.getElementById("video"));
        var callback = function() {
          player.addEventListener("error", function(event) { onError(event.detail); });
          player.load(video_url).catch(onError);
        }
        window.Tracker.initShaka({player: player, video_url: video_url, cb: callback})
      }
    </script>
  </body>
</html>