@wscsports/blaze-web-sdk 0.24.1-beta → 0.26.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/package.json +1 -1
- package/publish/index.d.ts +42 -42
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -30,6 +30,7 @@ export declare function setBeforeContentPlayCallback(callback: BeforeContentPlay
|
|
|
30
30
|
export declare function appendContentToPlayer(contentType: ContentType, dataSource: BlazeDataSourceType, options?: {
|
|
31
31
|
shouldOrderContentByReadStatus?: boolean;
|
|
32
32
|
}): Promise<void>;
|
|
33
|
+
export declare function setDisableAnalytics(value: boolean): void;
|
|
33
34
|
declare const _default: {
|
|
34
35
|
Initialize: typeof Initialize;
|
|
35
36
|
WidgetGridView: typeof WidgetGridView;
|
|
@@ -39,6 +40,7 @@ declare const _default: {
|
|
|
39
40
|
Theme: typeof Theme;
|
|
40
41
|
addDelegateListener: typeof addDelegateListener;
|
|
41
42
|
setDoNotTrack: typeof setDoNotTrack;
|
|
43
|
+
setDisableAnalytics: typeof setDisableAnalytics;
|
|
42
44
|
setGeoLocation: typeof setGeoLocation;
|
|
43
45
|
setOnItemClick: typeof setOnItemClick;
|
|
44
46
|
LabelBuilder: typeof LabelBuilder;
|
|
@@ -555,13 +557,15 @@ export type EventHandler<E extends Event> = (event: E) => void;
|
|
|
555
557
|
export declare function throttle<F extends (...args: any[]) => void>(func: F, _delay: number): (...args: Parameters<F>) => Promise<void>;
|
|
556
558
|
|
|
557
559
|
export declare class UrlRotator {
|
|
558
|
-
private
|
|
560
|
+
private baseUrls;
|
|
559
561
|
private currentIndex;
|
|
560
562
|
private fallbackUrl;
|
|
561
|
-
|
|
562
|
-
|
|
563
|
+
private apiVersion;
|
|
564
|
+
private protocol;
|
|
565
|
+
constructor(options: IUrlRotatorOptions);
|
|
566
|
+
initialize(urlRotationConfig?: IUrlRotationConfiguration): void;
|
|
563
567
|
getNext(): string;
|
|
564
|
-
private
|
|
568
|
+
private parseBaseUrls;
|
|
565
569
|
}
|
|
566
570
|
|
|
567
571
|
interface UpdateLocationContentHashParams {
|
|
@@ -1409,10 +1413,10 @@ export interface AppConfiguration {
|
|
|
1409
1413
|
analyticsAddEntitiesInfo?: string;
|
|
1410
1414
|
configRefetchIntervalInMinutes?: number;
|
|
1411
1415
|
enableClientPlaybackModification?: 'true' | 'false' | string;
|
|
1412
|
-
analyticsEndpointUrls?: string;
|
|
1413
1416
|
};
|
|
1414
1417
|
recommendationsConfigurations?: IRecommendationsConfigurations;
|
|
1415
1418
|
sdkLoggerConfigurations?: ILoggerConfiguration;
|
|
1419
|
+
analyticsLoadBalancerConfiguration?: IUrlRotationConfiguration;
|
|
1416
1420
|
}
|
|
1417
1421
|
|
|
1418
1422
|
export type ContentExtraInfo = {
|
|
@@ -2059,6 +2063,7 @@ export interface IBlazeSDKOptions {
|
|
|
2059
2063
|
previewUrl?: string;
|
|
2060
2064
|
previewMomentUrl?: string;
|
|
2061
2065
|
doNotTrack?: boolean;
|
|
2066
|
+
disableAnalytics?: boolean;
|
|
2062
2067
|
geoLocation?: string;
|
|
2063
2068
|
staticContent?: boolean;
|
|
2064
2069
|
staticContentType?: ContentType;
|
|
@@ -2223,6 +2228,8 @@ export * from './widget-options.interface';
|
|
|
2223
2228
|
export * from './widget-view.interface';
|
|
2224
2229
|
export * from './item-click-callback.interface';
|
|
2225
2230
|
export * from './recommendations.interface';
|
|
2231
|
+
export * from './url-rotation-configuration.interface';
|
|
2232
|
+
export * from './url-rotator-options.interface';
|
|
2226
2233
|
export { default as Observable } from './observable';
|
|
2227
2234
|
|
|
2228
2235
|
export interface ItemClickContext {
|
|
@@ -2339,6 +2346,11 @@ export interface IService {
|
|
|
2339
2346
|
init: (...args: any[]) => void;
|
|
2340
2347
|
}
|
|
2341
2348
|
|
|
2349
|
+
export interface IUrlRotationConfiguration {
|
|
2350
|
+
export interface IUrlRotatorOptions {
|
|
2351
|
+
apiVersion?: string;
|
|
2352
|
+
}
|
|
2353
|
+
|
|
2342
2354
|
export interface IWidgetLabelBuilder {
|
|
2343
2355
|
singleLabel(label: string): BlazeWidgetLabel;
|
|
2344
2356
|
mustInclude(...labels: Array<string | BlazeWidgetLabel>): BlazeWidgetLabel;
|
|
@@ -2555,7 +2567,7 @@ declare abstract class ApiServiceClass extends ApiServiceClass_base implements I
|
|
|
2555
2567
|
private getContentParamsByLabels;
|
|
2556
2568
|
private getContentParamsByIds;
|
|
2557
2569
|
private getContentParamsByRecommendations;
|
|
2558
|
-
|
|
2570
|
+
initializeAnalyticsUrlRotator(analyticsUrlRotationConfig?: IUrlRotationConfiguration): void;
|
|
2559
2571
|
private getAnalyticsEndpoint;
|
|
2560
2572
|
}
|
|
2561
2573
|
export declare const ApiService: ApiServiceClass;
|
|
@@ -2595,6 +2607,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
2595
2607
|
private _previewUrl;
|
|
2596
2608
|
private _previewMomentUrl;
|
|
2597
2609
|
private _sendAnalytics;
|
|
2610
|
+
private _disableAnalytics;
|
|
2598
2611
|
private _doNotTrack;
|
|
2599
2612
|
private _geoLocation;
|
|
2600
2613
|
private _staticContent;
|
|
@@ -2635,6 +2648,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
2635
2648
|
get environment(): EnvironmentType;
|
|
2636
2649
|
private set environment(value);
|
|
2637
2650
|
get sendAnalytics(): boolean;
|
|
2651
|
+
get disableAnalytics(): boolean;
|
|
2652
|
+
set disableAnalytics(value: boolean);
|
|
2638
2653
|
get shouldCreateUser(): boolean;
|
|
2639
2654
|
get analyticsApiUrl(): string;
|
|
2640
2655
|
get loggerApiUrl(): string;
|
|
@@ -4357,21 +4372,6 @@ export declare function validateLoggerConfigurationDetailed(config: ILoggerConfi
|
|
|
4357
4372
|
export declare function sanitizeBatchSizeConfiguration(config: ILoggerConfiguration): ILoggerConfiguration;
|
|
4358
4373
|
export declare function shouldIgnoreLog(logIdentifier: string, ignoredLogs: IIgnoredLog[]): boolean;
|
|
4359
4374
|
|
|
4360
|
-
export declare class HLSQualityManager {
|
|
4361
|
-
private static readonly MEMORY_DURATIONS;
|
|
4362
|
-
private static memory;
|
|
4363
|
-
private static getMemory;
|
|
4364
|
-
private static getDuration;
|
|
4365
|
-
private static getTypeLabel;
|
|
4366
|
-
private static isMemoryValid;
|
|
4367
|
-
static remember(level: number, width: number, height: number, isShortForm?: boolean): void;
|
|
4368
|
-
static recall(isShortForm?: boolean): number;
|
|
4369
|
-
static shouldUseMemory(isShortForm?: boolean): boolean;
|
|
4370
|
-
static getMemoryStatus(isShortForm?: boolean): string;
|
|
4371
|
-
static clear(isShortForm?: boolean): void;
|
|
4372
|
-
static getMemoryAge(isShortForm?: boolean): number;
|
|
4373
|
-
}
|
|
4374
|
-
|
|
4375
4375
|
export * from './commands/player-buttons.command';
|
|
4376
4376
|
export * from './commands/video-commands';
|
|
4377
4377
|
export * from './components/timer';
|
|
@@ -4387,7 +4387,6 @@ export * from './strategy/long-form-hls.strategy';
|
|
|
4387
4387
|
export * from './strategy/base-hls.strategy';
|
|
4388
4388
|
export * from './strategy/short-form-hls.strategy';
|
|
4389
4389
|
export * from './strategy/native-video.strategy';
|
|
4390
|
-
export * from './hls-quality-manager';
|
|
4391
4390
|
export * from './interface/playback-strategy.interface';
|
|
4392
4391
|
export * from './video-events';
|
|
4393
4392
|
|
|
@@ -5015,32 +5014,32 @@ export interface HLSConfig {
|
|
|
5015
5014
|
}
|
|
5016
5015
|
export declare const HLS_CONFIGS: {
|
|
5017
5016
|
readonly LONG_FORM: {
|
|
5018
|
-
readonly maxBufferLength:
|
|
5019
|
-
readonly maxMaxBufferLength:
|
|
5017
|
+
readonly maxBufferLength: 30;
|
|
5018
|
+
readonly maxMaxBufferLength: 30;
|
|
5020
5019
|
readonly maxBufferSize: number;
|
|
5021
5020
|
readonly maxBufferHole: 4;
|
|
5022
|
-
readonly fragLoadingMaxRetry:
|
|
5023
|
-
readonly fragLoadingRetryDelay:
|
|
5024
|
-
readonly abrEwmaFastLive:
|
|
5025
|
-
readonly abrEwmaSlowLive:
|
|
5026
|
-
readonly abrEwmaFastVoD:
|
|
5027
|
-
readonly abrEwmaSlowVoD:
|
|
5021
|
+
readonly fragLoadingMaxRetry: 5;
|
|
5022
|
+
readonly fragLoadingRetryDelay: 1000;
|
|
5023
|
+
readonly abrEwmaFastLive: 3;
|
|
5024
|
+
readonly abrEwmaSlowLive: 9;
|
|
5025
|
+
readonly abrEwmaFastVoD: 3;
|
|
5026
|
+
readonly abrEwmaSlowVoD: 9;
|
|
5028
5027
|
readonly abrBandWidthFactor: 0.95;
|
|
5029
|
-
readonly abrBandWidthUpFactor: 0.
|
|
5028
|
+
readonly abrBandWidthUpFactor: 0.7;
|
|
5030
5029
|
};
|
|
5031
5030
|
readonly SHORT_FORM: {
|
|
5032
|
-
readonly maxBufferLength:
|
|
5033
|
-
readonly maxMaxBufferLength:
|
|
5031
|
+
readonly maxBufferLength: 3;
|
|
5032
|
+
readonly maxMaxBufferLength: 5;
|
|
5034
5033
|
readonly maxBufferSize: number;
|
|
5035
5034
|
readonly maxBufferHole: 0.5;
|
|
5036
|
-
readonly fragLoadingMaxRetry:
|
|
5037
|
-
readonly fragLoadingRetryDelay:
|
|
5038
|
-
readonly abrEwmaFastLive:
|
|
5039
|
-
readonly abrEwmaSlowLive:
|
|
5040
|
-
readonly abrEwmaFastVoD:
|
|
5041
|
-
readonly abrEwmaSlowVoD:
|
|
5042
|
-
readonly abrBandWidthFactor: 0.
|
|
5043
|
-
readonly abrBandWidthUpFactor: 0.
|
|
5035
|
+
readonly fragLoadingMaxRetry: 2;
|
|
5036
|
+
readonly fragLoadingRetryDelay: 200;
|
|
5037
|
+
readonly abrEwmaFastLive: 1;
|
|
5038
|
+
readonly abrEwmaSlowLive: 2;
|
|
5039
|
+
readonly abrEwmaFastVoD: 1;
|
|
5040
|
+
readonly abrEwmaSlowVoD: 2;
|
|
5041
|
+
readonly abrBandWidthFactor: 0.9;
|
|
5042
|
+
readonly abrBandWidthUpFactor: 0.8;
|
|
5044
5043
|
};
|
|
5045
5044
|
};
|
|
5046
5045
|
export declare abstract class BaseHLSStrategy extends BasePlaybackStrategy {
|
|
@@ -5053,6 +5052,7 @@ export declare abstract class BaseHLSStrategy extends BasePlaybackStrategy {
|
|
|
5053
5052
|
protected loaderTimeout?: ReturnType<typeof setTimeout>;
|
|
5054
5053
|
protected recoveryTimeout?: ReturnType<typeof setTimeout>;
|
|
5055
5054
|
protected seekRecoveryListener?: () => void;
|
|
5055
|
+
protected boundOnManifestParsed: () => void;
|
|
5056
5056
|
protected boundOnBufferAppended: () => void;
|
|
5057
5057
|
protected boundOnFragParsed: () => void;
|
|
5058
5058
|
protected boundOnLoadedMetadata: () => void;
|
|
@@ -5090,6 +5090,7 @@ export declare abstract class BaseHLSStrategy extends BasePlaybackStrategy {
|
|
|
5090
5090
|
protected handlePlaybackTimeout(): void;
|
|
5091
5091
|
protected handleSeekRecovery(seekTime: number): void;
|
|
5092
5092
|
protected isSlowConnection(): boolean;
|
|
5093
|
+
protected handleManifestParsed(): void;
|
|
5093
5094
|
protected handleBufferAppended(): void;
|
|
5094
5095
|
protected handleFragParsed(): void;
|
|
5095
5096
|
protected handleError(event: any, data: any): void;
|
|
@@ -5151,7 +5152,6 @@ export declare class LongFormHlsStrategy extends BaseHLSStrategy {
|
|
|
5151
5152
|
private videoOverlay?;
|
|
5152
5153
|
initialize(options?: PlaybackStrategyOptions): void;
|
|
5153
5154
|
private configureVideoElement;
|
|
5154
|
-
protected setupHLSInstance(src: string, startingTime: number): void;
|
|
5155
5155
|
protected onLoadingState(): void;
|
|
5156
5156
|
protected onBufferUpdate(progress: number): void;
|
|
5157
5157
|
protected onError(event: any, data: any): void;
|