bitmovin-analytics 2.23.0 → 2.25.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 +3 -3
- package/bitmovinanalytics.min.js.map +1 -1
- package/js/adapters/internal/Bitmovin8InternalAdapter.d.ts +2 -1
- package/js/adapters/internal/CAFv3InternalAdapter.d.ts +2 -0
- package/js/adapters/internal/InternalAdapter.d.ts +4 -0
- package/js/adapters/internal/InternalAdapterAPI.d.ts +1 -0
- package/js/adapters/internal/ads/Bitmovin8AdModule.d.ts +3 -1
- package/js/core/AdAnalytics.d.ts +2 -0
- package/js/core/Analytics.d.ts +2 -1
- package/js/enums/Event.d.ts +3 -1
- package/js/types/CustomDataValues.d.ts +9 -0
- package/js/types/StateMachineCallbacks.d.ts +1 -1
- package/js/utils/WindowEventTracker.d.ts +5 -0
- package/package.json +1 -1
|
@@ -37,9 +37,10 @@ export declare class Bitmovin8InternalAdapter extends InternalAdapter implements
|
|
|
37
37
|
getAutoPlay(): boolean;
|
|
38
38
|
getDrmPerformanceInfo: () => DrmPerformanceInfo | undefined;
|
|
39
39
|
getCurrentPlaybackInfo(): PlaybackInfo;
|
|
40
|
-
register(): void;
|
|
41
40
|
sourceChange(config: any, timestamp: any): void;
|
|
42
41
|
onError(): void;
|
|
42
|
+
private registerPlayerEventListeners;
|
|
43
|
+
private registerUnloadEventListeners;
|
|
43
44
|
private applySourceProperties;
|
|
44
45
|
private applySubtitleProperties;
|
|
45
46
|
private applyPlaybackQualityProperties;
|
|
@@ -11,10 +11,12 @@ 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;
|
|
14
15
|
private mediaInformation;
|
|
15
16
|
private activeAudioTrack;
|
|
16
17
|
private activeTextTracks;
|
|
17
18
|
private currentItem;
|
|
19
|
+
private currentItemIndex;
|
|
18
20
|
private isSeeking;
|
|
19
21
|
constructor(context: any, opts?: AnalyticsStateMachineOptions);
|
|
20
22
|
initialize(analytics: Analytics): Array<Feature<FeatureConfigContainer, FeatureConfig>>;
|
|
@@ -8,6 +8,7 @@ import { DrmPerformanceInfo } from '../../types/DrmPerformanceInfo';
|
|
|
8
8
|
import { NoExtraProperties } from '../../types/NoExtraProperties';
|
|
9
9
|
import { SegmentInfo } from '../../types/SegmentInfo';
|
|
10
10
|
import { StateMachineCallbacks } from '../../types/StateMachineCallbacks';
|
|
11
|
+
import { WindowEventTracker } from '../../utils/WindowEventTracker';
|
|
11
12
|
export declare abstract class InternalAdapter {
|
|
12
13
|
stateMachineCallbacks: StateMachineCallbacks;
|
|
13
14
|
protected stateMachine: AnalyticsStateMachine;
|
|
@@ -21,6 +22,8 @@ export declare abstract class InternalAdapter {
|
|
|
21
22
|
protected previousAudioBitrate: number;
|
|
22
23
|
protected qualityChangeCount: number;
|
|
23
24
|
protected abstract get currentTime(): number;
|
|
25
|
+
private _windowEventTracker;
|
|
26
|
+
get windowEventTracker(): WindowEventTracker;
|
|
24
27
|
get onLicenseKeyReceived(): EventDispatcher<{
|
|
25
28
|
licenseKey: string;
|
|
26
29
|
}>;
|
|
@@ -38,6 +41,7 @@ export declare abstract class InternalAdapter {
|
|
|
38
41
|
clearSegments(): void;
|
|
39
42
|
increaseQualityChangeCount(): void;
|
|
40
43
|
resetQualityChangeCount(): void;
|
|
44
|
+
resetSourceRelatedState(): void;
|
|
41
45
|
isQualityChangeEventEnabled(): boolean;
|
|
42
46
|
setCustomData(values: CustomDataValues): void;
|
|
43
47
|
protected shouldAllowVideoQualityChange(newBitrate: number | undefined): boolean;
|
|
@@ -20,6 +20,7 @@ export interface InternalAdapterAPI extends DeferredLicenseLoadingAdapterAPI {
|
|
|
20
20
|
isQualityChangeEventEnabled(): boolean;
|
|
21
21
|
increaseQualityChangeCount(): void;
|
|
22
22
|
resetQualityChangeCount(): void;
|
|
23
|
+
resetSourceRelatedState(): void;
|
|
23
24
|
getPlayerVersion(): string;
|
|
24
25
|
getPlayerName(): string;
|
|
25
26
|
getPlayerTech(): string;
|
|
@@ -1,9 +1,11 @@
|
|
|
1
1
|
import { PlayerAPI } from 'bitmovin-player';
|
|
2
|
+
import { WindowEventTracker } from '../../../utils/WindowEventTracker';
|
|
2
3
|
import { AdCallbacks, AdModuleAPI } from './AdModuleAPI';
|
|
3
4
|
export declare class Bitmovin8AdModule implements AdModuleAPI {
|
|
4
5
|
private player;
|
|
6
|
+
private windowEventTracker;
|
|
5
7
|
adCallbacks: AdCallbacks;
|
|
6
|
-
constructor(player: PlayerAPI);
|
|
8
|
+
constructor(player: PlayerAPI, windowEventTracker: WindowEventTracker);
|
|
7
9
|
isLinearAdActive: () => any;
|
|
8
10
|
getContainer: () => HTMLElement;
|
|
9
11
|
getAdModuleInfo: () => any;
|
package/js/core/AdAnalytics.d.ts
CHANGED
|
@@ -21,6 +21,7 @@ export declare class AdAnalytics {
|
|
|
21
21
|
private currentTimeInterval?;
|
|
22
22
|
private adPodPosition;
|
|
23
23
|
constructor(analytics: Analytics, adapter: AdModuleAPI);
|
|
24
|
+
release(): void;
|
|
24
25
|
onIntersectionChanged(): void;
|
|
25
26
|
isContainerInViewport(): boolean;
|
|
26
27
|
onPlay(): void;
|
|
@@ -43,4 +44,5 @@ export declare class AdAnalytics {
|
|
|
43
44
|
private startAd;
|
|
44
45
|
private completeAd;
|
|
45
46
|
private resetActiveAd;
|
|
47
|
+
private clearCurrentTimeInterval;
|
|
46
48
|
}
|
package/js/core/Analytics.d.ts
CHANGED
|
@@ -31,6 +31,7 @@ export declare class Analytics {
|
|
|
31
31
|
private resetQualityChangeCountIntervalId?;
|
|
32
32
|
private featureManager;
|
|
33
33
|
private onErrorDetailEventDispatcher;
|
|
34
|
+
private adAnalytics;
|
|
34
35
|
private authenticationCallback;
|
|
35
36
|
constructor(config: AnalyticsConfig, adapter: InternalAdapterAPI, backendFactory?: BackendFactory);
|
|
36
37
|
getPlayerInformationFromAdapter(): {
|
|
@@ -41,7 +42,7 @@ export declare class Analytics {
|
|
|
41
42
|
updateSamplesToCastClientConfig(samples: Sample[], castClientConfig: CastClientConfig): void;
|
|
42
43
|
updateSampleToCastClientConfig(sample: Sample, castClientConfig: CastClientConfig): void;
|
|
43
44
|
init(): void;
|
|
44
|
-
|
|
45
|
+
release(): void;
|
|
45
46
|
setConfigParameters(sample?: Sample, config?: AnalyticsConfig): void;
|
|
46
47
|
generateNewImpressionId(): void;
|
|
47
48
|
setUserId(): void;
|
package/js/enums/Event.d.ts
CHANGED
|
@@ -30,7 +30,8 @@ export declare enum Event {
|
|
|
30
30
|
SOURCE_UNLOADED = "sourceUnloaded",
|
|
31
31
|
MANUAL_SOURCE_CHANGE = "manualSourceChangeInitiated",
|
|
32
32
|
VIDEOSTART_TIMEOUT = "VIDEOSTART_TIMEOUT",
|
|
33
|
-
CUSTOM_DATA_CHANGE = "customDataChange"
|
|
33
|
+
CUSTOM_DATA_CHANGE = "customDataChange",
|
|
34
|
+
PLAYLIST_TRANSITION = "playlistTransition"
|
|
34
35
|
}
|
|
35
36
|
export interface EventMap {
|
|
36
37
|
[Event.READY]: AnalyticsEventBase;
|
|
@@ -64,4 +65,5 @@ export interface EventMap {
|
|
|
64
65
|
[Event.MANUAL_SOURCE_CHANGE]: SourceChangeEvent;
|
|
65
66
|
[Event.VIDEOSTART_TIMEOUT]: AnalyticsEventBase;
|
|
66
67
|
[Event.CUSTOM_DATA_CHANGE]: AnalyticsEventBase;
|
|
68
|
+
[Event.PLAYLIST_TRANSITION]: AnalyticsEventBase;
|
|
67
69
|
}
|
|
@@ -24,9 +24,18 @@ export interface CustomDataValues {
|
|
|
24
24
|
customData23?: string;
|
|
25
25
|
customData24?: string;
|
|
26
26
|
customData25?: string;
|
|
27
|
+
customData26?: string;
|
|
28
|
+
customData27?: string;
|
|
29
|
+
customData28?: string;
|
|
30
|
+
customData29?: string;
|
|
31
|
+
customData30?: string;
|
|
27
32
|
experimentName?: string;
|
|
28
33
|
}
|
|
29
34
|
/**
|
|
30
35
|
* Lists all keys of the {@see CustomDataValues} interface.
|
|
31
36
|
*/
|
|
32
37
|
export declare const customDataValuesKeys: Array<keyof CustomDataValues>;
|
|
38
|
+
/**
|
|
39
|
+
* The number of CustomDataXX fields in {@see CustomDataValues}.
|
|
40
|
+
*/
|
|
41
|
+
export declare const customDataFieldCount: number;
|
|
@@ -38,10 +38,10 @@ export interface StateMachineCallbacks {
|
|
|
38
38
|
config: AnalyticsConfig;
|
|
39
39
|
}) => void;
|
|
40
40
|
muting_ready: (duration: number, state: string, event: any) => void;
|
|
41
|
-
stop_collecting: () => void;
|
|
42
41
|
customdatachange: (duration?: number, state?: string, event?: {
|
|
43
42
|
values: CustomDataValues;
|
|
44
43
|
}) => void;
|
|
45
44
|
release: () => void;
|
|
45
|
+
playlistTransition: (event: Readonly<EventData.AnalyticsEventBase>) => void;
|
|
46
46
|
}
|
|
47
47
|
export declare const defaultStateMachineCallbacks: StateMachineCallbacks;
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"bitmovin-analytics","version":"v2.
|
|
1
|
+
{"name":"bitmovin-analytics","version":"v2.25.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"}]}
|