bitmovin-analytics 2.42.4 → 2.43.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -27,7 +27,7 @@ A minimal example:
27
27
  const configWithAnalytics = {
28
28
  key: '<YOUR PLAYER KEY>',
29
29
  analytics: {
30
- key: '<YOUR ANALYITICS KEY>',
30
+ key: '<YOUR ANALYTICS KEY>',
31
31
  videoId: 'VIDEO_ID',
32
32
  },
33
33
  };
@@ -41,7 +41,7 @@ To ensure you are running a specific version (e.g. when including the `bitmovin-
41
41
  Using `script` tag:
42
42
 
43
43
  ```js
44
- <script type="text/javascript" src="https://cdn.bitmovin.com/analytics/web/2/bitmovinanalytics.min.js"></script>;
44
+ <script type="text/javascript" src="https://cdn.bitmovin.com/analytics/web/2/bitmovin-analytics.js"></script>;
45
45
  bitmovin.player.Player.addModule(bitmovin.analytics.PlayerModule);
46
46
  ```
47
47
 
@@ -55,18 +55,18 @@ Player.addModule(AnalyticsModule);
55
55
 
56
56
  ### Integrating 3rd Party Players
57
57
 
58
- To integrate other players pick the appropriate adapter (`HlsAdapter`, `VideojsAdapter`, `ShakaAdapter`, `DashjsAdapter` or `HTMLVideoElementAdapter`) and instantiate the adapter by passing the player instance.
58
+ To integrate other players pick the appropriate adapter (`AmazonIVSAdapter`, `CAFv3Adapter`, `DashjsAdapter`, `HlsAdapter`, `ShakaAdapter`, `VideojsAdapter` or `HTMLVideoElementAdapter`) and instantiate the adapter by passing the player instance.
59
59
 
60
60
  An example for HLS.js:
61
61
 
62
62
  ```js
63
63
  const analyticsConfig = {
64
- key: '<YOUR ANALYITICS KEY>',
64
+ key: '<YOUR ANALYTICS KEY>',
65
65
  videoId: 'VIDEO_ID',
66
66
  };
67
67
 
68
68
  const player = new Hls();
69
- const analytics = new bitmovin.analytics.adapters.HlsAdapter(analyticsConfig, player);
69
+ const analytics = new bitmovin.analytics.HlsAdapter(analyticsConfig, player);
70
70
 
71
71
  player.loadSource('https://path.to/your/stream.m3u8');
72
72
  player.attachMedia(document.getElementById('video'));
@@ -54,6 +54,26 @@ export interface AnalyticsConfig {
54
54
  customData28?: any;
55
55
  customData29?: any;
56
56
  customData30?: any;
57
+ customData31?: any;
58
+ customData32?: any;
59
+ customData33?: any;
60
+ customData34?: any;
61
+ customData35?: any;
62
+ customData36?: any;
63
+ customData37?: any;
64
+ customData38?: any;
65
+ customData39?: any;
66
+ customData40?: any;
67
+ customData41?: any;
68
+ customData42?: any;
69
+ customData43?: any;
70
+ customData44?: any;
71
+ customData45?: any;
72
+ customData46?: any;
73
+ customData47?: any;
74
+ customData48?: any;
75
+ customData49?: any;
76
+ customData50?: any;
57
77
  experimentName?: string;
58
78
  }
59
79
  export interface CustomDataValues {
@@ -87,6 +107,26 @@ export interface CustomDataValues {
87
107
  customData28?: string;
88
108
  customData29?: string;
89
109
  customData30?: string;
110
+ customData31?: string;
111
+ customData32?: string;
112
+ customData33?: string;
113
+ customData34?: string;
114
+ customData35?: string;
115
+ customData36?: string;
116
+ customData37?: string;
117
+ customData38?: string;
118
+ customData39?: string;
119
+ customData40?: string;
120
+ customData41?: string;
121
+ customData42?: string;
122
+ customData43?: string;
123
+ customData44?: string;
124
+ customData45?: string;
125
+ customData46?: string;
126
+ customData47?: string;
127
+ customData48?: string;
128
+ customData49?: string;
129
+ customData50?: string;
90
130
  experimentName?: string;
91
131
  }
92
132
  /**
@@ -149,6 +189,15 @@ export declare class Bitmovin8Adapter implements AdapterAPI {
149
189
  setCustomDataOnce(values: CustomDataValues): void;
150
190
  sourceChange(config: AnalyticsConfig): void;
151
191
  }
192
+ export declare const PlayerModule: {
193
+ readonly name: "analytics";
194
+ readonly module: {
195
+ readonly Analytics: typeof Bitmovin8Adapter;
196
+ };
197
+ readonly hooks: {
198
+ readonly setup: (module: any, player: any) => Promise<any>;
199
+ };
200
+ };
152
201
  export declare const BitmovinPwxAnalyticsPackage: any;
153
202
  export declare class CAFv3Adapter implements AdapterAPI {
154
203
  private readonly internalAdapter;
@@ -260,15 +309,6 @@ declare enum Player {
260
309
  SHAKA = "shaka",
261
310
  VIDEOJS = "videojs"
262
311
  }
263
- export declare const PlayerModule: {
264
- readonly name: "analytics";
265
- readonly module: {
266
- readonly Analytics: typeof Bitmovin8Adapter;
267
- };
268
- readonly hooks: {
269
- readonly setup: (module: any, player: any) => Promise<any>;
270
- };
271
- };
272
312
  declare const VERSION: string;
273
313
  export declare const adapters: {
274
314
  AmazonIVSAdapter: typeof AmazonIVSAdapter;