bitmovin-analytics 2.26.3 → 2.27.2

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.
@@ -6,6 +6,7 @@ export declare abstract class Adapter {
6
6
  protected analytics: Analytics;
7
7
  protected internalAdapter: InternalAdapterAPI;
8
8
  getCurrentImpressionId(): string | undefined;
9
+ getUserId(): string | undefined;
9
10
  setCustomData(values: CustomDataValues): void;
10
11
  setCustomDataOnce(values: CustomDataValues): void;
11
12
  sourceChange(config: AnalyticsConfig): void;
@@ -25,9 +25,11 @@ export declare class Bitmovin8InternalAdapter extends InternalAdapter implements
25
25
  private segmentTracker;
26
26
  private _adModule?;
27
27
  private lastTrackedCurrentTime;
28
+ private videoDuration;
28
29
  private httpRequestTrackingAdapter;
29
30
  constructor(player: PlayerAPI, opts?: AnalyticsStateMachineOptions);
30
31
  protected get currentTime(): number;
32
+ protected get isAdPlaying(): boolean;
31
33
  initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
32
34
  clearValues(): void;
33
35
  clearSegments(): void;
@@ -34,6 +34,7 @@ export declare abstract class HTML5InternalAdapter extends InternalAdapter imple
34
34
  private previousClientTime;
35
35
  private needsReadyEvent;
36
36
  private mediaElementSet;
37
+ private previousMutedValue;
37
38
  constructor(mediaElement: HTMLVideoElement | null, opts?: AnalyticsStateMachineOptions);
38
39
  getPlayerName: () => Player;
39
40
  getPlayerTech: () => string;
@@ -48,4 +48,5 @@ export declare abstract class InternalAdapter {
48
48
  protected setPreviousVideoBitrate(newBitrate: number): void;
49
49
  protected shouldAllowAudioQualityChange(newBitrate: number | undefined): boolean;
50
50
  protected setPreviousAudioBitrate(newBitrate: number): void;
51
+ protected isAudioMuted(playerIsMuted: boolean, currentVolume: number): boolean;
51
52
  }
@@ -19,6 +19,7 @@ export declare class VideojsInternalAdapter extends InternalAdapter implements I
19
19
  private selectedAudioLanguage?;
20
20
  private onBeforeUnLoadEvent;
21
21
  private previousTime;
22
+ private previousMutedValue;
22
23
  constructor(player: videojs.default.Player, opts?: AnalyticsStateMachineOptions);
23
24
  initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
24
25
  getPlayerVersion: () => any;
@@ -35,9 +36,16 @@ export declare class VideojsInternalAdapter extends InternalAdapter implements I
35
36
  protected get currentTime(): number;
36
37
  private getSelectedAudioTrackLanguage;
37
38
  private getSubtitleInfo;
39
+ private getMediaAttributes;
38
40
  private getCodecInfo;
39
41
  }
40
42
  export interface CodecInfo {
41
43
  audioCodec: string | undefined;
42
44
  videoCodec: string | undefined;
43
45
  }
46
+ export interface MediaAttributes {
47
+ codecs: string | undefined;
48
+ bitrate: number | undefined;
49
+ width: number | undefined;
50
+ height: number | undefined;
51
+ }
@@ -12,6 +12,7 @@ export declare class Bitmovin8AnalyticsStateMachine extends AnalyticsStateMachin
12
12
  private seekedTimestamp;
13
13
  private seekStarted;
14
14
  private seekEnded;
15
+ private lastTrackedVideoEndObject;
15
16
  constructor(stateMachineCallbacks: StateMachineCallbacks, opts: AnalyticsStateMachineOptions);
16
17
  getAllStatesBut(states: string[]): any[];
17
18
  getAllStates(): any[];
@@ -2,6 +2,7 @@ import { AnalyticsConfig } from '../types/AnalyticsConfig';
2
2
  import { CustomDataValues } from '../types/CustomDataValues';
3
3
  export interface AdapterAPI {
4
4
  getCurrentImpressionId: () => string | undefined;
5
+ getUserId: () => string | undefined;
5
6
  setCustomData: (values: CustomDataValues) => void;
6
7
  setCustomDataOnce: (values: CustomDataValues) => void;
7
8
  sourceChange: (config: AnalyticsConfig) => void;
@@ -53,6 +53,7 @@ export declare class Analytics {
53
53
  setCustomDataOnce: (values: CustomDataValues) => void;
54
54
  setCustomData: (values: CustomDataValues) => void;
55
55
  getCurrentImpressionId: () => string | undefined;
56
+ getUserId: () => string;
56
57
  setDuration(duration: number): void;
57
58
  setState(state: string): void;
58
59
  setPlaybackVideoPropertiesFromEvent(event: any): void;
@@ -78,6 +79,8 @@ export declare class Analytics {
78
79
  private createBackend;
79
80
  private getDomain;
80
81
  private setCompletionValues;
82
+ private setVideoTimeStart;
83
+ private setVideoTimeEnd;
81
84
  private sendQualityChange;
82
85
  private clearResetQualityChangeInterval;
83
86
  }
package/package.json CHANGED
@@ -1 +1 @@
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"}]}
1
+ {"name":"bitmovin-analytics","version":"v2.27.2","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"}]}