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

bitmovin-analytics

Package Overview
Dependencies
Maintainers
1
Versions
134
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

bitmovin-analytics - npm Package Compare versions

Comparing version 2.14.0 to 2.15.0

4

bitmovin-analytics.d.ts
export * from './js/core/BitmovinAnalyticsExport';
export { AnalyticsConfig } from './js/types/AnalyticsConfig';
export {AnalyticsConfig} from './js/types/AnalyticsConfig';
import PlayerModule from './js/core/BitmovinAnalyticsExport';
export default PlayerModule;
export default PlayerModule;

@@ -0,3 +1,3 @@

import { AdapterAPI } from '../api/AdapterAPI';
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
import { AdapterAPI } from '../api/AdapterAPI';
import { Adapter } from './Adapter';

@@ -4,0 +4,0 @@ export declare class Bitmovin7Adapter extends Adapter implements AdapterAPI {

@@ -0,3 +1,3 @@

import { AdapterAPI } from '../api/AdapterAPI';
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
import { AdapterAPI } from '../api/AdapterAPI';
import { Adapter } from './Adapter';

@@ -4,0 +4,0 @@ export declare class Bitmovin8Adapter extends Adapter implements AdapterAPI {

import { AdapterAPI } from '../api/AdapterAPI';
import { AnalyticsConfig } from '../types/AnalyticsConfig';
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
import { AnalyticsConfig } from '../types/AnalyticsConfig';
import { Adapter } from './Adapter';

@@ -5,0 +5,0 @@ export declare class DashjsAdapter extends Adapter implements AdapterAPI {

import { AdapterAPI } from '../api/AdapterAPI';
import { AnalyticsConfig } from '../types/AnalyticsConfig';
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
import { AnalyticsConfig } from '../types/AnalyticsConfig';
import { Adapter } from './Adapter';

@@ -5,0 +5,0 @@ export declare class HlsAdapter extends Adapter implements AdapterAPI {

import { AdapterAPI } from '../api/AdapterAPI';
import { AnalyticsConfig } from '../types/AnalyticsConfig';
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
import { AnalyticsConfig } from '../types/AnalyticsConfig';
import { Adapter } from './Adapter';

@@ -5,0 +5,0 @@ export declare class HTMLVideoElementAdapter extends Adapter implements AdapterAPI {

@@ -1,3 +0,3 @@

import { AdModuleAPI, AdCallbacks } from './AdModuleAPI';
import { PlayerAPI } from 'bitmovin-player';
import { AdCallbacks, AdModuleAPI } from './AdModuleAPI';
export declare class Bitmovin8AdModule implements AdModuleAPI {

@@ -4,0 +4,0 @@ private player;

@@ -1,14 +0,12 @@

import { InternalAdapterAPI } from './InternalAdapterAPI';
import { InternalAdapter } from './InternalAdapter';
import { Player } from '../../enums/Player';
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
import { Player } from '../../enums/Player';
import { PlaybackInfo } from '../../types/PlaybackInfo';
import { InternalAdapter } from './InternalAdapter';
import { InternalAdapterAPI } from './InternalAdapterAPI';
export declare class Bitmovin7InternalAdapter extends InternalAdapter implements InternalAdapterAPI {
private player;
private _drmPerformanceInfo;
private onBeforeUnLoadEvent;
constructor(player: any, opts?: AnalyticsStateMachineOptions);
initialize(): void;
readonly drmPerformanceInfo: DrmPerformanceInfo;
getPlayerVersion: () => any;

@@ -18,2 +16,3 @@ getPlayerName: () => Player;

getAutoPlay(): boolean;
getDrmPerformanceInfo: () => DrmPerformanceInfo | undefined;
getCurrentPlaybackInfo(): PlaybackInfo;

@@ -20,0 +19,0 @@ register(): void;

@@ -1,15 +0,14 @@

import { InternalAdapterAPI } from './InternalAdapterAPI';
import { InternalAdapter } from './InternalAdapter';
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
import { PlayerAPI } from 'bitmovin-player';
import VideoCompletionTracker from '../../core/VideoCompletionTracker';
import { Player } from '../../enums/Player';
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo';
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
import { Player } from '../../enums/Player';
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
import { PlaybackInfo } from '../../types/PlaybackInfo';
import { SegmentInfo } from '../../types/SegmentInfo';
import { AdModuleAPI } from './ads/AdModuleAPI';
import VideoCompletionTracker from '../../core/VideoCompletionTracker';
import { InternalAdapter } from './InternalAdapter';
import { InternalAdapterAPI } from './InternalAdapterAPI';
export declare class Bitmovin8InternalAdapter extends InternalAdapter implements InternalAdapterAPI {
private player;
readonly drmPerformanceInfo: DrmPerformanceInfo;
readonly downloadSpeedInfo: DownloadSpeedInfo;

@@ -20,3 +19,2 @@ readonly segments: SegmentInfo[];

readonly videoCompletionTracker: VideoCompletionTracker;
private _drmPerformanceInfo;
private onBeforeUnLoadEvent;

@@ -34,2 +32,3 @@ private speedMeter;

getAutoPlay(): boolean;
getDrmPerformanceInfo: () => DrmPerformanceInfo | undefined;
getCurrentPlaybackInfo(): PlaybackInfo;

@@ -36,0 +35,0 @@ register(): void;

@@ -1,6 +0,6 @@

import { InternalAdapterAPI } from './InternalAdapterAPI';
import { HTML5InternalAdapter } from './HTML5InternalAdapter';
import { Player } from '../../enums/Player';
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
import { QualityLevelInfo } from '../../types/QualityLevelInfo';
import { Player } from '../../enums/Player';
import { HTML5InternalAdapter } from './HTML5InternalAdapter';
import { InternalAdapterAPI } from './InternalAdapterAPI';
export declare class DashjsInternalAdapter extends HTML5InternalAdapter implements InternalAdapterAPI {

@@ -31,3 +31,2 @@ private mediaPlayer;

getCurrentQualityLevelInfo(): QualityLevelInfo | null;
private registerDashEvents;
}
/// <reference types="hls.js" />
import { InternalAdapterAPI } from './InternalAdapterAPI';
import { HTML5InternalAdapter } from './HTML5InternalAdapter';
import { Player } from '../../enums/Player';
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
import { QualityLevelInfo } from '../../types/QualityLevelInfo';
import { Player } from '../../enums/Player';
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo';
import { PlaybackInfo } from '../../types/PlaybackInfo';
import { QualityLevelInfo } from '../../types/QualityLevelInfo';
import { HTML5InternalAdapter } from './HTML5InternalAdapter';
import { InternalAdapterAPI } from './InternalAdapterAPI';
export declare class HlsInternalAdapter extends HTML5InternalAdapter implements InternalAdapterAPI {

@@ -10,0 +10,0 @@ private hls;

@@ -1,15 +0,14 @@

import { InternalAdapter } from './InternalAdapter';
import { InternalAdapterAPI } from './InternalAdapterAPI';
import VideoCompletionTracker from '../../core/VideoCompletionTracker';
import { Player } from '../../enums/Player';
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
import { Player } from '../../enums/Player';
import { PlaybackInfo } from '../../types/PlaybackInfo';
import { StreamSources } from '../../types/StreamSources';
import { QualityLevelInfo } from '../../types/QualityLevelInfo';
import { SegmentInfo } from '../../types/SegmentInfo';
import { StreamSources } from '../../types/StreamSources';
import { SubtitleInfo } from '../../types/SubtitleInfo';
import VideoCompletionTracker from '../../core/VideoCompletionTracker';
import { InternalAdapter } from './InternalAdapter';
import { InternalAdapterAPI } from './InternalAdapterAPI';
export declare abstract class HTML5InternalAdapter extends InternalAdapter implements InternalAdapterAPI {
protected mediaElement: HTMLVideoElement | null;
readonly drmPerformanceInfo: DrmPerformanceInfo;
readonly segments: SegmentInfo[];

@@ -25,4 +24,2 @@ private static BUFFERING_TIMECHANGED_TIMEOUT;

private onBeforeUnLoadEvent;
private _drmPerformanceInfo;
private analyticsBitrate?;
private bufferingTimeout?;

@@ -41,2 +38,3 @@ private isBuffering;

getAutoPlay: () => boolean;
getDrmPerformanceInfo: () => DrmPerformanceInfo | undefined;
initialize(): void;

@@ -43,0 +41,0 @@ isLive: () => boolean;

@@ -1,6 +0,6 @@

import { InternalAdapterAPI } from './InternalAdapterAPI';
import { HTML5InternalAdapter } from './HTML5InternalAdapter';
import { Player } from '../../enums/Player';
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
import { QualityLevelInfo } from '../../types/QualityLevelInfo';
import { Player } from '../../enums/Player';
import { HTML5InternalAdapter } from './HTML5InternalAdapter';
import { InternalAdapterAPI } from './InternalAdapterAPI';
export declare class HTMLVideoElementInternalAdapter extends HTML5InternalAdapter implements InternalAdapterAPI {

@@ -7,0 +7,0 @@ constructor(mediaElement: HTMLVideoElement, opts?: AnalyticsStateMachineOptions);

import { AnalyticsStateMachine } from '../../analyticsStateMachines/AnalyticsStateMachine';
import { StateMachineCallbacks } from '../../types/StateMachineCallbacks';
import { EventDispatcher } from '../../core/EventDispatcher';
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo';
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
import { SegmentInfo } from '../../types/SegmentInfo';
import { EventDispatcher } from '../../core/EventDispatcher';
import { StateMachineCallbacks } from '../../types/StateMachineCallbacks';
export declare abstract class InternalAdapter {

@@ -15,2 +16,5 @@ stateMachineCallbacks: StateMachineCallbacks;

protected _onLicenseCallFailed: EventDispatcher<{}>;
protected drmPerformanceInfo: DrmPerformanceInfo | undefined;
protected previousVideoBitrate: number;
protected previousAudioBitrate: number;
readonly onLicenseKeyReceived: EventDispatcher<{

@@ -28,4 +32,8 @@ licenseKey: string;

clearSegments(): void;
protected shouldAllowVideoQualityChange(newBitrate: number | undefined): boolean;
protected setPreviousVideoBitrate(newBitrate: number): void;
protected shouldAllowAudioQualityChange(newBitrate: number | undefined): boolean;
protected setPreviousAudioBitrate(newBitrate: number): void;
readonly downloadSpeedInfo: DownloadSpeedInfo;
readonly segments: SegmentInfo[];
}

@@ -1,11 +0,10 @@

import { StateMachineCallbacks } from '../../types/StateMachineCallbacks';
import VideoCompletionTracker from '../../core/VideoCompletionTracker';
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo';
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
import { PlaybackInfo } from '../../types/PlaybackInfo';
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo';
import { SegmentInfo } from '../../types/SegmentInfo';
import { StateMachineCallbacks } from '../../types/StateMachineCallbacks';
import { AdModuleAPI } from './ads/AdModuleAPI';
import { DeferredLicenseLoadingAdapterAPI } from './DeferredLicenseLoadingAdapterAPI';
import VideoCompletionTracker from '../../core/VideoCompletionTracker';
export interface InternalAdapterAPI extends DeferredLicenseLoadingAdapterAPI {
readonly drmPerformanceInfo: DrmPerformanceInfo;
readonly downloadSpeedInfo: DownloadSpeedInfo;

@@ -20,2 +19,3 @@ readonly segments: SegmentInfo[];

getAutoPlay(): boolean;
getDrmPerformanceInfo(): DrmPerformanceInfo | undefined;
initialize(): void;

@@ -22,0 +22,0 @@ getCurrentPlaybackInfo(): PlaybackInfo;

@@ -1,6 +0,6 @@

import { InternalAdapterAPI } from './InternalAdapterAPI';
import { HTML5InternalAdapter } from './HTML5InternalAdapter';
import { Player } from '../../enums/Player';
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
import { QualityLevelInfo } from '../../types/QualityLevelInfo';
import { Player } from '../../enums/Player';
import { HTML5InternalAdapter } from './HTML5InternalAdapter';
import { InternalAdapterAPI } from './InternalAdapterAPI';
export declare class ShakaInternalAdapter extends HTML5InternalAdapter implements InternalAdapterAPI {

@@ -7,0 +7,0 @@ private player;

/// <reference types="video.js" />
import { InternalAdapter } from './InternalAdapter';
import { InternalAdapterAPI } from './InternalAdapterAPI';
import VideoCompletionTracker from '../../core/VideoCompletionTracker';
import { Player } from '../../enums/Player';
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
import { Player } from '../../enums/Player';
import { StreamSources } from '../../types/StreamSources';
import { PlaybackInfo } from '../../types/PlaybackInfo';
import { QualityLevelInfo } from '../../types/QualityLevelInfo';
import { StreamSources } from '../../types/StreamSources';
import { InternalAdapter } from './InternalAdapter';
import { InternalAdapterAPI } from './InternalAdapterAPI';
export declare class VideojsInternalAdapter extends InternalAdapter implements InternalAdapterAPI {
private player;
private _drmPerformanceInfo;
readonly videoCompletionTracker: VideoCompletionTracker;
private _subtitleInfo;
private selectedAudioLanguage?;
private onBeforeUnLoadEvent;
private previousTime;
constructor(player: videojs.default.Player, opts?: AnalyticsStateMachineOptions);
initialize(): void;
readonly drmPerformanceInfo: DrmPerformanceInfo;
getPlayerVersion: () => any;

@@ -23,2 +24,3 @@ getPlayerName: () => Player;

getAutoPlay: () => boolean;
getDrmPerformanceInfo: () => DrmPerformanceInfo | undefined;
getStreamType(url: string): string | undefined;

@@ -25,0 +27,0 @@ getStreamSources(url: string): StreamSources;

import { AdapterAPI } from '../api/AdapterAPI';
import { AnalyticsConfig } from '../types/AnalyticsConfig';
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
import { AnalyticsConfig } from '../types/AnalyticsConfig';
import { Adapter } from './Adapter';

@@ -5,0 +5,0 @@ export declare class ShakaAdapter extends Adapter implements AdapterAPI {

@@ -1,7 +0,7 @@

import { Adapter } from './Adapter';
import { AdapterAPI } from '../api/AdapterAPI';
import { AnalyticsConfig } from '../types/AnalyticsConfig';
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
import { AnalyticsConfig } from '../types/AnalyticsConfig';
import { Adapter } from './Adapter';
export declare class VideojsAdapter extends Adapter implements AdapterAPI {
constructor(config: AnalyticsConfig, player: any, opts?: AnalyticsStateMachineOptions);
}

@@ -15,5 +15,4 @@ import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';

abstract sourceChange(config: any, timestamp: number, currentTime?: number): void;
abstract updateMetadata(metadata?: any): void;
protected startRebufferingHeartbeatInterval(reset?: boolean): void;
protected clearRebufferingHeartbeatInterval(reset?: boolean): void;
}
import * as StateMachine from 'javascript-state-machine';
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
import { StateMachineCallbacks } from '../types/StateMachineCallbacks';
import { EventDebugging } from '../utils/EventDebugging';
import { StateMachineCallbacks } from '../types/StateMachineCallbacks';
import { AnalyticsStateMachine } from './AnalyticsStateMachine';

@@ -23,3 +23,2 @@ export declare class Bitmovin7AnalyticsStateMachine extends AnalyticsStateMachine {

setEnabledDebugging(enabled: boolean): void;
updateMetadata(metadata: any): void;
}
import * as StateMachine from 'javascript-state-machine';
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
import { StateMachineCallbacks } from '../types/StateMachineCallbacks';
import { EventDebugging } from '../utils/EventDebugging';
import { StateMachineCallbacks } from '../types/StateMachineCallbacks';
import { AnalyticsStateMachine } from './AnalyticsStateMachine';

@@ -21,3 +21,2 @@ export declare class Bitmovin8AnalyticsStateMachine extends AnalyticsStateMachine {

setEnabledDebugging(enabled: boolean): void;
updateMetadata(metadata: any): void;
private getReasonForVideoStartFailure;

@@ -24,0 +23,0 @@ private setVideoStartTimeout;

@@ -13,3 +13,2 @@ import * as StateMachine from 'javascript-state-machine';

callEvent(eventType: string, eventObject: any, timestamp: number): void;
updateMetadata(): void;
sourceChange: (config: any, timestamp: number, currentTime?: number | undefined) => void;

@@ -16,0 +15,0 @@ private getReasonForVideoStartFailure;

@@ -15,3 +15,2 @@ import * as StateMachine from 'javascript-state-machine';

callEvent(eventType: string, eventObject: any, timestamp: number): void;
updateMetadata(): void;
sourceChange: (config: any, timestamp: number, currentTime?: number | undefined) => void;

@@ -18,0 +17,0 @@ private getReasonForVideoStartFailure;

@@ -0,6 +1,6 @@

import { AdBreakEvent, AdClickedEvent, AdEvent, AdLinearityChangedEvent, AdManifestLoadedEvent, AdQuartileEvent, ErrorEvent } from 'bitmovin-player';
import { AdModuleAPI } from '../adapters/internal/ads/AdModuleAPI';
import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
import { Sample } from '../types/Sample';
import { Analytics } from './Analytics';
import { AdBreakEvent, AdClickedEvent, AdEvent, AdQuartileEvent, AdLinearityChangedEvent, ErrorEvent, AdManifestLoadedEvent } from 'bitmovin-player';
import { Sample } from '../types/Sample';
import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
import { AdModuleAPI } from '../adapters/internal/ads/AdModuleAPI';
export declare class AdAnalytics {

@@ -7,0 +7,0 @@ static readonly MODULE_NAME = "ads";

@@ -1,6 +0,7 @@

import { Sample } from '../types/Sample';
import { InternalAdapterAPI } from '../adapters/internal/InternalAdapterAPI';
import { AnalyticsConfig } from '../types/AnalyticsConfig';
import { CastClientConfig } from '../types/CastClientConfig';
import { Sample } from '../types/Sample';
import { Backend } from './Backend';
import { InternalAdapterAPI } from '../adapters/internal/InternalAdapterAPI';
import { BackendFactory } from './BackendFactory';
export declare class Analytics {

@@ -24,3 +25,3 @@ static version: string;

private backendFactory;
constructor(config: AnalyticsConfig, adapter: InternalAdapterAPI);
constructor(config: AnalyticsConfig, adapter: InternalAdapterAPI, backendFactory?: BackendFactory);
getPlayerInformationFromAdapter(): {

@@ -27,0 +28,0 @@ player: string;

@@ -0,5 +1,5 @@

import { DeferredLicenseLoadingAdapterAPI } from '../adapters/internal/DeferredLicenseLoadingAdapterAPI';
import { AnalyticsConfig } from '../types/AnalyticsConfig';
import { LicensingRequest } from '../types/LicensingRequest';
import { Backend } from './Backend';
import { LicensingRequest } from '../types/LicensingRequest';
import { DeferredLicenseLoadingAdapterAPI } from '../adapters/internal/DeferredLicenseLoadingAdapterAPI';
export declare class BackendFactory {

@@ -6,0 +6,0 @@ private backend?;

@@ -1,11 +0,11 @@

import { Player } from '../enums/Player';
import { CdnProvider } from '../enums/CDNProvider';
import { VERSION } from '../Version';
import { HlsAdapter } from '../adapters/HlsAdapter';
import { Bitmovin7Adapter } from '../adapters/Bitmovin7Adapter';
import { Bitmovin8Adapter } from '../adapters/Bitmovin8Adapter';
import { Bitmovin7Adapter } from '../adapters/Bitmovin7Adapter';
import { VideojsAdapter } from '../adapters/VideoJsAdapter';
import { ShakaAdapter } from '../adapters/ShakaAdapter';
import { DashjsAdapter } from '../adapters/DashjsAdapter';
import { HlsAdapter } from '../adapters/HlsAdapter';
import { HTMLVideoElementAdapter } from '../adapters/HTMLVideoElementAdapter';
import { ShakaAdapter } from '../adapters/ShakaAdapter';
import { VideojsAdapter } from '../adapters/VideoJsAdapter';
import { CdnProvider } from '../enums/CDNProvider';
import { Player } from '../enums/Player';
import { VERSION } from '../Version';
declare const AnalyticsModule: {

@@ -31,2 +31,3 @@ name: string;

export { HTMLVideoElementAdapter };
export { adapters };
declare const adapters: {

@@ -41,3 +42,2 @@ HlsAdapter: typeof HlsAdapter;

};
export { adapters };
declare const _default: {

@@ -44,0 +44,0 @@ PlayerModule: {

@@ -1,7 +0,7 @@

import { Backend } from './Backend';
import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
import { AdBreakSample } from '../types/AdBreakSample';
import { AdSample } from '../types/AdSample';
import { AnalyticsConfig } from '../types/AnalyticsConfig';
import { Sample } from '../types/Sample';
import { AdSample } from '../types/AdSample';
import { AdBreakSample } from '../types/AdBreakSample';
import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
import { Backend } from './Backend';
export declare class DebuggingBackend implements Backend {

@@ -8,0 +8,0 @@ private underlying;

@@ -1,6 +0,6 @@

import { Backend } from './Backend';
import { Sample } from '../types/Sample';
import { AdSample } from '../types/AdSample';
import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
import { AdBreakSample } from '../types/AdBreakSample';
import { AdSample } from '../types/AdSample';
import { Sample } from '../types/Sample';
import { Backend } from './Backend';
export declare class DisableBackend implements Backend {

@@ -7,0 +7,0 @@ private innerBackend;

@@ -0,8 +1,8 @@

import { DeferredLicenseLoadingAdapterAPI } from '../adapters/internal/DeferredLicenseLoadingAdapterAPI';
import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
import { AdBreakSample } from '../types/AdBreakSample';
import { AdSample } from '../types/AdSample';
import { LicenseCallFunc, LicensingRequest, LicensingResponse } from '../types/LicensingRequest';
import { Sample } from '../types/Sample';
import { Backend } from './Backend';
import { LicensingResponse, LicensingRequest, LicenseCallFunc } from '../types/LicensingRequest';
import { Sample } from '../types/Sample';
import { AdSample } from '../types/AdSample';
import { AdBreakSample } from '../types/AdBreakSample';
import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
import { DeferredLicenseLoadingAdapterAPI } from '../adapters/internal/DeferredLicenseLoadingAdapterAPI';
export declare class LicenseCheckingBackend implements Backend {

@@ -9,0 +9,0 @@ private licenseCall;

@@ -1,6 +0,6 @@

import { Backend } from './Backend';
import { Sample } from '../types/Sample';
import { AdSample } from '../types/AdSample';
import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
import { AdBreakSample } from '../types/AdBreakSample';
import { AdSample } from '../types/AdSample';
import { Sample } from '../types/Sample';
import { Backend } from './Backend';
export declare class NoOpBackend implements Backend {

@@ -7,0 +7,0 @@ sendRequest(sample: Sample): void;

@@ -0,6 +1,6 @@

import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
import { AdBreakSample } from '../types/AdBreakSample';
import { AdSample } from '../types/AdSample';
import { Sample } from '../types/Sample';
import { Backend } from './Backend';
import { Sample } from '../types/Sample';
import { AdSample } from '../types/AdSample';
import { AdBreakSample } from '../types/AdBreakSample';
import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
export declare class QueueBackend implements Backend {

@@ -7,0 +7,0 @@ queue: Sample[];

@@ -0,7 +1,7 @@

import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
import { AdBreakSample } from '../types/AdBreakSample';
import { AdSample } from '../types/AdSample';
import { Sample } from '../types/Sample';
import { AnalyticsCall } from '../utils/AnalyticsCall';
import { Backend } from './Backend';
import { AnalyticsCall } from '../utils/AnalyticsCall';
import { Sample } from '../types/Sample';
import { AdSample } from '../types/AdSample';
import { AdBreakSample } from '../types/AdBreakSample';
import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
export declare class RemoteBackend implements Backend {

@@ -8,0 +8,0 @@ private licenseKey;

@@ -0,6 +1,6 @@

import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
import { AdBreakSample } from '../types/AdBreakSample';
import { AdSample } from '../types/AdSample';
import { Sample } from '../types/Sample';
import { Backend } from './Backend';
import { Sample } from '../types/Sample';
import { AdSample } from '../types/AdSample';
import { AdBreakSample } from '../types/AdBreakSample';
import { AdAnalyticsSample } from '../types/AdAnalyticsSample';
export declare class SequenceNumberBackend implements Backend {

@@ -7,0 +7,0 @@ private underlying;

@@ -29,3 +29,2 @@ export declare enum Event {

END = "end",
METADATA_LOADED = "metadataLoaded",
SOURCE_UNLOADED = "sourceUnloaded",

@@ -32,0 +31,0 @@ MANUAL_SOURCE_CHANGE = "manualSourceChangeInitiated",

export interface DrmPerformanceInfo {
drmUsed: boolean;
drmInfo?: string;
drmTime?: number;
readonly drmType: string;
readonly drmLoadTime: number;
}
import { AnalyticsConfig } from './AnalyticsConfig';
import { Sample } from './Sample';
import { VideoStartFailedEvent } from './VideoStartFailedEvent';
import { Sample } from './Sample';
export interface StateMachineCallbacks {
setup: (time: number, state: string, event: string) => void;
startup: (time: number, state: string) => void;
updateSample: () => void;
playing: (time: number, state: string, event: string) => void;

@@ -9,0 +8,0 @@ heartbeat: (duration: number, state: string, payload: Pick<Sample, 'played'> | Pick<Sample, 'buffered'>) => void;

@@ -0,3 +1,3 @@

import { AdSample } from '../types/AdSample';
import { Sample } from '../types/Sample';
import { AdSample } from '../types/AdSample';
export declare class AnalyticsCall {

@@ -4,0 +4,0 @@ private analyticsServerUrl;

@@ -1,1 +0,1 @@

{"name":"bitmovin-analytics","version":"v2.14.0","description":"Bitmovin Analytics Collector collects monitoring devents from video players for the Bitmovin Analytics Service","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bitmovin/bitmovin-analytics-collector.git"},"main":"bitmovinanalytics.min.js","types":"bitmovin-analytics.d.ts","author":"Bitmovin Inc","homepage":"https://bitmovin.com/video-analytics/","maintainers":[{"name":"bitadmin","email":"admin@bitmovin.com"}]}
{"name":"bitmovin-analytics","version":"v2.15.0","description":"Bitmovin Analytics Collector collects monitoring devents from video players for the Bitmovin Analytics Service","license":"MIT","repository":{"type":"git","url":"git+https://github.com/bitmovin/bitmovin-analytics-collector.git"},"main":"bitmovinanalytics.min.js","types":"bitmovin-analytics.d.ts","author":"Bitmovin Inc","homepage":"https://bitmovin.com/video-analytics/","maintainers":[{"name":"bitadmin","email":"admin@bitmovin.com"}]}
# Bitmovin Analytics Collector
Instruments adaptive streaming video players and collects information to be sent to the Bitmovin Analytics service.
Instruments adaptive streaming video players and collects information to be sent to the Bitmovin Analytics service.

@@ -32,6 +32,6 @@ 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](https://bitmovin.com/dashboard/signup).

key: '<YOUR PLAYER KEY>',
analytics: {
analytics: {
key: '<YOUR ANALYITICS KEY>',
videoId: 'VIDEO_ID'
}
videoId: 'VIDEO_ID',
},
};

@@ -45,6 +45,17 @@

Using `script` tag:
```js
<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`:
```js
import {Player} from 'bitmovin-player/modules/bitmovinplayer-core';
import {PlayerModule as AnalyticsModule} from 'bitmovin-analytics';
Player.addModule(AnalyticsModule);
```
### Integrating 3rd Party Players

@@ -59,3 +70,3 @@

key: '<YOUR ANALYITICS KEY>',
videoId: 'VIDEO_ID'
videoId: 'VIDEO_ID',
};

@@ -62,0 +73,0 @@

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is not supported yet

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