npm.io
2.33.0 • Published 5d ago

@datazoom/collector_html5_native

Licence
ISC
Version
2.33.0
Deps
0
Size
70 kB
Vulns
0
Weekly
1.4K

HTML5 Native

Introduction

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

Installation

npm i @datazoom/collector_html5_native

Plugin Initialisation

datazoom.init({ 
    configuration_id:"CONFIG_ID"
});

Note: Replace the CONFIG_ID value with the collector configuration ID.

Usage

To activate data collection for HTML5 instance, create a Datazoom context which references the player instance with the following snippet:

let playerContext = datazoom.createContext(playerManager);

Example

import datazoom from '@datazoom/collector_html5_native'
...
let playerContext;
...
datazoom.init({ 
    configuration_id:"CONFIG_ID"
});
playerContext = datazoom.createContext(playerManager);

Keywords