Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
bitmovin-analytics
Advanced tools
Bitmovin Analytics Collector collects monitoring events from video players for the Bitmovin Analytics Service
Readme
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.
The supported video players are shown here: Analytics Collectors - HTML5
A getting started guide on how to integrate Bitmovin Analytics Collector with the Bitmovin Player is available on our homepage.
For more comprehensive integration documentation please consult the Bitmovin Analytics documentation.
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);
To ensure you are running a specific version (e.g. when including the bitmovin-analytics
package from NPM) override the built-in analytics module:
Using script
tag:
<script type="text/javascript" src="https://cdn.bitmovin.com/analytics/web/2/bitmovinanalytics.min.js"></script>;
bitmovin.player.Player.addModule(bitmovin.analytics.PlayerModule);
Using npm
:
import {Player} from 'bitmovin-player/modules/bitmovinplayer-core';
import {PlayerModule as AnalyticsModule} from 'bitmovin-analytics';
Player.addModule(AnalyticsModule);
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(analyticsConfig, player);
player.loadSource('https://path.to/your/stream.m3u8');
player.attachMedia(document.getElementById('video'));
Before changing the video source in the player, you need to call sourceChange()
on the assotiated analytics adapter. You can pass new configuration properties to this method like videoId
or videoTitle
analytics.sourceChange({
videoID: 'new-video-id',
videoTitle: 'New Video',
});
// Load the new source into player
FAQs
Bitmovin Analytics Collector collects monitoring events from video players for the Bitmovin Analytics Service
The npm package bitmovin-analytics receives a total of 3,973 weekly downloads. As such, bitmovin-analytics popularity was classified as popular.
We found that bitmovin-analytics demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.