bitmovin-analytics 2.43.0 → 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'));
@@ -189,6 +189,15 @@ export declare class Bitmovin8Adapter implements AdapterAPI {
189
189
  setCustomDataOnce(values: CustomDataValues): void;
190
190
  sourceChange(config: AnalyticsConfig): void;
191
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
+ };
192
201
  export declare const BitmovinPwxAnalyticsPackage: any;
193
202
  export declare class CAFv3Adapter implements AdapterAPI {
194
203
  private readonly internalAdapter;
@@ -300,15 +309,6 @@ declare enum Player {
300
309
  SHAKA = "shaka",
301
310
  VIDEOJS = "videojs"
302
311
  }
303
- export declare const PlayerModule: {
304
- readonly name: "analytics";
305
- readonly module: {
306
- readonly Analytics: typeof Bitmovin8Adapter;
307
- };
308
- readonly hooks: {
309
- readonly setup: (module: any, player: any) => Promise<any>;
310
- };
311
- };
312
312
  declare const VERSION: string;
313
313
  export declare const adapters: {
314
314
  AmazonIVSAdapter: typeof AmazonIVSAdapter;