[](https://travis-ci.com/kaltura/playkit-js-comscore)[](https://www.npmjs.com/package/@playkit-

PlayKit JS Comscore Engine integrates Comscore with the [PlayKit JS Player].
PlayKit JS Comscore is written in [ECMAScript6], statically analysed using [Flow] and transpiled in ECMAScript5 using [Babel].
[flow]: https://flow.org/
[ecmascript6]: https://github.com/ericdouglas/ES6-Learning#articles--tutorials
[babel]: https://babeljs.io
The adapter requires [Kaltura Player JS] to be loaded first.
[Kaltura Player JS]: https://github.com/kaltura/kaltura-player-js
First, clone and run [yarn] to install dependencies:
[yarn]: https://yarnpkg.com/lang/en/
```
git clone https://github.com/kaltura/playkit-js-comscore.git
cd playkit-js-comscore
yarn install
Then, build the player
`javascript`
yarn run build
Finally, add the bundle as a script tag in your page, and initialize the player
` Tests can be run locally via [Karma], which will run on Chrome, Firefox and Safari [karma]: https://karma-runner.github.io/1.0/index.html You can test individual browsers: We use ESLint recommended set with some additions for enforcing [Flow] types and other rules. See ESLint config for full configuration. We also use .editorconfig to maintain consistent coding styles and settings, please make sure you comply with the styling. TBD Please read CONTRIBUTING.md for details on our code of conduct, and the process for submitting pull requests to us. We use SemVer for versioning. For the versions available, see the tags on this repository. This project is licensed under the AGPL-3.0 License - see the LICENSE.md file for detailshtml
``Configuration
javascript`
{
plugins: {
comscore: {
// comscore plugin configuration
}
}
}`Running the tests
`
yarn run test```
yarn run test:chrome
yarn run test:firefox
yarn run test:safari$3
Compatibility
Contributing
Versioning
License