npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2025 – Pkg Stats / Ryan Hefner

@bitmovin/player-web-integration-cmcd

v0.4.0

Published

Conviva analytics integration for the Bitmovin Player

Readme

Bitmovin Player CMCD Integration

This project adds support for the Common Media Client Data (CMCD) plugin. Please find more information about the Consumer Technology Association (CTA) Specification in https://cdn.cta.tech/cta/media/media/resources/standards/pdfs/cta-5004-final.pdf

Install

Install with npm:

npm install --save @bitmovin/player-web-integration-cmcd

Usage

Create an instance of the CmcdIntegration with a CmcdConfig and set the different callbacks in the PlayerConfig as follows:

const playerConfig: PlayerConfig = {
  // all configurations you would typically set
};

const cmcdConfig: CmcdConfig = {
  useQueryArgs: true,
  sessionId: '6e2fb550-c457-11e9-bb97-0800200c9a66',
  contentId: '1111-111111-111111-11111',
};

const cmcdIntegration = new CmcdIntegration(cmcdConfig);

playerConfig.network = {
  preprocessHttpRequest: cmcdIntegration.preprocessHttpRequest,
  preprocessHttpResponse: cmcdIntegration.preprocessHttpResponse,
};
playerConfig.adaptation = {
  desktop: {
    onVideoAdaptation: cmcdIntegration.onVideoAdaptation,
    onAudioAdaptation: cmcdIntegration.onAudioAdaptation,
  },
  mobile: {
    onVideoAdaptation: cmcdIntegration.onVideoAdaptation,
    onAudioAdaptation: cmcdIntegration.onAudioAdaptation,
  },
};

After that, you create a Bitmovin Player instance as usual, then pass the player instance to the CMCD integration:

cmcdIntegration.setPlayer(player);

It is recommended to set the CMCD Session ID to the Analytics Impression ID as this enables you to connect CDN logs with CMCD data to Analytics sessions:

cmcdIntegration.setSessionId(player.analytics.getCurrentImpressionId());

Load the source into the player after these steps:

player.load(source);

Setup for Development

  1. Run npm install to install dependencies
  2. Use the npm script defined in the package.json like
    • Run npm start to start the dev server with a watch task and auto-reloading
    • Run npm run debug to create a dev build bundle (non-minified, with source maps)
    • Run npm run build to create a production bundle (minified)
    • Run npm run format to format all files in the src/ and test/ folders

Preparing a release

  1. Make sure all relevant changes were merged into the main branch, and there is an entry for each change in CHANGELOG.md
  2. Use the Release New Version Github Action Workflow and run it on the main branch

That's it! The workflow will take care of bumping the version (based on Changelog entries), updating the CHANGELOG.md file with release date and version, committing and tagging in this repository, and publishing the package to NPM.

Principles

  • The Bitmovin Player shall not be packaged into the JS file created by the build of this integration. To achieve this, types can be imported and used, but no code must be imported/used (including string enums!)