Adding the PolyNet HTML5 SDK with hls.js


In order to download the resources needed to connect to the PolyNet, the following assets are provided from System73's CDN servers:

The following HTML5 code snippet shows how to include the PolyNet SDK and PolyNet hls.js plugin in addition to the player scripts. The configuration needed for your application and player may differ from this. Please check the official documentation of the player for further details.

NOTE: hls.js dependencies should be always called BEFORE the System73 PolyNet dependencies.

NOTE: hls.js and System73 PolyNet dependencies should be always called BEFORE the video tag.

NOTE: System73 PolyNet hls.js plugin must be instantiated always BEFORE the hls.js loadSource call.

<!DOCTYPE html>
    <meta charset="UTF-8">
    <title>System73 PolyNet</title>

    <!-- hls.js should be always called BEFORE the System73 PolyNet dependencies -->
    <script src="//" type="application/javascript"></script>

    <!-- hls.js and System73 PolyNet dependencies should be always called BEFORE the video tag. -->
    <script src="//" type="application/javascript"></script>
    <script src="//" type="application/javascript"></script>

    <video id="video"></video>

      var video = document.getElementById('video');
      // Add your custom player configuration here
      if(Hls.isSupported()) {
          var hls = new Hls();
          var polyNetConfig = {
            apiKey: '<YOUR_API_KEY>', // mandatory
            channelId: '<CHANNEL_ID>' // optional
          var options = {
            polyNetConfig: polyNetConfig,
            videoElement: video,
            hlsjs: hls

          new PolyNetPluginHlsjs(options);
      // hls.js is not supported on platforms that do not have Media Source Extensions (MSE) enabled.
      // When the browser has built-in HLS support (check using `canPlayType`), we can provide an HLS manifest (i.e. .m3u8 URL) directly to the video element throught the `src` property.
      // This is using the built-in support of the plain video element, without using hls.js.
      else if (video.canPlayType('application/')) {
          video.src = '<MANIFEST_URL>';

The following parameters are used when performing an integration with System73's PolyNet:

Contact us in order to obtain it.

Other considerations [Optional]

Custom configuration

You are free to pass hls.js any custom configuration, if you need it.

PolyNet SDK only uses the liveSyncDuration setting:

NOTE: liveSyncDuration takes precedence over the setting liveSyncDurationCount. Even if you provide a custom liveSyncDurationCount, hls.js may ignore it and use liveSyncDuration = 30 from the SDK.