bitmovin-analytics 2.29.2 → 2.29.3
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/README.md +1 -0
- package/bitmovin-analytics.d.ts +27 -23
- package/bitmovinanalytics.min.js +2 -2
- package/bitmovinanalytics.min.js.map +1 -1
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
# Bitmovin Analytics Collector
|
|
2
2
|
|
|
3
3
|
[](https://dl.circleci.com/status-badge/redirect/gh/bitmovin-engineering/bitmovin-analytics-collector/tree/main)
|
|
4
|
+
[](https://packagephobia.com/result?p=bitmovin-analytics)
|
|
4
5
|
|
|
5
6
|
Instruments adaptive streaming video players and collects information to be sent to the Bitmovin Analytics service.
|
|
6
7
|
|
package/bitmovin-analytics.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
declare const VERSION: string;
|
|
1
2
|
export interface AnalyticsDebugConfig {
|
|
2
3
|
fields?: string[];
|
|
3
4
|
}
|
|
@@ -358,7 +359,6 @@ export interface StateMachineCallbacks {
|
|
|
358
359
|
setVideoTimeStartFromEvent: (event: any) => void;
|
|
359
360
|
videoStartFailed: (event: Readonly<VideoStartFailedEvent>, sendRequest: boolean) => void;
|
|
360
361
|
source_changing: (duration: number, state: string, event: any) => void;
|
|
361
|
-
ready: (duration: number, state: string, event: any) => void;
|
|
362
362
|
startCasting: (duration: number, event: any) => void;
|
|
363
363
|
casting: (duration: number, event: any) => void;
|
|
364
364
|
manualSourceChange: (event: {
|
|
@@ -374,6 +374,18 @@ export interface StateMachineCallbacks {
|
|
|
374
374
|
release: () => void;
|
|
375
375
|
playlistTransition: (event: Readonly<AnalyticsEventBase>) => void;
|
|
376
376
|
}
|
|
377
|
+
export interface Subscribable<TArgs> {
|
|
378
|
+
subscribe(callback: EventHandler<TArgs>): () => void;
|
|
379
|
+
unsubscribe(callback: EventHandler<TArgs>): any;
|
|
380
|
+
}
|
|
381
|
+
export type EventHandler<TArgs> = (args: TArgs) => void;
|
|
382
|
+
export interface DeferredLicenseLoadingAdapterAPI {
|
|
383
|
+
readonly supportsDeferredLicenseLoading?: boolean;
|
|
384
|
+
readonly onLicenseKeyReceived: Subscribable<{
|
|
385
|
+
licenseKey: string;
|
|
386
|
+
}>;
|
|
387
|
+
readonly onLicenseCallFailed: Subscribable<any>;
|
|
388
|
+
}
|
|
377
389
|
declare class AdCallbacks {
|
|
378
390
|
onAdStarted: (event: any) => void;
|
|
379
391
|
onAdFinished: (event: any) => void;
|
|
@@ -398,18 +410,6 @@ export interface AdModuleAPI {
|
|
|
398
410
|
};
|
|
399
411
|
currentTime: () => number;
|
|
400
412
|
}
|
|
401
|
-
export interface Subscribable<TArgs> {
|
|
402
|
-
subscribe(callback: EventHandler<TArgs>): () => void;
|
|
403
|
-
unsubscribe(callback: EventHandler<TArgs>): any;
|
|
404
|
-
}
|
|
405
|
-
export type EventHandler<TArgs> = (args: TArgs) => void;
|
|
406
|
-
export interface DeferredLicenseLoadingAdapterAPI {
|
|
407
|
-
readonly supportsDeferredLicenseLoading?: boolean;
|
|
408
|
-
readonly onLicenseKeyReceived: Subscribable<{
|
|
409
|
-
licenseKey: string;
|
|
410
|
-
}>;
|
|
411
|
-
readonly onLicenseCallFailed: Subscribable<{}>;
|
|
412
|
-
}
|
|
413
413
|
export interface InternalAdapterAPI extends DeferredLicenseLoadingAdapterAPI {
|
|
414
414
|
readonly downloadSpeedInfo: DownloadSpeedInfo;
|
|
415
415
|
readonly segments: SegmentInfo[];
|
|
@@ -512,9 +512,9 @@ declare class Analytics {
|
|
|
512
512
|
generateNewImpressionId(): void;
|
|
513
513
|
setUserId(): void;
|
|
514
514
|
setupStateMachineCallbacks(): void;
|
|
515
|
-
guardAgainstMissingVideoTitle: (oldConfig: AnalyticsConfig, newConfig: AnalyticsConfig) => void;
|
|
516
|
-
guardAgainstMissingIsLive: (oldConfig: AnalyticsConfig, newConfig: AnalyticsConfig) => void;
|
|
517
|
-
sourceChange: (config: AnalyticsConfig) => void;
|
|
515
|
+
guardAgainstMissingVideoTitle: (oldConfig: AnalyticsConfig, newConfig: AnalyticsConfig | undefined) => void;
|
|
516
|
+
guardAgainstMissingIsLive: (oldConfig: AnalyticsConfig, newConfig: AnalyticsConfig | undefined) => void;
|
|
517
|
+
sourceChange: (config: AnalyticsConfig | undefined) => void;
|
|
518
518
|
setCustomDataOnce: (values: CustomDataValues) => void;
|
|
519
519
|
setCustomData: (values: CustomDataValues) => void;
|
|
520
520
|
getCurrentImpressionId: () => string | undefined;
|
|
@@ -531,8 +531,8 @@ declare class Analytics {
|
|
|
531
531
|
sendAnalyticsRequestSynchronous(): void;
|
|
532
532
|
clearValues(): void;
|
|
533
533
|
getIsLiveFromConfigOrPlaybackInfo(config: AnalyticsConfig, isLiveFromPlayback?: boolean): boolean;
|
|
534
|
-
getMergedCollectorConfig(newConfig: AnalyticsConfig, oldConfig?: AnalyticsConfig): CollectorConfig | undefined;
|
|
535
|
-
getMergedAnalyticsConfig(newConfig: AnalyticsConfig, oldConfig?: AnalyticsConfig): AnalyticsConfig;
|
|
534
|
+
getMergedCollectorConfig(newConfig: AnalyticsConfig | undefined, oldConfig?: AnalyticsConfig): CollectorConfig | undefined;
|
|
535
|
+
getMergedAnalyticsConfig(newConfig: AnalyticsConfig | undefined, oldConfig?: AnalyticsConfig): AnalyticsConfig;
|
|
536
536
|
/**
|
|
537
537
|
* This method sanitizes the input and updates the analytics config.
|
|
538
538
|
* @param values Object containing the customData and other fields
|
|
@@ -571,12 +571,12 @@ export declare class CAFv3Adapter extends Adapter implements AdapterAPI {
|
|
|
571
571
|
export declare class DashjsAdapter extends Adapter implements AdapterAPI {
|
|
572
572
|
constructor(config: AnalyticsConfig, player: any, opts?: AnalyticsStateMachineOptions);
|
|
573
573
|
}
|
|
574
|
-
export declare class HlsAdapter extends Adapter implements AdapterAPI {
|
|
575
|
-
constructor(config: AnalyticsConfig, player: any, opts?: AnalyticsStateMachineOptions);
|
|
576
|
-
}
|
|
577
574
|
export declare class HTMLVideoElementAdapter extends Adapter implements AdapterAPI {
|
|
578
575
|
constructor(config: AnalyticsConfig, player: HTMLVideoElement, opts?: AnalyticsStateMachineOptions);
|
|
579
576
|
}
|
|
577
|
+
export declare class HlsAdapter extends Adapter implements AdapterAPI {
|
|
578
|
+
constructor(config: AnalyticsConfig, player: any, opts?: AnalyticsStateMachineOptions);
|
|
579
|
+
}
|
|
580
580
|
export declare class ShakaAdapter extends Adapter implements AdapterAPI {
|
|
581
581
|
constructor(config: AnalyticsConfig, player: any, opts?: AnalyticsStateMachineOptions);
|
|
582
582
|
private wrapPlayerLoad;
|
|
@@ -603,9 +603,9 @@ declare enum Player {
|
|
|
603
603
|
SHAKA = "shaka",
|
|
604
604
|
DASHJS = "dashjs",
|
|
605
605
|
HTML5 = "html5",
|
|
606
|
-
CHROMECAST_SHAKA = "chromecast-shaka"
|
|
606
|
+
CHROMECAST_SHAKA = "chromecast-shaka",
|
|
607
|
+
AMAZON_IVS = "amazonivs"
|
|
607
608
|
}
|
|
608
|
-
declare const VERSION: string;
|
|
609
609
|
declare const AnalyticsPlayerModule: {
|
|
610
610
|
name: string;
|
|
611
611
|
module: {
|
|
@@ -637,6 +637,10 @@ declare const _default: {
|
|
|
637
637
|
};
|
|
638
638
|
|
|
639
639
|
export {
|
|
640
|
+
AnalyticsPlayerModule as PlayerModule,
|
|
641
|
+
CdnProvider as CdnProviders,
|
|
642
|
+
Player as Players,
|
|
643
|
+
VERSION as version,
|
|
640
644
|
_default as default,
|
|
641
645
|
};
|
|
642
646
|
|