@vkontakte/videoplayer-statistics 1.0.100-dev.04f0bb5f.0 → 1.0.100-dev.319d6ebf.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/es2018.cjs +3 -3
- package/es2018.esm.js +3 -3
- package/es2024.cjs +3 -3
- package/es2024.esm.js +3 -3
- package/esnext.cjs +3 -3
- package/esnext.esm.js +3 -3
- package/evergreen.esm.js +3 -3
- package/package.json +3 -3
- package/types/ShareVSID.d.ts +3 -3
- package/types/index.d.ts +6 -5
- package/types/mediascopePixel/MediascopePixel.d.ts +36 -36
- package/types/mediascopePixel/Stopwatch.d.ts +10 -10
- package/types/mediascopePixel/types.d.ts +5 -5
- package/types/oneStat/Api.d.ts +35 -34
- package/types/oneStat/ApiTransport.d.ts +19 -19
- package/types/oneStat/Logger.d.ts +35 -35
- package/types/oneStat/OneStat.d.ts +309 -307
- package/types/oneStat/config.d.ts +32 -32
- package/types/oneStat/env.d.ts +3 -3
- package/types/oneStat/index.d.ts +9 -6
- package/types/oneStat/types.d.ts +43 -43
- package/types/oneStat/uiEvents.d.ts +19 -19
- package/types/oneStat/utils/mappers.d.ts +2 -2
- package/types/oneStat/utils/shorten.d.ts +1 -1
- package/types/oneStat/utils/timeSynchronisation.d.ts +8 -8
- package/types/oneStat/utils/watchCoverage.d.ts +4 -4
- package/types/oneStat/values.d.ts +63 -64
- package/types/shared/useModeController.d.ts +6 -5
- package/types/thinOneStat/Api.d.ts +32 -32
- package/types/thinOneStat/ApiTransport.d.ts +19 -19
- package/types/thinOneStat/Logger.d.ts +35 -35
- package/types/thinOneStat/ThinOneStat.d.ts +271 -271
- package/types/thinOneStat/config.d.ts +21 -20
- package/types/thinOneStat/env.d.ts +3 -3
- package/types/thinOneStat/events.d.ts +21 -21
- package/types/thinOneStat/index.d.ts +6 -4
- package/types/thinOneStat/types.d.ts +24 -24
- package/types/thinOneStat/utils/calculateTotalViewTime.d.ts +2 -2
- package/types/thinOneStat/utils/downloadBytes.d.ts +4 -4
- package/types/thinOneStat/utils/mappers.d.ts +3 -2
- package/types/thinOneStat/utils/timeSynchronisation.d.ts +8 -8
- package/types/thinOneStat/utils/watchCoverage.d.ts +4 -4
- package/types/thinOneStat/utils/watchedN.d.ts +5 -5
- package/types/thinOneStat/values.d.ts +67 -67
- package/es2015.cjs +0 -6
- package/es2015.esm.js +0 -6
|
@@ -1,351 +1,351 @@
|
|
|
1
|
-
import type { ISubscription, IValueObservable, Milliseconds } from
|
|
2
|
-
import { ValueSubject } from
|
|
3
|
-
import type { IPlayer } from
|
|
4
|
-
import type { IOptionalConfig } from
|
|
5
|
-
import { Mode, Quality,
|
|
6
|
-
import
|
|
1
|
+
import type { ISubscription, IValueObservable, Milliseconds } from "@vkontakte/videoplayer-shared";
|
|
2
|
+
import { ValueSubject } from "@vkontakte/videoplayer-shared";
|
|
3
|
+
import type { IPlayer } from "@vkontakte/videoplayer-core";
|
|
4
|
+
import type { IOptionalConfig } from "./config";
|
|
5
|
+
import type { Mode, Quality, Visibility, ConnectionType, ContentType } from "./values";
|
|
6
|
+
import { ActionSeekType, AutoQuality } from "./values";
|
|
7
|
+
import type { IAdsEvents, IUIEvents } from "./events";
|
|
7
8
|
export interface IThinOneStat {
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
9
|
+
vsid$: IValueObservable<string | undefined>;
|
|
10
|
+
isid$: IValueObservable<string | undefined>;
|
|
11
|
+
/**
|
|
12
|
+
* Лучше авторизоваться сразу, чтобы избежать ситуации:
|
|
13
|
+
* 1. Накапливаем запросы в очереди через debounce send
|
|
14
|
+
* 2. Пользователь закрывает приложение
|
|
15
|
+
* 3. Запрос пытается уйти через sendBeacon и падает без авторизации
|
|
16
|
+
*/
|
|
17
|
+
authorize(authToken?: string): Promise<unknown>;
|
|
18
|
+
/**
|
|
19
|
+
* Обновляет общие параметры событий
|
|
20
|
+
*/
|
|
21
|
+
updateContext(context: Partial<IStatContext>): void;
|
|
22
|
+
/**
|
|
23
|
+
* Привязываемся к событиям и разным изменениям состояний плеера
|
|
24
|
+
*/
|
|
25
|
+
attachTo(player: IPlayer, adsEvents: IAdsEvents): ISubscription;
|
|
26
|
+
attachToUi(uiEvents: IUIEvents): ISubscription;
|
|
27
|
+
attachToAds(adsEvents: IAdsEvents): ISubscription;
|
|
28
|
+
/**
|
|
29
|
+
* Идентификатор текущего устройства
|
|
30
|
+
*/
|
|
31
|
+
getDeviceId(): string;
|
|
32
|
+
getTotalViewTime(): Milliseconds;
|
|
33
|
+
/**
|
|
34
|
+
* Деструктор класса
|
|
35
|
+
*/
|
|
36
|
+
destroy(): void;
|
|
36
37
|
}
|
|
37
38
|
export interface IStatContext {
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
39
|
+
movieId?: number;
|
|
40
|
+
deviceId?: string;
|
|
41
|
+
preload?: boolean;
|
|
42
|
+
targetDuration?: Milliseconds;
|
|
43
|
+
inHistory?: boolean;
|
|
44
|
+
recomInfo?: Record<string, unknown>;
|
|
45
|
+
product?: string;
|
|
46
|
+
navigation?: Record<string, unknown>;
|
|
47
|
+
application?: string;
|
|
48
|
+
platform?: string;
|
|
49
|
+
os?: string;
|
|
50
|
+
osVersion?: string;
|
|
51
|
+
browser?: string;
|
|
52
|
+
browserVersion?: string;
|
|
53
|
+
deviceType?: string;
|
|
54
|
+
deviceManufacturer?: string;
|
|
55
|
+
deviceModel?: string;
|
|
56
|
+
isMobile?: boolean;
|
|
57
|
+
networkType?: string;
|
|
58
|
+
dpi?: number;
|
|
59
|
+
playerSize?: {
|
|
60
|
+
width: number;
|
|
61
|
+
height: number;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Плеер в режиме превью.
|
|
65
|
+
*/
|
|
66
|
+
isPreviewPlayerView?: boolean;
|
|
66
67
|
}
|
|
67
68
|
export interface IConstructorParams {
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
69
|
+
config: IOptionalConfig;
|
|
70
|
+
userSalt?: string;
|
|
71
|
+
refreshAuthToken?: () => Promise<string | undefined>;
|
|
72
|
+
isid?: string;
|
|
73
|
+
useIsid?: boolean;
|
|
73
74
|
}
|
|
74
75
|
export interface IWatchCoveragePayload {
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
76
|
+
watch_interval: string;
|
|
77
|
+
in_history: boolean;
|
|
78
|
+
content_type?: ContentType;
|
|
79
|
+
playback_quality?: string;
|
|
80
|
+
recom_info?: Record<string, unknown>;
|
|
80
81
|
}
|
|
81
82
|
export interface IWatchCoverageLivePayload extends IWatchCoveragePayload {
|
|
82
|
-
|
|
83
|
+
live: boolean;
|
|
83
84
|
}
|
|
84
85
|
export interface IWatchedNPayload {
|
|
85
|
-
|
|
86
|
-
|
|
86
|
+
target_duration: Milliseconds;
|
|
87
|
+
current_tvt: Milliseconds;
|
|
87
88
|
}
|
|
88
89
|
export interface IStartSessionPayload {
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
90
|
+
isid?: string;
|
|
91
|
+
stream_profile?: "live" | "vod";
|
|
92
|
+
dpi: number;
|
|
93
|
+
web_layout: "desktop" | "mobile";
|
|
94
|
+
iframe_host?: string | "unknown" | null;
|
|
95
|
+
from_downloads?: boolean;
|
|
96
|
+
preloaded?: boolean;
|
|
97
|
+
navigation?: Record<string, unknown>;
|
|
98
|
+
recom_info?: Record<string, unknown>;
|
|
98
99
|
}
|
|
99
100
|
export interface IPreloadStartedPayload {
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
target_buffer_time?: Milliseconds;
|
|
102
|
+
playback_url?: string;
|
|
103
|
+
playback_quality?: Quality;
|
|
103
104
|
}
|
|
104
105
|
export interface IPreloadEndedPayload {
|
|
105
|
-
|
|
106
|
+
buffer_time?: Milliseconds;
|
|
106
107
|
}
|
|
107
108
|
export interface IPlaybackStartedPayload {
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
109
|
+
playback_quality?: Quality;
|
|
110
|
+
user_quality?: Quality | AutoQuality;
|
|
111
|
+
player_width?: number;
|
|
112
|
+
player_height?: number;
|
|
113
|
+
muted?: boolean;
|
|
114
|
+
sound_volume?: number;
|
|
115
|
+
buffer_time?: Milliseconds;
|
|
116
|
+
mode?: Mode;
|
|
117
|
+
visibility?: Visibility;
|
|
118
|
+
subtitles_enabled?: boolean;
|
|
119
|
+
auto_subtitles?: boolean;
|
|
120
|
+
audio_track_lang?: string;
|
|
121
|
+
playback_rate?: number;
|
|
122
|
+
recom_info?: Record<string, unknown>;
|
|
122
123
|
}
|
|
123
124
|
export interface IManifestRequestPayload {
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
125
|
+
playback_url?: string;
|
|
126
|
+
cdn_host?: string;
|
|
127
|
+
connection_type?: ConnectionType;
|
|
128
|
+
connection_reused?: boolean;
|
|
128
129
|
}
|
|
129
130
|
export interface IFirstByteManifestPayload {
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
131
|
+
playback_url?: string;
|
|
132
|
+
cdn_host?: string;
|
|
133
|
+
connection_type?: ConnectionType;
|
|
134
|
+
connection_reused?: boolean;
|
|
134
135
|
}
|
|
135
136
|
export interface IFirstMediaRequestPayload {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
137
|
+
playback_url?: string;
|
|
138
|
+
cdn_host?: string;
|
|
139
|
+
connection_type?: ConnectionType;
|
|
140
|
+
connection_reused?: boolean;
|
|
140
141
|
}
|
|
141
142
|
export interface IFirstByteMediaPayload {
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
143
|
+
playback_url?: string;
|
|
144
|
+
cdn_host?: string;
|
|
145
|
+
connection_type?: ConnectionType;
|
|
146
|
+
connection_reused?: boolean;
|
|
146
147
|
}
|
|
147
148
|
export interface IManifestReceivedPayload {
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
149
|
+
playback_url?: string;
|
|
150
|
+
cdn_host?: string;
|
|
151
|
+
connection_type?: ConnectionType;
|
|
152
|
+
connection_reused?: boolean;
|
|
152
153
|
}
|
|
153
154
|
export interface IConnectionEstablishedPayload {
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
155
|
+
playback_url?: string;
|
|
156
|
+
cdn_host?: string;
|
|
157
|
+
connection_type?: ConnectionType;
|
|
158
|
+
connection_reused?: boolean;
|
|
159
|
+
rtt?: Milliseconds;
|
|
160
|
+
network_type?: string;
|
|
161
|
+
dns_resolve_time?: number;
|
|
162
|
+
tcp_handshake_time?: number;
|
|
163
|
+
tls_handshake_time?: number;
|
|
163
164
|
}
|
|
164
165
|
export interface IReadyPayload {
|
|
165
|
-
|
|
166
|
+
buffer_time?: Milliseconds;
|
|
166
167
|
}
|
|
167
168
|
export interface IPlayingPayload {
|
|
168
|
-
|
|
169
|
+
buffer_time?: Milliseconds;
|
|
169
170
|
}
|
|
170
171
|
export interface ISeekingPayload {
|
|
171
|
-
|
|
172
|
+
seek_type?: ActionSeekType;
|
|
172
173
|
}
|
|
173
174
|
export interface ISeekedPayload {
|
|
174
|
-
|
|
175
|
+
seek_type?: ActionSeekType;
|
|
175
176
|
}
|
|
176
177
|
export interface IBufferStarvationPayload {
|
|
177
|
-
|
|
178
|
+
buffer_time?: Milliseconds;
|
|
178
179
|
}
|
|
179
180
|
export interface IQualityChangeRequestedPayload {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
user_quality?: Quality | AutoQuality;
|
|
182
|
+
playback_quality?: Quality;
|
|
183
|
+
download_quality?: Quality;
|
|
184
|
+
codec_info?: string;
|
|
184
185
|
}
|
|
185
186
|
export interface IQualityChangedPayload {
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
187
|
+
user_quality?: Quality | AutoQuality;
|
|
188
|
+
playback_quality?: Quality;
|
|
189
|
+
download_quality?: Quality;
|
|
190
|
+
codec_info?: string;
|
|
190
191
|
}
|
|
191
192
|
export interface ICdnHostChangedPayload {
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
193
|
+
cdn_host?: string;
|
|
194
|
+
connection_type?: ConnectionType;
|
|
195
|
+
connection_reused?: boolean;
|
|
196
|
+
content_type?: ContentType;
|
|
196
197
|
}
|
|
197
198
|
export interface IViewPortChangedPayload {
|
|
198
|
-
|
|
199
|
-
|
|
199
|
+
player_width?: number;
|
|
200
|
+
player_height?: number;
|
|
200
201
|
}
|
|
201
202
|
export interface IModeChangedPayload {
|
|
202
|
-
|
|
203
|
+
mode?: Mode;
|
|
203
204
|
}
|
|
204
205
|
export interface IVisibilityChangedPayload {
|
|
205
|
-
|
|
206
|
+
visibility?: Visibility;
|
|
206
207
|
}
|
|
207
208
|
export interface IAudioTrackSwitchedPayload {
|
|
208
|
-
|
|
209
|
-
|
|
209
|
+
audio_track_lang?: string;
|
|
210
|
+
codec_info?: string;
|
|
210
211
|
}
|
|
211
212
|
export interface IVideoTrackSwitchedPayload {
|
|
212
|
-
|
|
213
|
-
|
|
213
|
+
hdr?: boolean;
|
|
214
|
+
codec_info?: string;
|
|
214
215
|
}
|
|
215
216
|
export interface ISubtitlesSwitchedPayload {
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
217
|
+
subtitles_enabled?: boolean;
|
|
218
|
+
subtitles_track_lang?: string;
|
|
219
|
+
auto_subtitles?: boolean;
|
|
219
220
|
}
|
|
220
221
|
export interface ISoundChangedPayload {
|
|
221
|
-
|
|
222
|
-
|
|
222
|
+
muted?: boolean;
|
|
223
|
+
sound_volume?: number;
|
|
223
224
|
}
|
|
224
225
|
export interface IFailoverPayload {
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
226
|
+
cdn_host?: string;
|
|
227
|
+
connection_type?: ConnectionType;
|
|
228
|
+
connection_reused?: boolean;
|
|
229
|
+
content_type?: ContentType;
|
|
229
230
|
}
|
|
230
231
|
export interface IContentTypeChangePayload {
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
232
|
+
content_type?: ContentType;
|
|
233
|
+
cdn_host?: string;
|
|
234
|
+
connection_type?: ConnectionType;
|
|
235
|
+
connection_reused?: boolean;
|
|
235
236
|
}
|
|
236
237
|
export interface IErrorPayload {
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
error_message?: string;
|
|
238
|
+
error_severity?: "informative" | "critical";
|
|
239
|
+
error_category?: "network" | "video_pipeline" | "external_api" | "parser" | "dom" | "wtf" | "sdk_init" | "playback" | "timeout" | "other";
|
|
240
|
+
player_error_code?: string;
|
|
241
|
+
player_error_trace?: string;
|
|
242
|
+
http_error_code?: number;
|
|
243
|
+
uv_backend_error_code_subcode?: string;
|
|
244
|
+
error_message?: string;
|
|
245
245
|
}
|
|
246
246
|
export interface IDownloadBytes {
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
download_bytes?: number;
|
|
248
|
+
download_speed?: number;
|
|
249
249
|
}
|
|
250
250
|
export interface IAdvConfigurationPayload {
|
|
251
|
-
|
|
251
|
+
slot?: number;
|
|
252
252
|
}
|
|
253
253
|
export interface IAdvBreakStartedPayload {
|
|
254
|
-
|
|
254
|
+
adv_section?: string;
|
|
255
255
|
}
|
|
256
256
|
export interface IAdvBreakEndedPayload {
|
|
257
|
-
|
|
257
|
+
adv_section?: string;
|
|
258
258
|
}
|
|
259
259
|
export interface IAdvErrorPayload {
|
|
260
|
-
|
|
260
|
+
error_message?: string;
|
|
261
261
|
}
|
|
262
262
|
export declare class ThinOneStat implements IThinOneStat {
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
263
|
+
private api;
|
|
264
|
+
private logger;
|
|
265
|
+
private config;
|
|
266
|
+
private subscription;
|
|
267
|
+
private beforeunloadSubscription?;
|
|
268
|
+
private timeSynchronisation?;
|
|
269
|
+
private statContext;
|
|
270
|
+
private deviceId;
|
|
271
|
+
private targetDuration;
|
|
272
|
+
private debugLogger;
|
|
273
|
+
private thinOneStatDebugLog;
|
|
274
|
+
private eventNumber;
|
|
275
|
+
private isStarted?;
|
|
276
|
+
private wasPaused?;
|
|
277
|
+
private isLive?;
|
|
278
|
+
private position;
|
|
279
|
+
private cdnHostname?;
|
|
280
|
+
private isEmbed;
|
|
281
|
+
private embedHostname?;
|
|
282
|
+
private connectionType?;
|
|
283
|
+
private connectionReused?;
|
|
284
|
+
private player;
|
|
285
|
+
private playerSize;
|
|
286
|
+
private currentSubtitle?;
|
|
287
|
+
private uiEvents?;
|
|
288
|
+
private seekAction$;
|
|
289
|
+
get vsid$(): ValueSubject<string | undefined>;
|
|
290
|
+
isid$: ValueSubject<string | undefined>;
|
|
291
|
+
getTotalViewTime: () => Milliseconds;
|
|
292
|
+
constructor(statContext: IStatContext, params: IConstructorParams);
|
|
293
|
+
authorize(authToken?: string): Promise<unknown>;
|
|
294
|
+
updateContext(newContext: Partial<IStatContext>): void;
|
|
295
|
+
attachTo(player: IPlayer, adsEvents: IAdsEvents): ISubscription;
|
|
296
|
+
attachToUi(events: IUIEvents): ISubscription;
|
|
297
|
+
attachToAds(events: IAdsEvents): ISubscription;
|
|
298
|
+
getDeviceId(): string;
|
|
299
|
+
resetViewSession(): void;
|
|
300
|
+
destroy(): void;
|
|
301
|
+
private calcBufferTime;
|
|
302
|
+
private createRequiredParams;
|
|
303
|
+
private createRequiredFatParams;
|
|
304
|
+
private log;
|
|
305
|
+
private logWatchCoverage;
|
|
306
|
+
private logWatchCoverageLive;
|
|
307
|
+
private logWatchedN;
|
|
308
|
+
private logStartSession;
|
|
309
|
+
private logPreloadStarted;
|
|
310
|
+
private logPreloadEnded;
|
|
311
|
+
private logPreloadError;
|
|
312
|
+
private logPlaybackStarted;
|
|
313
|
+
private logPlay;
|
|
314
|
+
private logManifestRequest;
|
|
315
|
+
private logFirstByteManifest;
|
|
316
|
+
private logFirstMediaRequest;
|
|
317
|
+
private logFirstByteMedia;
|
|
318
|
+
private logManifestReceived;
|
|
319
|
+
private logConnectionEstablished;
|
|
320
|
+
private logFirstVideoFrameDecoded;
|
|
321
|
+
private logReady;
|
|
322
|
+
private logPlaying;
|
|
323
|
+
private logPause;
|
|
324
|
+
private logResume;
|
|
325
|
+
private logSeeking;
|
|
326
|
+
private logSeeked;
|
|
327
|
+
private logStop;
|
|
328
|
+
private logBufferStarvation;
|
|
329
|
+
private logShowLoader;
|
|
330
|
+
private logQualityChangeRequested;
|
|
331
|
+
private logQualityChanged;
|
|
332
|
+
private logCdnHostChanged;
|
|
333
|
+
private logViewPortChanged;
|
|
334
|
+
private logModeChanged;
|
|
335
|
+
private logVisibilityChanged;
|
|
336
|
+
private logAudioTrackSwitched;
|
|
337
|
+
private logVideoTrackSwitched;
|
|
338
|
+
private logSubtitlesSwitched;
|
|
339
|
+
private logSoundChanged;
|
|
340
|
+
private logFailover;
|
|
341
|
+
private logContentTypeChange;
|
|
342
|
+
private logError;
|
|
343
|
+
private logCannotPlay;
|
|
344
|
+
private logDownloadBytes;
|
|
345
|
+
private logAdvConfiguration;
|
|
346
|
+
private logAdvRequest;
|
|
347
|
+
private logAdvBreakStarted;
|
|
348
|
+
private logAdvBreakEnded;
|
|
349
|
+
private logAdvError;
|
|
350
|
+
private resubscribeBeforeunload;
|
|
351
351
|
}
|