bitmovin-analytics 2.26.0 → 2.26.3

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.
@@ -4,4 +4,5 @@ import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOpti
4
4
  import { Adapter } from './Adapter';
5
5
  export declare class ShakaAdapter extends Adapter implements AdapterAPI {
6
6
  constructor(config: AnalyticsConfig, player: any, opts?: AnalyticsStateMachineOptions);
7
+ private wrapPlayerLoad;
7
8
  }
@@ -11,12 +11,10 @@ import { InternalAdapterAPI } from './InternalAdapterAPI';
11
11
  export declare class CAFv3InternalAdapter extends InternalAdapter implements InternalAdapterAPI {
12
12
  protected context: any;
13
13
  private playerManager;
14
- private queueManager;
15
14
  private mediaInformation;
16
15
  private activeAudioTrack;
17
16
  private activeTextTracks;
18
17
  private currentItem;
19
- private currentItemIndex;
20
18
  private isSeeking;
21
19
  constructor(context: any, opts?: AnalyticsStateMachineOptions);
22
20
  initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
@@ -96,11 +96,9 @@ export declare abstract class HTML5InternalAdapter extends InternalAdapter imple
96
96
  registerWindowEvents(): void;
97
97
  onPageClose(): void;
98
98
  checkPlayheadProgress(): void;
99
- /**
100
- * @param {boolean} silent
101
- */
102
99
  checkQualityLevelAttributes(silent?: boolean): void;
103
100
  sourceChange(config: any, timestamp: number): void;
104
101
  getSelectedSubtitleFromMediaElement(mediaElement: any): SubtitleInfo | undefined;
102
+ protected initializeStateMachine(): void;
105
103
  private checkSeeking;
106
104
  }
@@ -14,6 +14,7 @@ export declare class ShakaInternalAdapter extends HTML5InternalAdapter implement
14
14
  * @override
15
15
  */
16
16
  initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
17
+ onUnloading: () => void;
17
18
  getPlayerName: () => Player;
18
19
  getPlayerVersion: () => any;
19
20
  isLive: () => any;
@@ -1,5 +1,6 @@
1
1
  import { AnalyticsEventBase, AudioChangeEvent, ErrorEvent, SourceChangeEvent, VideoChangeEvent } from '../types/EventData';
2
2
  export declare enum Event {
3
+ SETUP = "setup",
3
4
  READY = "ready",
4
5
  SOURCE_LOADED = "sourceLoaded",
5
6
  PLAY = "play",
@@ -34,6 +35,7 @@ export declare enum Event {
34
35
  PLAYLIST_TRANSITION = "playlistTransition"
35
36
  }
36
37
  export interface EventMap {
38
+ [Event.SETUP]: AnalyticsEventBase;
37
39
  [Event.READY]: AnalyticsEventBase;
38
40
  [Event.SOURCE_LOADED]: AnalyticsEventBase;
39
41
  [Event.PLAY]: AnalyticsEventBase;
@@ -7,6 +7,9 @@ export declare const validNumber: (num: any) => boolean;
7
7
  export declare const sanitizePath: (path: string) => string;
8
8
  export declare const calculateTimeWithUndefined: (time?: number | undefined) => number | undefined;
9
9
  export declare const calculateTime: (time: number) => number;
10
+ /**
11
+ * Return the current time in milliseconds.
12
+ */
10
13
  export declare const getCurrentTimestamp: () => number;
11
14
  export declare const getDurationFromTimestampToNow: (timestamp: number) => number;
12
15
  export declare const generateUUID: () => string;
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"bitmovin-analytics","version":"v2.26.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"}]}
1
+ {"name":"bitmovin-analytics","version":"v2.26.3","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"}]}