Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@bitmovin/player-integration-comscore

Package Overview
Dependencies
Maintainers
5
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@bitmovin/player-integration-comscore

ComScore analytics integration for the Bitmovin Player

  • 1.2.3
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
5
Created
Source

Bitmovin Video Player with the ComScore Analytics integration

Experimental Status MIT license

Installation

Via npm package: npm install --save bitmovin-player-analytics-comscore

or add bitmovinplayer-analytics-comscore.js directly.

// Include a ComScore SDK from your ComScore dashboard before the Bitmovin plugin. The current version of this integration supports Comscore SDK version `7.5.0.200713`. Generally this file is called comscore.js.
<script src='comscore.js'></script>

// Bitmovin CDN version
<script src="//bitmovin-a.akamaihd.net/bitmovin-analytics-comscore/stable/comscore-plugin.min.js"></script>

// or your own local copy
<script src="/local/path/comscore-plugin.min.js"></script>

Usage

  1. Setup basic analytics reporting
  // Start ComScoreAnalytics app tracking
  bitmovin.player.analytics.ComScoreAnalytics.start({
    publisherId: 'YOUR_PUBLISHER_ID',
    applicationName: 'YOUR_APPLICATION_NAME',
    applicationVersion: 'YOUR_APPLICATION_VERSION',
  });

  bitmovin.player.analytics.ComScoreAnalytics.enterForeground();

  // Create ComScoreStreamingAnalytics
  var comscoreStreamingAnalytics = bitmovin.player.analytics.ComScoreAnalytics.createComScoreStreamingAnalytics(player, {
      mediaType: bitmovin.player.analytics.LongFormOnDemand,
      publisherBrandName: 'ABC',
      programTitle: 'Modern Family',
      episodeTitle: 'Rash Decisions',
      episodeSeasonNumber: '01',
      episodeNumber: '2',
      contentGenre: 'Comedy',
      stationTitle: 'Hulu',
      completeEpisode: true,
    },
  );
  
  //Update metadata for your new source load
  comscoreStreamingAnalytics.updateMetadata({
        mediaType: bitmovin.player.analytics.LongFormOnDemand,
        publisherBrandName: 'ABC',
        programTitle: 'Modern Family',
        episodeTitle: 'Rash Decisions',
        episodeSeasonNumber: '01',
        episodeNumber: '2',
        contentGenre: 'Comedy',
        stationTitle: 'Hulu',
        completeEpisode: true,
  })

Development

  1. Run tasks:
  • npm run lint to lint TypeScript files
  • npm run build to build project into dist directory
  • npm run start to open test page in browser, build and reload changed files automatically

FAQs

Package last updated on 02 Feb 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc