Adding the PolyNet HTML5 SDK with Bitmovin

Downloads

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 bitmovin 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: Bitmovin dependencies should be always called BEFORE the System73 PolyNet dependencies.

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

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

    <!-- Bitmovin dependency -->
    <!-- Bitmovin should be always called BEFORE the System73 PolyNet dependencies -->
    <script type="text/javascript" src="https://bitmovin-a.akamaihd.net/bitmovin-player/stable/7.7/bitmovinplayer.js"></script>

    <!-- System73 PolyNet dependencies -->
    <!-- Bitmovin and System73 PolyNet dependencies should be always called BEFORE the video tag. -->
    <script src="//cdn.s73cloud.com/3.0/s73-polynet-sdk-video.min.js" type="application/javascript"></script>
    <script src="//cdn.s73cloud.com/3.0/s73-polynet-plugin-bitmovin.min.js" type="application/javascript"></script>
  </head>

  <body>
    <div id="player"></div>

    <script>
      var conf = {
        // Add your custom player configuration here
        key: '<BITMOVIN_LICENSE_KEY>',
        source: {
          hls: '<MANIFEST_URL>'
        },
        polyNetConfig: {
          apiKey: '<YOUR_API_KEY>', // mandatory
          channelId: '<CHANNEL_ID>' // optional
        }
      };
      var player = bitmovin.player('player');

      var _polyNet = new PolyNetPluginBitmovin(player);
      _polyNet.setup(conf).then(
        function(reason) {
          // Error!
          console.log('Error while creating bitmovin player instance');
        }
      );
    </script>
  </body>
</html>

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

Contact us in order to obtain it.