
Security News
Package Maintainers Call for Improvements to GitHub’s New npm Security Plan
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
@qualabs/bitmovin-analytics-collector-theoplayer
Advanced tools
Instruments THEOPlayer and collects information to be sent to the Bitmovin Analytics service.
Instruments THEOPlayer 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.
npm install @qualabs/bitmovin-analytics-collector-theoplayer
<script src="https://cdn.jsdelivr.net/npm/@qualabs/bitmovin-analytics-collector-theoplayer@latest/dist/bitmovin-analytics-collector-theoplayer.min.js"></script>
Before integrating the plugin, make sure you have a working installation of THEOPlayer. For more details on installing and using THEOPlayer, please refer to the THEOPlayer Getting Started Guide.
If you are using a module bundler, import the plugin as follows:
import { TheoCollector } from "theo-bitmovin-collector-plugin";
// The player configuration
const analyticsConfig = {
licenseKey: 'your_bitmovin_analytics_license',
};
// Create the player instance
collector = new TheoCollector(analyticsConfig, player);
Alternatively, if you prefer using a script tag, include the plugin from the CDN and initialize it:
<script src="https://cdn.jsdelivr.net/npm/@qualabs/bitmovin-analytics-collector-theoplayer@latest/dist/bitmovin-analytics-collector-theoplayer.min.js"></script>
<script>
const analyticsConfig = {
licenseKey: 'your_bitmovin_analytics_license',
};
var collector = new bitmovin.TheoCollector(analyticsConfig, player);
</script>
Note: The collector plugin supports both the standard and chromeless versions of THEOPlayer.
Below is an example of the complete configuration object for Bitmovin Analytics:
const fullConfig = {
// Your Bitmovin Analytics config
licenseKey: string,
// Optional: Use a different userId each session. If enabled overrides cookiesEnabled to false. Deafults to false
randomizeUserId: boolean,
// Optional: URL to send analytics to
backendUrl: string,
// Optional: CDN Provider used to deliver the video
cdnProvider: string,
// Optional: User-ID in the customer system
customUserId: string,
// Optional: Metadata for this source. Should manually be updated on source change.
sourceMetadata: {
// Optional: Human readable title of the video, provided by customer */
title: string,
// Optional: ID of the video, provided by customer
videoId: string,
// Optional: CDN Provider used to deliver the video. Overrides config.cdnProvider
cdnProvider: string,
// Optional: HTTP path e.g. .../about
path: string,
// Optional: Used as a fallback to determine if stream is live.
isLive: boolean,
},
// Optional: Whether to use cookies to persist userId across multiple sessions in the same browser. Defaults to true
cookiesEnabled: boolean,
// Optional: Domain to be used for userId cookie. Defaults to "bitmovin_analytics_uuid"
cookiesDomain: string,
// Optional: Cookie max age in seconds. Defaults to 1 year
cookiesMaxAge: number,
}
FAQs
Instruments THEOPlayer and collects information to be sent to the Bitmovin Analytics service.
We found that @qualabs/bitmovin-analytics-collector-theoplayer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Maintainers back GitHub’s npm security overhaul but raise concerns about CI/CD workflows, enterprise support, and token management.
Product
Socket Firewall is a free tool that blocks malicious packages at install time, giving developers proactive protection against rising supply chain attacks.
Research
Socket uncovers malicious Rust crates impersonating fast_log to steal Solana and Ethereum wallet keys from source code.