HTML5 video analytics
npm install videoanalytics.io    
> Thanks for checking out the videoanalytics.io npm module. It's still a work-in-progress. Check back soon for updates!
> If you'd like to contribute to the project, join the Slack group and drop us a line!
The fastest way to get started is to serve JavaScript from the unpkg CDN:
``html
`
If you'd like to use npm, it's as easy as:
`sh`
npm -i --save videoanalytics.io
`javascript`
const vAnalytics = new VideoAnalyticsIO();
vAnalytics.init((data, done) => {
// do what you want with data
console.log(data);
done();
});
`javascript`
vAnalytics.init([options], callback);EVENTS_TO_TRACK
* : an array of user interactions to track (e.g., play, pause, seek)NUM_DECIMAL_PLACES
* : an integer for the number of decimal places to round (e.g., 12.68)NUM_EVENTS_BEFORE_SENDING
* : an integer for the number of events per video to store before calling your provided callback function
The default options can be seen in src/config.defaults.js.
For full examples, see the examples/` directory.