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
135
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.32.5 to 2.33.0

43

bitmovin-analytics.d.ts

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

declare const VERSION: string;

@@ -94,2 +92,5 @@ export interface AnalyticsDebugConfig {

}
/**
* Minimal set of shared methods among all collectors
*/
export interface AdapterAPI {

@@ -279,3 +280,3 @@ getCurrentImpressionId: () => string | undefined;

}
export interface ErrorEvent extends AnalyticsEventBase {
interface ErrorEvent$1 extends AnalyticsEventBase {
code: number | undefined;

@@ -365,2 +366,3 @@ message: string | undefined;

}
export type HeartbeatPayload = Pick<Sample, "played"> | Pick<Sample, "buffered"> | Pick<Sample, "paused">;
export interface StateMachineCallbacks {

@@ -370,3 +372,3 @@ setup: (duration: number, state: string) => void;

playing: (duration: number, state: string) => void;
heartbeat: (duration: number, state: string, payload: Pick<Sample, "played"> | Pick<Sample, "buffered">) => void;
heartbeat: (duration: number, state: string, payload: HeartbeatPayload) => void;
qualitychange: (duration: number, state: string) => void;

@@ -382,3 +384,3 @@ qualitychange_pause: (duration: number, state: string) => void;

rebuffering: (duration: number, state: string) => void;
error: (event: Readonly<ErrorEvent>) => void;
error: (event: Readonly<ErrorEvent$1>) => void;
end: (duration: number, state: string) => void;

@@ -390,4 +392,4 @@ unload: (duration: number, state: string) => void;

subtitle_changing: () => void;
setVideoTimeEndFromEvent: (event: any) => void;
setVideoTimeStartFromEvent: (event: any) => void;
setVideoTimeEndFromEvent: (event: AnalyticsEventBase | any) => void;
setVideoTimeStartFromEvent: (event: AnalyticsEventBase | any) => void;
videoStartFailed: (event: Readonly<VideoStartFailedEvent>, sendRequest: boolean) => void;

@@ -578,3 +580,3 @@ source_changing: (duration: number, state: string, event: any) => void;

protected markPlayerInstanceAsAugmented(player: any): void;
private guardAgainstNotInitializedAnalytics;
protected guardAgainstNotInitializedAnalytics(): boolean;
}

@@ -587,2 +589,5 @@ export declare class AmazonIVSAdapter extends Adapter implements AdapterAPI {

constructor(player: any, opts?: AnalyticsStateMachineOptions);
/**
* intercept `player.load` with automated sourceChange handling
*/
private wrapPlayerLoad;

@@ -596,8 +601,24 @@ }

}
export declare class HTMLVideoElementAdapter extends Adapter implements AdapterAPI {
constructor(config: AnalyticsConfig, player: HTMLVideoElement, opts?: AnalyticsStateMachineOptions);
}
export declare class HlsAdapter extends Adapter implements AdapterAPI {
constructor(config: AnalyticsConfig, player: any, opts?: AnalyticsStateMachineOptions);
}
export declare class HTMLVideoElementAdapter extends Adapter implements AdapterAPI {
constructor(config: AnalyticsConfig, player: HTMLVideoElement, opts?: AnalyticsStateMachineOptions, sourceMetadata?: {
streamFormat?: string;
audioCodec?: string;
videoCodec?: string;
audioLanguage?: string;
});
get sessionMetadata(): {
readonly setAudioLanguage: (audioLanguage: string) => void;
readonly setSubtitleEnabled: (enabled: boolean) => void;
readonly setSubtitleLanguage: (subtitleLanguage: string) => void;
};
sourceChange(config: AnalyticsConfig, sourceMetadata?: {
streamFormat?: string;
audioCodec?: string;
videoCodec?: string;
audioLanguage?: string;
}): void;
}
export declare class ShakaAdapter extends Adapter implements AdapterAPI {

@@ -604,0 +625,0 @@ constructor(config: AnalyticsConfig, player: any, opts?: AnalyticsStateMachineOptions);

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

{"name":"bitmovin-analytics","version":"v2.32.5","description":"Bitmovin Analytics Collector collects monitoring events from video players for the Bitmovin Analytics Service","license":"MIT","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.33.0","description":"Bitmovin Analytics Collector collects monitoring events from video players for the Bitmovin Analytics Service","license":"MIT","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"}]}

@@ -75,8 +75,8 @@ # Bitmovin Analytics Collector

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`
Before changing the video source in the player, you need to call `sourceChange()` on the associated analytics adapter. You can pass new configuration properties to this method like `videoId` or `videoTitle`
```js
analytics.sourceChange({
videoID: 'new-video-id',
videoTitle: 'New Video',
videoId: 'new-video-id',
title: 'New Video',
});

@@ -83,0 +83,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