bitmovin-analytics 2.27.3 → 2.28.0
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/bitmovinanalytics.min.js +2 -2
- package/bitmovinanalytics.min.js.map +1 -1
- package/js/adapters/ShakaAdapter.d.ts +1 -0
- package/js/adapters/internal/Bitmovin7InternalAdapter.d.ts +2 -1
- package/js/adapters/internal/Bitmovin8InternalAdapter.d.ts +2 -1
- package/js/adapters/internal/CAFv3InternalAdapter.d.ts +3 -1
- package/js/adapters/internal/HTML5InternalAdapter.d.ts +3 -1
- package/js/adapters/internal/HlsInternalAdapter.d.ts +1 -0
- package/js/adapters/internal/InternalAdapterAPI.d.ts +2 -1
- package/js/adapters/internal/ShakaInternalAdapter.d.ts +1 -1
- package/js/adapters/internal/VideojsInternalAdapter.d.ts +2 -1
- package/js/analyticsStateMachines/AnalyticsStateMachine.d.ts +2 -1
- package/js/analyticsStateMachines/Bitmovin7AnalyticsStateMachine.d.ts +2 -1
- package/js/analyticsStateMachines/Bitmovin8AnalyticsStateMachine.d.ts +2 -1
- package/js/analyticsStateMachines/HTML5AnalyticsStateMachine.d.ts +2 -1
- package/js/analyticsStateMachines/VideoJsAnalyticsStateMachine.d.ts +2 -1
- package/js/types/AnalyticsConfig.d.ts +23 -0
- package/package.json +1 -1
|
@@ -2,6 +2,7 @@ import { Analytics } from '../../core/Analytics';
|
|
|
2
2
|
import { Player } from '../../enums/Player';
|
|
3
3
|
import { Feature } from '../../features/Feature';
|
|
4
4
|
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
5
|
+
import { AnalyticsConfig } from '../../types/AnalyticsConfig';
|
|
5
6
|
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
6
7
|
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
|
|
7
8
|
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer';
|
|
@@ -20,7 +21,7 @@ export declare class Bitmovin7InternalAdapter extends InternalAdapter implements
|
|
|
20
21
|
getDrmPerformanceInfo: () => DrmPerformanceInfo | undefined;
|
|
21
22
|
getCurrentPlaybackInfo(): PlaybackInfo;
|
|
22
23
|
register(): void;
|
|
23
|
-
sourceChange(config:
|
|
24
|
+
sourceChange(config: AnalyticsConfig, timestamp: number): void;
|
|
24
25
|
protected get currentTime(): number;
|
|
25
26
|
private applySourceProperties;
|
|
26
27
|
private applySubtitleProperties;
|
|
@@ -4,6 +4,7 @@ import VideoCompletionTracker from '../../core/VideoCompletionTracker';
|
|
|
4
4
|
import { Player } from '../../enums/Player';
|
|
5
5
|
import { Feature } from '../../features/Feature';
|
|
6
6
|
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
7
|
+
import { AnalyticsConfig } from '../../types/AnalyticsConfig';
|
|
7
8
|
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
8
9
|
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo';
|
|
9
10
|
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
|
|
@@ -39,7 +40,7 @@ export declare class Bitmovin8InternalAdapter extends InternalAdapter implements
|
|
|
39
40
|
getAutoPlay(): boolean;
|
|
40
41
|
getDrmPerformanceInfo: () => DrmPerformanceInfo | undefined;
|
|
41
42
|
getCurrentPlaybackInfo(): PlaybackInfo;
|
|
42
|
-
sourceChange(config:
|
|
43
|
+
sourceChange(config: AnalyticsConfig, timestamp: number): void;
|
|
43
44
|
onError(): void;
|
|
44
45
|
private registerPlayerEventListeners;
|
|
45
46
|
private registerUnloadEventListeners;
|
|
@@ -2,6 +2,7 @@ import { Analytics } from '../../core/Analytics';
|
|
|
2
2
|
import { Player } from '../../enums/Player';
|
|
3
3
|
import { Feature } from '../../features/Feature';
|
|
4
4
|
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
5
|
+
import { AnalyticsConfig } from '../../types/AnalyticsConfig';
|
|
5
6
|
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
6
7
|
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
|
|
7
8
|
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer';
|
|
@@ -23,9 +24,10 @@ export declare class CAFv3InternalAdapter extends InternalAdapter implements Int
|
|
|
23
24
|
getPlayerTech: () => string;
|
|
24
25
|
getAutoPlay: () => any;
|
|
25
26
|
getDrmPerformanceInfo: () => DrmPerformanceInfo | undefined;
|
|
26
|
-
sourceChange(config:
|
|
27
|
+
sourceChange(config: AnalyticsConfig, timestamp: number): void;
|
|
27
28
|
getCurrentPlaybackInfo(): PlaybackInfo;
|
|
28
29
|
register(): void;
|
|
29
30
|
onPaused(currentTime?: number): void;
|
|
30
31
|
protected get currentTime(): number;
|
|
32
|
+
private getIsLive;
|
|
31
33
|
}
|
|
@@ -3,6 +3,7 @@ import VideoCompletionTracker from '../../core/VideoCompletionTracker';
|
|
|
3
3
|
import { Player } from '../../enums/Player';
|
|
4
4
|
import { Feature } from '../../features/Feature';
|
|
5
5
|
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
6
|
+
import { AnalyticsConfig } from '../../types/AnalyticsConfig';
|
|
6
7
|
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
7
8
|
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
|
|
8
9
|
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer';
|
|
@@ -98,8 +99,9 @@ export declare abstract class HTML5InternalAdapter extends InternalAdapter imple
|
|
|
98
99
|
onPageClose(): void;
|
|
99
100
|
checkPlayheadProgress(): void;
|
|
100
101
|
checkQualityLevelAttributes(silent?: boolean): void;
|
|
101
|
-
sourceChange(config:
|
|
102
|
+
sourceChange(config: AnalyticsConfig, timestamp: number): void;
|
|
102
103
|
getSelectedSubtitleFromMediaElement(mediaElement: any): SubtitleInfo | undefined;
|
|
103
104
|
protected initializeStateMachine(): void;
|
|
105
|
+
private wrapMediaElementLoad;
|
|
104
106
|
private checkSeeking;
|
|
105
107
|
}
|
|
@@ -48,6 +48,7 @@ export declare class HlsInternalAdapter extends HTML5InternalAdapter implements
|
|
|
48
48
|
onSubtitleLanguageSwitched(event: string, data: {
|
|
49
49
|
id: string;
|
|
50
50
|
}): void;
|
|
51
|
+
private onDestroying;
|
|
51
52
|
/**
|
|
52
53
|
* returns mapped error code for Hlsjs ErrorTypes
|
|
53
54
|
* @param type one of the ErrorTypes according to https://github.com/video-dev/hls.js/blob/master/src/errors.ts
|
|
@@ -2,6 +2,7 @@ import { Analytics } from '../../core/Analytics';
|
|
|
2
2
|
import VideoCompletionTracker from '../../core/VideoCompletionTracker';
|
|
3
3
|
import { Feature } from '../../features/Feature';
|
|
4
4
|
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
5
|
+
import { AnalyticsConfig } from '../../types/AnalyticsConfig';
|
|
5
6
|
import { CustomDataValues } from '../../types/CustomDataValues';
|
|
6
7
|
import { DownloadSpeedInfo } from '../../types/DownloadSpeedInfo';
|
|
7
8
|
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
|
|
@@ -28,7 +29,7 @@ export interface InternalAdapterAPI extends DeferredLicenseLoadingAdapterAPI {
|
|
|
28
29
|
getDrmPerformanceInfo(): DrmPerformanceInfo | undefined;
|
|
29
30
|
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
|
|
30
31
|
getCurrentPlaybackInfo(): PlaybackInfo;
|
|
31
|
-
sourceChange(config:
|
|
32
|
+
sourceChange(config: AnalyticsConfig, timestamp: number): any;
|
|
32
33
|
clearValues(): void;
|
|
33
34
|
onError?(): void;
|
|
34
35
|
setCustomData(values: CustomDataValues): void;
|
|
@@ -14,7 +14,6 @@ export declare class ShakaInternalAdapter extends HTML5InternalAdapter implement
|
|
|
14
14
|
* @override
|
|
15
15
|
*/
|
|
16
16
|
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
|
|
17
|
-
onUnloading: () => void;
|
|
18
17
|
getPlayerName: () => Player;
|
|
19
18
|
getPlayerVersion: () => any;
|
|
20
19
|
isLive: () => any;
|
|
@@ -33,4 +32,5 @@ export declare class ShakaInternalAdapter extends HTML5InternalAdapter implement
|
|
|
33
32
|
* @returns {QualityLevelInfo}
|
|
34
33
|
*/
|
|
35
34
|
getCurrentQualityLevelInfo(): QualityLevelInfo | null;
|
|
35
|
+
private onUnloading;
|
|
36
36
|
}
|
|
@@ -4,6 +4,7 @@ import VideoCompletionTracker from '../../core/VideoCompletionTracker';
|
|
|
4
4
|
import { Player } from '../../enums/Player';
|
|
5
5
|
import { Feature } from '../../features/Feature';
|
|
6
6
|
import { FeatureConfig } from '../../features/FeatureConfig';
|
|
7
|
+
import { AnalyticsConfig } from '../../types/AnalyticsConfig';
|
|
7
8
|
import { AnalyticsStateMachineOptions } from '../../types/AnalyticsStateMachineOptions';
|
|
8
9
|
import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
|
|
9
10
|
import { FeatureConfigContainer } from '../../types/FeatureConfigContainer';
|
|
@@ -32,7 +33,7 @@ export declare class VideojsInternalAdapter extends InternalAdapter implements I
|
|
|
32
33
|
getCurrentPlaybackInfo(): PlaybackInfo;
|
|
33
34
|
getCurrentQualityLevelInfo(): QualityLevelInfo | null;
|
|
34
35
|
register(): void;
|
|
35
|
-
sourceChange(config:
|
|
36
|
+
sourceChange(config: AnalyticsConfig, timestamp: number): void;
|
|
36
37
|
protected get currentTime(): number;
|
|
37
38
|
private getSelectedAudioTrackLanguage;
|
|
38
39
|
private getSubtitleInfo;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import { EventMap } from '../enums/Event';
|
|
2
2
|
import { VideoStartFailedReason } from '../enums/VideoStartFailedReason';
|
|
3
|
+
import { AnalyticsConfig } from '../types/AnalyticsConfig';
|
|
3
4
|
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
|
|
4
5
|
import * as ErrorData from '../types/EventData';
|
|
5
6
|
import { NoExtraProperties } from '../types/NoExtraProperties';
|
|
@@ -19,7 +20,7 @@ export declare abstract class AnalyticsStateMachine {
|
|
|
19
20
|
constructor(stateMachineCallbacks: StateMachineCallbacks, opts: AnalyticsStateMachineOptions);
|
|
20
21
|
abstract createStateMachine(opts: AnalyticsStateMachineOptions): StateMachine.StateMachine;
|
|
21
22
|
abstract callEvent<StatemachineEvent extends keyof EventMap, EventData extends EventMap[StatemachineEvent]>(eventType: StatemachineEvent, eventObject: NoExtraProperties<EventMap[StatemachineEvent], EventData>, timestamp: number): void;
|
|
22
|
-
abstract sourceChange(config:
|
|
23
|
+
abstract sourceChange(config: AnalyticsConfig, timestamp: number, currentTime?: number): void;
|
|
23
24
|
get currentState(): string;
|
|
24
25
|
resetIntervals(): void;
|
|
25
26
|
protected startRebufferingHeartbeatInterval(reset?: boolean): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as StateMachine from 'javascript-state-machine';
|
|
2
2
|
import { EventMap } from '../enums/Event';
|
|
3
|
+
import { AnalyticsConfig } from '../types/AnalyticsConfig';
|
|
3
4
|
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
|
|
4
5
|
import { NoExtraProperties } from '../types/NoExtraProperties';
|
|
5
6
|
import { StateMachineCallbacks } from '../types/StateMachineCallbacks';
|
|
@@ -18,7 +19,7 @@ export declare class Bitmovin7AnalyticsStateMachine extends AnalyticsStateMachin
|
|
|
18
19
|
private seekEnded;
|
|
19
20
|
constructor(stateMachineCallbacks: StateMachineCallbacks, opts: AnalyticsStateMachineOptions);
|
|
20
21
|
getAllStates(): any[];
|
|
21
|
-
sourceChange: (config:
|
|
22
|
+
sourceChange: (config: AnalyticsConfig, timestamp: number, currentTime?: number | undefined) => void;
|
|
22
23
|
createStateMachine(opts: AnalyticsStateMachineOptions): StateMachine.StateMachine;
|
|
23
24
|
callEvent<StatemachineEvent extends keyof EventMap, EventData extends EventMap[StatemachineEvent]>(eventType: StatemachineEvent, eventObject: NoExtraProperties<EventMap[StatemachineEvent], EventData>, timestamp: number): void;
|
|
24
25
|
addStatesToLog(event: string | undefined, from: string | undefined, to: string | undefined, timestamp: number, eventObject: any): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as StateMachine from 'javascript-state-machine';
|
|
2
2
|
import { EventMap } from '../enums/Event';
|
|
3
|
+
import { AnalyticsConfig } from '../types/AnalyticsConfig';
|
|
3
4
|
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
|
|
4
5
|
import { NoExtraProperties } from '../types/NoExtraProperties';
|
|
5
6
|
import { StateMachineCallbacks } from '../types/StateMachineCallbacks';
|
|
@@ -16,7 +17,7 @@ export declare class Bitmovin8AnalyticsStateMachine extends AnalyticsStateMachin
|
|
|
16
17
|
constructor(stateMachineCallbacks: StateMachineCallbacks, opts: AnalyticsStateMachineOptions);
|
|
17
18
|
getAllStatesBut(states: string[]): any[];
|
|
18
19
|
getAllStates(): any[];
|
|
19
|
-
sourceChange: (config:
|
|
20
|
+
sourceChange: (config: AnalyticsConfig, timestamp: number, currentTime?: number | undefined) => void;
|
|
20
21
|
createStateMachine(opts: AnalyticsStateMachineOptions): StateMachine.StateMachine;
|
|
21
22
|
callEvent<StatemachineEvent extends keyof EventMap, EventData extends EventMap[StatemachineEvent]>(eventType: StatemachineEvent, eventObject: NoExtraProperties<EventMap[StatemachineEvent], EventData>, timestamp: number): void;
|
|
22
23
|
addStatesToLog(event: string | undefined, from: string | undefined, to: string | undefined, timestamp: number, eventObject: any): void;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as StateMachine from 'javascript-state-machine';
|
|
2
2
|
import { EventMap } from '../enums/Event';
|
|
3
|
+
import { AnalyticsConfig } from '../types/AnalyticsConfig';
|
|
3
4
|
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
|
|
4
5
|
import { NoExtraProperties } from '../types/NoExtraProperties';
|
|
5
6
|
import { StateMachineCallbacks } from '../types/StateMachineCallbacks';
|
|
@@ -11,5 +12,5 @@ export declare class HTML5AnalyticsStateMachine extends AnalyticsStateMachine {
|
|
|
11
12
|
getAllStatesBut(states: string[]): any[];
|
|
12
13
|
createStateMachine(opts: AnalyticsStateMachineOptions): StateMachine.StateMachine;
|
|
13
14
|
callEvent<StatemachineEvent extends keyof EventMap, EventData extends EventMap[StatemachineEvent]>(eventType: StatemachineEvent, eventObject: NoExtraProperties<EventMap[StatemachineEvent], EventData>, timestamp: number): void;
|
|
14
|
-
sourceChange: (config:
|
|
15
|
+
sourceChange: (config: AnalyticsConfig, timestamp: number, currentTime?: number | undefined) => void;
|
|
15
16
|
}
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as StateMachine from 'javascript-state-machine';
|
|
2
2
|
import { EventMap } from '../enums/Event';
|
|
3
|
+
import { AnalyticsConfig } from '../types/AnalyticsConfig';
|
|
3
4
|
import { AnalyticsStateMachineOptions } from '../types/AnalyticsStateMachineOptions';
|
|
4
5
|
import { NoExtraProperties } from '../types/NoExtraProperties';
|
|
5
6
|
import { StateMachineCallbacks } from '../types/StateMachineCallbacks';
|
|
@@ -13,5 +14,5 @@ export declare class VideojsAnalyticsStateMachine extends AnalyticsStateMachine
|
|
|
13
14
|
getAllStatesBut(state: string): any[];
|
|
14
15
|
createStateMachine(opts: AnalyticsStateMachineOptions): StateMachine.StateMachine;
|
|
15
16
|
callEvent<StatemachineEvent extends keyof EventMap, EventData extends EventMap[StatemachineEvent]>(eventType: StatemachineEvent, eventObject: NoExtraProperties<EventMap[StatemachineEvent], EventData>, timestamp: number): void;
|
|
16
|
-
sourceChange: (config:
|
|
17
|
+
sourceChange: (config: AnalyticsConfig, timestamp: number, currentTime?: number | undefined) => void;
|
|
17
18
|
}
|
|
@@ -23,6 +23,29 @@ export interface AnalyticsConfig {
|
|
|
23
23
|
customData5?: any;
|
|
24
24
|
customData6?: any;
|
|
25
25
|
customData7?: any;
|
|
26
|
+
customData8?: any;
|
|
27
|
+
customData9?: any;
|
|
28
|
+
customData10?: any;
|
|
29
|
+
customData11?: any;
|
|
30
|
+
customData12?: any;
|
|
31
|
+
customData13?: any;
|
|
32
|
+
customData14?: any;
|
|
33
|
+
customData15?: any;
|
|
34
|
+
customData16?: any;
|
|
35
|
+
customData17?: any;
|
|
36
|
+
customData18?: any;
|
|
37
|
+
customData19?: any;
|
|
38
|
+
customData20?: any;
|
|
39
|
+
customData21?: any;
|
|
40
|
+
customData22?: any;
|
|
41
|
+
customData23?: any;
|
|
42
|
+
customData24?: any;
|
|
43
|
+
customData25?: any;
|
|
44
|
+
customData26?: any;
|
|
45
|
+
customData27?: any;
|
|
46
|
+
customData28?: any;
|
|
47
|
+
customData29?: any;
|
|
48
|
+
customData30?: any;
|
|
26
49
|
experimentName?: string;
|
|
27
50
|
isLive?: boolean;
|
|
28
51
|
config?: CollectorConfig;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"bitmovin-analytics","version":"v2.
|
|
1
|
+
{"name":"bitmovin-analytics","version":"v2.28.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"}]}
|