@wscsports/blaze-web-sdk 0.25.0 → 0.27.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 +47 -22
- 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;
|
|
@@ -2061,6 +2063,7 @@ export interface IBlazeSDKOptions {
|
|
|
2061
2063
|
previewUrl?: string;
|
|
2062
2064
|
previewMomentUrl?: string;
|
|
2063
2065
|
doNotTrack?: boolean;
|
|
2066
|
+
disableAnalytics?: boolean;
|
|
2064
2067
|
geoLocation?: string;
|
|
2065
2068
|
staticContent?: boolean;
|
|
2066
2069
|
staticContentType?: ContentType;
|
|
@@ -2604,6 +2607,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
2604
2607
|
private _previewUrl;
|
|
2605
2608
|
private _previewMomentUrl;
|
|
2606
2609
|
private _sendAnalytics;
|
|
2610
|
+
private _disableAnalytics;
|
|
2607
2611
|
private _doNotTrack;
|
|
2608
2612
|
private _geoLocation;
|
|
2609
2613
|
private _staticContent;
|
|
@@ -2644,6 +2648,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
2644
2648
|
get environment(): EnvironmentType;
|
|
2645
2649
|
private set environment(value);
|
|
2646
2650
|
get sendAnalytics(): boolean;
|
|
2651
|
+
get disableAnalytics(): boolean;
|
|
2652
|
+
set disableAnalytics(value: boolean);
|
|
2647
2653
|
get shouldCreateUser(): boolean;
|
|
2648
2654
|
get analyticsApiUrl(): string;
|
|
2649
2655
|
get loggerApiUrl(): string;
|
|
@@ -4366,6 +4372,15 @@ export declare function validateLoggerConfigurationDetailed(config: ILoggerConfi
|
|
|
4366
4372
|
export declare function sanitizeBatchSizeConfiguration(config: ILoggerConfiguration): ILoggerConfiguration;
|
|
4367
4373
|
export declare function shouldIgnoreLog(logIdentifier: string, ignoredLogs: IIgnoredLog[]): boolean;
|
|
4368
4374
|
|
|
4375
|
+
export declare class HLSQualityManager {
|
|
4376
|
+
private static readonly DURATION;
|
|
4377
|
+
private static memory;
|
|
4378
|
+
static remember(level: number): void;
|
|
4379
|
+
static recall(): number;
|
|
4380
|
+
static shouldUseMemory(): boolean;
|
|
4381
|
+
static clear(): void;
|
|
4382
|
+
}
|
|
4383
|
+
|
|
4369
4384
|
export * from './commands/player-buttons.command';
|
|
4370
4385
|
export * from './commands/video-commands';
|
|
4371
4386
|
export * from './components/timer';
|
|
@@ -4381,6 +4396,7 @@ export * from './strategy/long-form-hls.strategy';
|
|
|
4381
4396
|
export * from './strategy/base-hls.strategy';
|
|
4382
4397
|
export * from './strategy/short-form-hls.strategy';
|
|
4383
4398
|
export * from './strategy/native-video.strategy';
|
|
4399
|
+
export * from './hls-quality-manager';
|
|
4384
4400
|
export * from './interface/playback-strategy.interface';
|
|
4385
4401
|
export * from './video-events';
|
|
4386
4402
|
|
|
@@ -5008,32 +5024,32 @@ export interface HLSConfig {
|
|
|
5008
5024
|
}
|
|
5009
5025
|
export declare const HLS_CONFIGS: {
|
|
5010
5026
|
readonly LONG_FORM: {
|
|
5011
|
-
readonly
|
|
5012
|
-
readonly
|
|
5027
|
+
readonly abrEwmaFastLive: 2;
|
|
5028
|
+
readonly abrEwmaSlowLive: 3;
|
|
5029
|
+
readonly abrEwmaFastVoD: 2;
|
|
5030
|
+
readonly abrEwmaSlowVoD: 3;
|
|
5031
|
+
readonly abrBandWidthFactor: 0.95;
|
|
5032
|
+
readonly abrBandWidthUpFactor: 0.9;
|
|
5033
|
+
readonly fragLoadingMaxRetry: 3;
|
|
5034
|
+
readonly fragLoadingRetryDelay: 100;
|
|
5035
|
+
readonly maxBufferLength: 15;
|
|
5036
|
+
readonly maxMaxBufferLength: 20;
|
|
5013
5037
|
readonly maxBufferSize: number;
|
|
5014
5038
|
readonly maxBufferHole: 4;
|
|
5015
|
-
readonly fragLoadingMaxRetry: 5;
|
|
5016
|
-
readonly fragLoadingRetryDelay: 1000;
|
|
5017
|
-
readonly abrEwmaFastLive: 3;
|
|
5018
|
-
readonly abrEwmaSlowLive: 9;
|
|
5019
|
-
readonly abrEwmaFastVoD: 3;
|
|
5020
|
-
readonly abrEwmaSlowVoD: 9;
|
|
5021
|
-
readonly abrBandWidthFactor: 0.95;
|
|
5022
|
-
readonly abrBandWidthUpFactor: 0.7;
|
|
5023
5039
|
};
|
|
5024
5040
|
readonly SHORT_FORM: {
|
|
5025
|
-
readonly
|
|
5026
|
-
readonly
|
|
5041
|
+
readonly abrEwmaFastLive: 2;
|
|
5042
|
+
readonly abrEwmaSlowLive: 3;
|
|
5043
|
+
readonly abrEwmaFastVoD: 2;
|
|
5044
|
+
readonly abrEwmaSlowVoD: 3;
|
|
5045
|
+
readonly abrBandWidthFactor: 0.95;
|
|
5046
|
+
readonly abrBandWidthUpFactor: 0.9;
|
|
5047
|
+
readonly fragLoadingMaxRetry: 3;
|
|
5048
|
+
readonly fragLoadingRetryDelay: 100;
|
|
5049
|
+
readonly maxBufferLength: 5;
|
|
5050
|
+
readonly maxMaxBufferLength: 8;
|
|
5027
5051
|
readonly maxBufferSize: number;
|
|
5028
5052
|
readonly maxBufferHole: 0.5;
|
|
5029
|
-
readonly fragLoadingMaxRetry: 2;
|
|
5030
|
-
readonly fragLoadingRetryDelay: 200;
|
|
5031
|
-
readonly abrEwmaFastLive: 1;
|
|
5032
|
-
readonly abrEwmaSlowLive: 2;
|
|
5033
|
-
readonly abrEwmaFastVoD: 1;
|
|
5034
|
-
readonly abrEwmaSlowVoD: 2;
|
|
5035
|
-
readonly abrBandWidthFactor: 0.9;
|
|
5036
|
-
readonly abrBandWidthUpFactor: 0.8;
|
|
5037
5053
|
};
|
|
5038
5054
|
};
|
|
5039
5055
|
export declare abstract class BaseHLSStrategy extends BasePlaybackStrategy {
|
|
@@ -5046,13 +5062,13 @@ export declare abstract class BaseHLSStrategy extends BasePlaybackStrategy {
|
|
|
5046
5062
|
protected loaderTimeout?: ReturnType<typeof setTimeout>;
|
|
5047
5063
|
protected recoveryTimeout?: ReturnType<typeof setTimeout>;
|
|
5048
5064
|
protected seekRecoveryListener?: () => void;
|
|
5049
|
-
protected boundOnManifestParsed: () => void;
|
|
5050
5065
|
protected boundOnBufferAppended: () => void;
|
|
5051
5066
|
protected boundOnFragParsed: () => void;
|
|
5052
5067
|
protected boundOnLoadedMetadata: () => void;
|
|
5053
5068
|
protected boundOnPlaying: () => void;
|
|
5054
5069
|
protected boundOnCanPlay: () => void;
|
|
5055
5070
|
protected boundOnError: (event: any, data: any) => void;
|
|
5071
|
+
protected boundOnLevelSwitched: (event: any, data: any) => void;
|
|
5056
5072
|
protected boundOnNativeError: (e: Event) => void;
|
|
5057
5073
|
constructor(video: HTMLVideoElement);
|
|
5058
5074
|
abstract initialize(options?: any): void;
|
|
@@ -5084,11 +5100,11 @@ export declare abstract class BaseHLSStrategy extends BasePlaybackStrategy {
|
|
|
5084
5100
|
protected handlePlaybackTimeout(): void;
|
|
5085
5101
|
protected handleSeekRecovery(seekTime: number): void;
|
|
5086
5102
|
protected isSlowConnection(): boolean;
|
|
5087
|
-
protected handleManifestParsed(): void;
|
|
5088
5103
|
protected handleBufferAppended(): void;
|
|
5089
5104
|
protected handleFragParsed(): void;
|
|
5090
5105
|
protected handleError(event: any, data: any): void;
|
|
5091
5106
|
protected handlePlaying(): void;
|
|
5107
|
+
protected handleLevelSwitched(event: any, data: any): void;
|
|
5092
5108
|
protected handleNativeError(e: Event): void;
|
|
5093
5109
|
protected handleLoadedMetadata(): void;
|
|
5094
5110
|
protected getBufferProgress(): number;
|
|
@@ -5146,6 +5162,7 @@ export declare class LongFormHlsStrategy extends BaseHLSStrategy {
|
|
|
5146
5162
|
private videoOverlay?;
|
|
5147
5163
|
initialize(options?: PlaybackStrategyOptions): void;
|
|
5148
5164
|
private configureVideoElement;
|
|
5165
|
+
protected setupHLSInstance(src: string, startingTime: number): void;
|
|
5149
5166
|
protected onLoadingState(): void;
|
|
5150
5167
|
protected onBufferUpdate(progress: number): void;
|
|
5151
5168
|
protected onError(event: any, data: any): void;
|
|
@@ -5213,6 +5230,9 @@ export declare class ShortFormHLSStrategy extends BaseHLSStrategy {
|
|
|
5213
5230
|
private lastProgressTime;
|
|
5214
5231
|
private lastCurrentTime;
|
|
5215
5232
|
private boundOnTimeUpdate;
|
|
5233
|
+
private readonly MIN_BUFFER_BEFORE_RECOVERY;
|
|
5234
|
+
private lastRecoveryAttempt;
|
|
5235
|
+
private readonly RECOVERY_COOLDOWN;
|
|
5216
5236
|
initialize(options?: PlaybackStrategyOptions): void;
|
|
5217
5237
|
protected setupEventListeners(): void;
|
|
5218
5238
|
protected setupHLSInstance(src: string, startingTime: number): void;
|
|
@@ -5224,6 +5244,7 @@ export declare class ShortFormHLSStrategy extends BaseHLSStrategy {
|
|
|
5224
5244
|
protected onBufferUpdate(progress: number): void;
|
|
5225
5245
|
protected handlePlaying(): void;
|
|
5226
5246
|
protected handlePause(): void;
|
|
5247
|
+
protected handlePlaybackTimeout(): void;
|
|
5227
5248
|
protected onError(event: any, data: any): void;
|
|
5228
5249
|
protected handleError(event: any, data: any): void;
|
|
5229
5250
|
protected handleSeekRecovery(seekTime: number): void;
|
|
@@ -5235,6 +5256,10 @@ export declare class ShortFormHLSStrategy extends BaseHLSStrategy {
|
|
|
5235
5256
|
private startProgressBasedLoaderCleanup;
|
|
5236
5257
|
private stopProgressBasedLoaderCleanup;
|
|
5237
5258
|
private checkVideoProgressAndCleanupLoader;
|
|
5259
|
+
private getBufferAhead;
|
|
5260
|
+
private shouldTriggerRecovery;
|
|
5261
|
+
private tryForceLowestQuality;
|
|
5262
|
+
private canAttemptRecovery;
|
|
5238
5263
|
}
|
|
5239
5264
|
|
|
5240
5265
|
export * from './widget-video-base';
|