@24i/bigscreen-sdk 1.0.52 → 1.0.53
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/package.json +1 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapPlayerClose.ts +2 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapVideoComplete.ts +2 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapVideoPause.ts +2 -1
- package/packages/analytics/src/clients/TwentyFourIQ/mappers/mapVideoProgress.ts +2 -1
- package/packages/analytics/src/clients/TwentyFourIQ/types.ts +13 -18
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { SECOND_IN_MS } from '@24i/bigscreen-sdk/utils';
|
|
2
2
|
import { AnalyticsTriggers } from '@24i/appstage-shared-analytics';
|
|
3
|
-
import { EVENTS, HUNDRED_PERCENT } from '../constants';
|
|
3
|
+
import { DefaultScreens, EVENTS, HUNDRED_PERCENT } from '../constants';
|
|
4
4
|
import { PlayerCloseResult, Payload } from '../types';
|
|
5
5
|
import { mapBase } from './mapBase';
|
|
6
6
|
|
|
@@ -16,6 +16,7 @@ export const mapPlayerClose = (
|
|
|
16
16
|
...mapBase(payload),
|
|
17
17
|
action: EVENTS.PLAYER_CLOSE,
|
|
18
18
|
event_trigger: triggerName,
|
|
19
|
+
source_page: DefaultScreens.PLAYBACK,
|
|
19
20
|
thing_id: payload.assetId || '',
|
|
20
21
|
attribution_id: payload.attributionId || '',
|
|
21
22
|
duration,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnalyticsTriggers } from '@24i/appstage-shared-analytics';
|
|
2
2
|
import { SECOND_IN_MS } from '@24i/bigscreen-sdk/utils';
|
|
3
|
-
import { EVENTS } from '../constants';
|
|
3
|
+
import { DefaultScreens, EVENTS } from '../constants';
|
|
4
4
|
import { Payload, VideoCompleteResult } from '../types';
|
|
5
5
|
import { mapBase } from './mapBase';
|
|
6
6
|
|
|
@@ -17,5 +17,6 @@ export const mapVideoComplete = (
|
|
|
17
17
|
attribution_id: payload.attributionId || '',
|
|
18
18
|
progress_pct: 90,
|
|
19
19
|
duration: assetDuration,
|
|
20
|
+
source_page: DefaultScreens.PLAYBACK,
|
|
20
21
|
};
|
|
21
22
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { AnalyticsTriggers } from '@24i/appstage-shared-analytics';
|
|
2
2
|
import { SECOND_IN_MS } from '@24i/bigscreen-sdk/utils';
|
|
3
|
-
import { EVENTS, HUNDRED_PERCENT } from '../constants';
|
|
3
|
+
import { DefaultScreens, EVENTS, HUNDRED_PERCENT } from '../constants';
|
|
4
4
|
import { VideoPauseResult, Payload } from '../types';
|
|
5
5
|
import { mapBase } from './mapBase';
|
|
6
6
|
|
|
@@ -20,5 +20,6 @@ export const mapVideoPause = (
|
|
|
20
20
|
attribution_id: payload.attributionId || '',
|
|
21
21
|
duration: overallDuration,
|
|
22
22
|
progress_pct: progressPercent,
|
|
23
|
+
source_page: DefaultScreens.PLAYBACK,
|
|
23
24
|
};
|
|
24
25
|
};
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import { AnalyticsTriggers } from '@24i/appstage-shared-analytics';
|
|
2
2
|
import { SECOND_IN_MS } from '@24i/bigscreen-sdk/utils';
|
|
3
3
|
import { Payload, VideoProgressResult } from '../types';
|
|
4
|
-
import { EVENTS, HUNDRED_PERCENT } from '../constants';
|
|
4
|
+
import { DefaultScreens, EVENTS, HUNDRED_PERCENT } from '../constants';
|
|
5
5
|
import { mapBase } from './mapBase';
|
|
6
6
|
|
|
7
7
|
export const mapVideoProgress = (
|
|
@@ -20,5 +20,6 @@ export const mapVideoProgress = (
|
|
|
20
20
|
attribution_id: payload.attributionId || '',
|
|
21
21
|
progress_pct: progressPercent,
|
|
22
22
|
duration: durationInSeconds,
|
|
23
|
+
source_page: DefaultScreens.PLAYBACK,
|
|
23
24
|
};
|
|
24
25
|
};
|
|
@@ -74,13 +74,6 @@ export type BufferingResult = SceneViewResult;
|
|
|
74
74
|
export type ScrollResult = SceneViewResult & {
|
|
75
75
|
percent_scrolled: string;
|
|
76
76
|
};
|
|
77
|
-
export type VideoProgressResult = CoreResult & {
|
|
78
|
-
thing_id: string;
|
|
79
|
-
attribution_id: string;
|
|
80
|
-
progress_pct: number;
|
|
81
|
-
duration: number;
|
|
82
|
-
};
|
|
83
|
-
|
|
84
77
|
export type PlayerOpenResult = CoreResult & {
|
|
85
78
|
thing_id: string;
|
|
86
79
|
attribution_id: string;
|
|
@@ -88,22 +81,28 @@ export type PlayerOpenResult = CoreResult & {
|
|
|
88
81
|
source_rail?: string | null;
|
|
89
82
|
};
|
|
90
83
|
|
|
91
|
-
export type
|
|
84
|
+
export type VideoBaseResult = CoreResult & {
|
|
92
85
|
thing_id: string;
|
|
93
86
|
attribution_id: string;
|
|
94
87
|
duration: number;
|
|
95
88
|
progress_pct: number;
|
|
96
89
|
source_page: string;
|
|
97
|
-
source_rail?: string | null;
|
|
98
90
|
};
|
|
99
91
|
|
|
100
|
-
export type
|
|
101
|
-
|
|
102
|
-
attribution_id: string;
|
|
103
|
-
duration: number;
|
|
104
|
-
progress_pct: number;
|
|
92
|
+
export type VideoStartResult = VideoBaseResult & {
|
|
93
|
+
source_rail?: string | null;
|
|
105
94
|
};
|
|
106
95
|
|
|
96
|
+
export type VideoPauseResult = VideoBaseResult;
|
|
97
|
+
|
|
98
|
+
export type VideoStopResult = VideoStartResult;
|
|
99
|
+
|
|
100
|
+
export type VideoProgressResult = VideoBaseResult;
|
|
101
|
+
|
|
102
|
+
export type VideoCompleteResult = VideoBaseResult;
|
|
103
|
+
|
|
104
|
+
export type PlayerCloseResult = VideoBaseResult;
|
|
105
|
+
|
|
107
106
|
export type AdLoadedResult = CoreResult & {
|
|
108
107
|
thing_id: string;
|
|
109
108
|
attribution_id: string;
|
|
@@ -117,7 +116,3 @@ export type AdSkippedResult = CoreResult & {
|
|
|
117
116
|
player_advertisment_name: string;
|
|
118
117
|
player_advertisment_position: number;
|
|
119
118
|
};
|
|
120
|
-
|
|
121
|
-
export type VideoCompleteResult = VideoPauseResult;
|
|
122
|
-
export type VideoStopResult = VideoStartResult;
|
|
123
|
-
export type PlayerCloseResult = VideoPauseResult;
|