UNPKG

@datazoom/collector_dashjs

Version:

## Introduction Datazoom is a high availability real-time data collection solution. This document summarizes how to integrate with the Datazoom platform.

43 lines (30 loc) 828 B
# `Dash.js` ## Introduction Datazoom is a high availability real-time data collection solution. This document summarizes how to integrate with the Datazoom platform. ## Installation ```js npm i @datazoom/collector_dashjs ``` ## Plugin Initialisation ```js datazoom.init({ configuration_id:"CONFIG_ID" }); ``` **Note:** Replace the CONFIG_ID value with the collector configuration ID. ## Usage To activate data collection for Dash.js instance, create a Datazoom context which references the player instance with the following snippet: ```js let playerContext = datazoom.createContext(playerManager); ``` **Example** ```js import datazoom from '@datazoom/collector_dashjs' ... let playerContext; ... datazoom.init({ configuration_id:"CONFIG_ID" }); playerContext = datazoom.createContext(playerManager); ```