Bitmovin Analytics Javascript Collector
Latest commit ae4b713 Dec 12, 2018
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.vscode Changed vscode/launch.json Sep 21, 2018
docs Added documentation folder with info on the payload Oct 4, 2017
html Merge branch 'develop' into feature/ads-tracking Dec 12, 2018
js Update AdSample.ts Dec 12, 2018
tests Lint feedback Dec 12, 2018
.dockerignore Fixed Build Nov 14, 2018
.editorconfig fix wrong editorconf (we use indent 2 in all html files) Mar 16, 2018
.gitignore Added codeship build Nov 12, 2018
.htmlhintrc.json get htmlhint conf right Jan 18, 2018
CHANGELOG.md Updated changelog Nov 20, 2018
Dockerfile.build Hopefully fixed build Nov 14, 2018
LICENSE Added MIT license Apr 23, 2018
README.md Typos etc Nov 19, 2018
check_backend_settings.sh +x check_backend_settings.sh Dec 12, 2018
check_filesize.sh Filesize check fails if the build artifact is missing Nov 16, 2018
codeship-services.yml Added volume mount so build is persisted between steps Nov 16, 2018
codeship-steps.yml Added a check that makes sure we always ship with the correct backend… Dec 12, 2018
index.html Updated sample links Nov 14, 2018
package.json Updated player version Dec 6, 2018
precommit.bash Added playbackInfo to the udateSample callback method Oct 24, 2018
publish.sh Added beta deploy script Dec 12, 2018
tsconfig.json Updated ts-loader scripts Nov 5, 2018
tslint.json Added some tslint rules Dec 12, 2018
typings.d.ts PR Feedback Jul 19, 2018
webpack.config.js Added new readme Nov 19, 2018
yarn.lock Updated player version Dec 6, 2018

README.md

Bitmovin Analytics Collector

Instruments adaptive streaming video players and collects information to be sent to the Bitmovin Analytics service.

To get started collecting data with Bitmovin Analytics you need a License-Key which you can get for free by signing up for a free Bitmovin account.

Supported Players

  • Bitmovin Web SDK v7
  • Bitmovin Web SDK v8
  • Shaka
  • HLS.js
  • DASH.js
  • VideoJS
  • Native HTMLVideoElement

Usage

An interactive getting started guide on how to integrate Bitmovin Analytics Collector with the Bitmovin Player is available in our Dashboard.

For more comprehensive integration documentation please consult the Bitmovin Analytics documentation.

Integrating Bitmovin 8

Bitmovin Player v8 comes with Analtyics pre-installed and just requires an analytics section containing your license key in the player configuration.

A minimal example:

const configWithAnalytics = {
  key: '<YOUR PLAYER KEY>',
  analytics:   {
    key: '<YOUR ANALYITICS KEY>',
    videoId: 'VIDEO_ID'
  }
};

const container = document.getElementById('my-player');
const player = bitmovin.player.Player(container, configWithAnalytics);

Integrating 3rd Party Players

To integrate other players pick the appropriate adapter (HlsAdapter, VideojsAdapter, ShakaAdapter, DashjsAdapter or HTMLVideoElementAdapter) and instantiate the adapter by passing the player instance.

An example for HLS.js:

const analyticsConfig = {
  key: '<YOUR ANALYITICS KEY>',
  videoId: 'VIDEO_ID'
};

const player = new Hls();
const analytics = new bitmovin.analytics.adapters.HlsAdapter(config, player);

player.loadSource('https://path.to/your/stream.m3u8');
player.attachMedia(document.getElementById('video'));