bitmovin-analytics 2.31.2 → 2.32.1
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/bitmovin-analytics.d.ts
CHANGED
|
@@ -7,10 +7,13 @@ export interface CollectorConfig {
|
|
|
7
7
|
enabled?: boolean;
|
|
8
8
|
cookiesEnabled?: boolean;
|
|
9
9
|
cookiesDomain?: string;
|
|
10
|
+
cookiesMaxAge?: number;
|
|
10
11
|
origin?: string;
|
|
11
12
|
}
|
|
12
13
|
export interface AnalyticsConfig {
|
|
13
14
|
debug?: boolean | AnalyticsDebugConfig;
|
|
15
|
+
deviceType?: string;
|
|
16
|
+
deviceClass?: "Console" | "Desktop" | "Phone" | "STB" | "TV" | "Tablet" | "Wearable" | "Other";
|
|
14
17
|
key?: string;
|
|
15
18
|
playerKey?: string;
|
|
16
19
|
player?: string;
|
|
@@ -280,76 +283,80 @@ export interface VideoStartFailedEvent extends AnalyticsEventBase {
|
|
|
280
283
|
reason: VideoStartFailedReason;
|
|
281
284
|
}
|
|
282
285
|
export interface Sample extends CustomDataValues {
|
|
283
|
-
platform: string;
|
|
284
|
-
sequenceNumber?: number;
|
|
285
|
-
domain?: any;
|
|
286
|
-
path?: string;
|
|
287
|
-
language?: string;
|
|
288
|
-
userAgent?: string;
|
|
289
|
-
screenWidth?: number;
|
|
290
|
-
screenHeight?: number;
|
|
291
|
-
isLive?: boolean;
|
|
292
|
-
isCasting?: boolean;
|
|
293
|
-
castTech?: string;
|
|
294
|
-
videoDuration?: number;
|
|
295
|
-
size?: string;
|
|
296
|
-
time?: number;
|
|
297
|
-
videoWindowWidth?: number;
|
|
298
|
-
videoWindowHeight?: number;
|
|
299
|
-
droppedFrames?: number;
|
|
300
|
-
played?: number;
|
|
301
|
-
buffered?: number;
|
|
302
|
-
paused?: number;
|
|
303
286
|
ad?: number;
|
|
304
|
-
|
|
305
|
-
videoPlaybackWidth?: number;
|
|
306
|
-
videoPlaybackHeight?: number;
|
|
307
|
-
videoBitrate?: number;
|
|
287
|
+
analyticsVersion?: any;
|
|
308
288
|
audioBitrate?: number;
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
289
|
+
audioCodec?: string;
|
|
290
|
+
audioLanguage?: string;
|
|
291
|
+
autoplay?: any;
|
|
292
|
+
buffered?: number;
|
|
293
|
+
castTech?: string;
|
|
294
|
+
cdnProvider?: any;
|
|
295
|
+
completed?: number;
|
|
296
|
+
completedTotal?: number;
|
|
297
|
+
customUserId?: string;
|
|
298
|
+
deviceInformation?: {
|
|
299
|
+
model?: string;
|
|
300
|
+
deviceClass?: string;
|
|
301
|
+
};
|
|
302
|
+
domain?: any;
|
|
303
|
+
downloadSpeedInfo?: DownloadSpeedInfo;
|
|
304
|
+
drmLoadTime?: number;
|
|
305
|
+
drmType?: string;
|
|
306
|
+
droppedFrames?: number;
|
|
312
307
|
duration?: number;
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
308
|
+
errorCode?: any;
|
|
309
|
+
errorData?: string;
|
|
310
|
+
errorMessage?: any;
|
|
311
|
+
errorSegments?: any[];
|
|
312
|
+
impressionId?: string;
|
|
313
|
+
isCasting?: boolean;
|
|
314
|
+
isLive?: boolean;
|
|
318
315
|
isMuted?: boolean;
|
|
319
|
-
|
|
316
|
+
key?: string;
|
|
317
|
+
language?: string;
|
|
320
318
|
m3u8Url?: string;
|
|
321
319
|
mpdUrl?: string;
|
|
322
|
-
|
|
323
|
-
|
|
320
|
+
pageLoadTime: number;
|
|
321
|
+
pageLoadType: number;
|
|
322
|
+
path?: string;
|
|
323
|
+
paused?: number;
|
|
324
|
+
platform: string;
|
|
325
|
+
played?: number;
|
|
324
326
|
player?: any;
|
|
327
|
+
playerKey?: any;
|
|
328
|
+
playerStartupTime: number;
|
|
329
|
+
playerTech?: string;
|
|
330
|
+
progUrl?: string;
|
|
331
|
+
screenHeight?: number;
|
|
332
|
+
screenWidth?: number;
|
|
333
|
+
seeked?: number;
|
|
334
|
+
sequenceNumber?: number;
|
|
335
|
+
size?: string;
|
|
336
|
+
startupTime?: number;
|
|
325
337
|
state?: string;
|
|
326
|
-
|
|
338
|
+
streamFormat?: string;
|
|
339
|
+
subtitleEnabled?: boolean;
|
|
340
|
+
subtitleLanguage?: string;
|
|
341
|
+
supportedVideoCodecs?: string[];
|
|
342
|
+
time?: number;
|
|
343
|
+
userAgent?: string;
|
|
327
344
|
userId?: string;
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
345
|
+
version?: string;
|
|
346
|
+
videoBitrate?: number;
|
|
347
|
+
videoCodec?: string;
|
|
348
|
+
videoDuration?: number;
|
|
349
|
+
videoId?: string;
|
|
350
|
+
videoPlaybackHeight?: number;
|
|
351
|
+
videoPlaybackWidth?: number;
|
|
331
352
|
videoStartFailed?: boolean;
|
|
332
353
|
videoStartFailedReason?: string;
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
playerKey?: any;
|
|
337
|
-
cdnProvider?: any;
|
|
338
|
-
videoId?: string;
|
|
354
|
+
videoStartupTime?: number;
|
|
355
|
+
videoTimeEnd?: number;
|
|
356
|
+
videoTimeStart?: number;
|
|
339
357
|
videoTitle?: string;
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
drmLoadTime?: number;
|
|
343
|
-
subtitleEnabled?: boolean;
|
|
344
|
-
subtitleLanguage?: string;
|
|
345
|
-
downloadSpeedInfo?: DownloadSpeedInfo;
|
|
346
|
-
errorSegments?: any[];
|
|
347
|
-
audioCodec?: string;
|
|
348
|
-
videoCodec?: string;
|
|
349
|
-
supportedVideoCodecs?: string[];
|
|
350
|
-
audioLanguage?: string;
|
|
351
|
-
completed?: number;
|
|
352
|
-
completedTotal?: number;
|
|
358
|
+
videoWindowHeight?: number;
|
|
359
|
+
videoWindowWidth?: number;
|
|
353
360
|
}
|
|
354
361
|
export interface StateMachineCallbacks {
|
|
355
362
|
setup: (duration: number, state: string) => void;
|
|
@@ -459,15 +466,6 @@ export interface ErrorDetailTrackingSettingsProvider {
|
|
|
459
466
|
readonly impressionId: string;
|
|
460
467
|
readonly collectorConfig?: CollectorConfig;
|
|
461
468
|
}
|
|
462
|
-
export interface CastClientConfig {
|
|
463
|
-
config: any;
|
|
464
|
-
domain: any;
|
|
465
|
-
path: string;
|
|
466
|
-
language: string;
|
|
467
|
-
userAgent: string;
|
|
468
|
-
impressionId: string;
|
|
469
|
-
userId: string;
|
|
470
|
-
}
|
|
471
469
|
export interface Backend {
|
|
472
470
|
sendRequest(sample: Sample): any;
|
|
473
471
|
sendUnloadRequest(sample: Sample): any;
|
|
@@ -492,9 +490,12 @@ declare class BackendFactory {
|
|
|
492
490
|
declare class Analytics {
|
|
493
491
|
get version(): string;
|
|
494
492
|
static version: string;
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
493
|
+
private readonly sessionHandler;
|
|
494
|
+
private readonly adapter;
|
|
495
|
+
private readonly backendFactory;
|
|
496
|
+
private readonly featureManager;
|
|
497
|
+
private readonly onErrorDetailEventDispatcher;
|
|
498
|
+
private readonly adAnalytics;
|
|
498
499
|
pageLoadTime: number;
|
|
499
500
|
playerStartupTime: number;
|
|
500
501
|
videoStartupTime: number;
|
|
@@ -502,28 +503,20 @@ declare class Analytics {
|
|
|
502
503
|
sample: Sample;
|
|
503
504
|
backend: Backend;
|
|
504
505
|
errorDetailTrackingSettingsProvider: ErrorDetailTrackingSettingsProvider;
|
|
505
|
-
get errorDetailSubscribable(): Subscribable<OnErrorDetailEventObject>;
|
|
506
506
|
private config;
|
|
507
|
-
private sessionHandler;
|
|
508
507
|
private droppedSampleFrames;
|
|
509
508
|
private startupTime;
|
|
510
|
-
private adapter;
|
|
511
|
-
private backendFactory;
|
|
512
|
-
private featureManager;
|
|
513
|
-
private onErrorDetailEventDispatcher;
|
|
514
|
-
private adAnalytics;
|
|
515
509
|
private authenticationCallback;
|
|
516
510
|
constructor(config: AnalyticsConfig, adapter: InternalAdapterAPI, backendFactory?: BackendFactory);
|
|
511
|
+
get errorDetailSubscribable(): Subscribable<OnErrorDetailEventObject>;
|
|
517
512
|
getPlayerInformationFromAdapter(): {
|
|
518
513
|
player: string;
|
|
519
514
|
version: string;
|
|
520
515
|
playerTech: string;
|
|
521
516
|
};
|
|
522
|
-
updateSamplesToCastClientConfig(samples: Sample[], castClientConfig: CastClientConfig): void;
|
|
523
|
-
updateSampleToCastClientConfig(sample: Sample, castClientConfig: CastClientConfig): void;
|
|
524
517
|
init(): void;
|
|
525
518
|
release(): void;
|
|
526
|
-
setConfigParameters(
|
|
519
|
+
setConfigParameters(): void;
|
|
527
520
|
generateNewImpressionId(): void;
|
|
528
521
|
setUserId(): void;
|
|
529
522
|
setupStateMachineCallbacks(): void;
|