bitmovin-analytics 2.26.1 → 2.27.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/Adapter.d.ts +1 -0
- package/js/adapters/internal/HTML5InternalAdapter.d.ts +1 -3
- package/js/api/AdapterAPI.d.ts +1 -0
- package/js/core/Analytics.d.ts +1 -0
- package/js/enums/Event.d.ts +2 -0
- package/js/utils/Utils.d.ts +3 -0
- package/package.json +1 -1
package/js/adapters/Adapter.d.ts
CHANGED
|
@@ -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;
|
|
@@ -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
|
}
|
package/js/api/AdapterAPI.d.ts
CHANGED
|
@@ -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;
|
package/js/core/Analytics.d.ts
CHANGED
|
@@ -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;
|
package/js/enums/Event.d.ts
CHANGED
|
@@ -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;
|
package/js/utils/Utils.d.ts
CHANGED
|
@@ -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.
|
|
1
|
+
{"name":"bitmovin-analytics","version":"v2.27.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"}]}
|