Conviva

Code samples

  • Conviva: the complete setup, including the asset name reported through source.name.

The Conviva Core SDK isn’t published on the public NPM registry — Conviva provides it directly to customers. Add it to your page with a <script> tag:

<script src="path/to/conviva-core-sdk.js"></script>

Note

The Conviva plugin depends on the Conviva Core SDK, so the core SDK must be added to the page before the plugin. The minimum supported version for this integration is 4.0.3.

Import the PRESTOplay Conviva plugin:

import "@castlabs/prestoplay/cl.conviva";

Provide the Conviva configuration as part of the player configuration:

const playerConfig = {
  ...
  conviva: {
    customerKey: 'YOUR_CONVIVA_CUSTOMER_KEY',
    serviceUrl: 'https://company.testonly.conviva.com',
    viewerId: 'YOUR_USER_ID',
    enableAdInsights: false
  }
};
Next topic: NPAW
Previous topic: Analytics