@wscsports/blaze-web-sdk 0.17.1 → 0.18.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 +27 -4
- package/publish/index.js +1 -1
package/package.json
CHANGED
package/publish/index.d.ts
CHANGED
|
@@ -32,6 +32,7 @@ export declare function setAbTestParams(abTestParams: BlazeAbTestType): void;
|
|
|
32
32
|
export declare function getAppContextManager(): Record<string, any>;
|
|
33
33
|
export declare const pushConsentEvent: (action: string, body: Record<string, any>) => void;
|
|
34
34
|
export declare const isInitialized: () => boolean;
|
|
35
|
+
export declare function setBeforeContentPlayCallback(callback: BeforeContentPlayCallback | undefined): void;
|
|
35
36
|
declare const _default: {
|
|
36
37
|
Initialize: typeof Initialize;
|
|
37
38
|
WidgetGridView: typeof WidgetGridView;
|
|
@@ -58,6 +59,7 @@ declare const _default: {
|
|
|
58
59
|
getAppContextManager: typeof getAppContextManager;
|
|
59
60
|
pushConsentEvent: (action: string, body: Record<string, any>) => void;
|
|
60
61
|
isInitialized: () => boolean;
|
|
62
|
+
setBeforeContentPlayCallback: typeof setBeforeContentPlayCallback;
|
|
61
63
|
};
|
|
62
64
|
export default _default;
|
|
63
65
|
|
|
@@ -1332,6 +1334,7 @@ export interface AppConfiguration {
|
|
|
1332
1334
|
configurations: {
|
|
1333
1335
|
analyticsAddEntitiesInfo?: string;
|
|
1334
1336
|
configRefetchIntervalInMinutes?: number;
|
|
1337
|
+
enableClientPlaybackModification?: 'true' | 'false' | string;
|
|
1335
1338
|
};
|
|
1336
1339
|
sdkLoggerConfigurations?: ILoggerConfiguration;
|
|
1337
1340
|
}
|
|
@@ -1942,6 +1945,14 @@ export interface ImaAdHandler {
|
|
|
1942
1945
|
provideAdExtraParams?: (contentExtraInfo?: ContentExtraInfo) => ImaExtraParams;
|
|
1943
1946
|
}
|
|
1944
1947
|
|
|
1948
|
+
export interface BeforeContentPlayContext {
|
|
1949
|
+
originalUrl: string;
|
|
1950
|
+
}
|
|
1951
|
+
export interface BeforeContentPlayResult {
|
|
1952
|
+
resultUrl: string;
|
|
1953
|
+
}
|
|
1954
|
+
export type BeforeContentPlayCallback = (context: BeforeContentPlayContext) => Promise<BeforeContentPlayResult> | BeforeContentPlayResult;
|
|
1955
|
+
|
|
1945
1956
|
export interface ISmoothOpenCloseModal {
|
|
1946
1957
|
storyId?: string;
|
|
1947
1958
|
pageIndex: number;
|
|
@@ -2091,6 +2102,7 @@ export type BlazeVideoIconsStyle = BaseBlazeIcons & {
|
|
|
2091
2102
|
|
|
2092
2103
|
export * from './accessibility-manager.interface';
|
|
2093
2104
|
export * from './ad-handler.interface';
|
|
2105
|
+
export * from './before-content-play.interface';
|
|
2094
2106
|
export * from './behaviors.interface';
|
|
2095
2107
|
export * from './blaze-sdk.interface';
|
|
2096
2108
|
export * from './button.interface';
|
|
@@ -2447,6 +2459,10 @@ declare abstract class AppConfigurationServiceClass extends AppConfigurationServ
|
|
|
2447
2459
|
}
|
|
2448
2460
|
export declare const AppConfigurationService: AppConfigurationServiceClass;
|
|
2449
2461
|
|
|
2462
|
+
export declare class BeforeContentPlayService {
|
|
2463
|
+
getTokenizedUrl(originalUrl: string): Promise<string>;
|
|
2464
|
+
}
|
|
2465
|
+
|
|
2450
2466
|
declare const ConfigServiceClass_base: {
|
|
2451
2467
|
new (): {};
|
|
2452
2468
|
_instance: ConfigServiceClass;
|
|
@@ -2484,6 +2500,7 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
2484
2500
|
private _appContext;
|
|
2485
2501
|
private _disableAutoLoadingContent;
|
|
2486
2502
|
private _onItemClick;
|
|
2503
|
+
private _beforeContentPlayCallback?;
|
|
2487
2504
|
protected constructor();
|
|
2488
2505
|
init(options: IBlazeSDKOptions): Promise<void>;
|
|
2489
2506
|
private readonly _russiaRegionCDN;
|
|
@@ -2545,6 +2562,8 @@ declare abstract class ConfigServiceClass extends ConfigServiceClass_base implem
|
|
|
2545
2562
|
set disableAutoLoadingContent(value: boolean);
|
|
2546
2563
|
get onItemClick(): ItemClickCallback | undefined;
|
|
2547
2564
|
set onItemClick(value: ItemClickCallback | undefined);
|
|
2565
|
+
get beforeContentPlayCallback(): BeforeContentPlayCallback | undefined;
|
|
2566
|
+
set beforeContentPlayCallback(callback: BeforeContentPlayCallback | undefined);
|
|
2548
2567
|
}
|
|
2549
2568
|
export declare const ConfigService: ConfigServiceClass;
|
|
2550
2569
|
|
|
@@ -2648,6 +2667,7 @@ export * from './ad.service';
|
|
|
2648
2667
|
export * from './analytics.service';
|
|
2649
2668
|
export * from './api.service';
|
|
2650
2669
|
export * from './app-configuration.service';
|
|
2670
|
+
export * from './before-content-play.service';
|
|
2651
2671
|
export * from './config.service';
|
|
2652
2672
|
export * from './database.service';
|
|
2653
2673
|
export * from './error.service';
|
|
@@ -4744,7 +4764,7 @@ export interface PlaybackStrategy {
|
|
|
4744
4764
|
toggleFullscreen(): void;
|
|
4745
4765
|
seek(time: number): void;
|
|
4746
4766
|
getDuration(): number;
|
|
4747
|
-
loadSource(src: string, bitRate: number, startingTime: number): void
|
|
4767
|
+
loadSource(src: string, bitRate: number, startingTime: number): Promise<void>;
|
|
4748
4768
|
unload(): void;
|
|
4749
4769
|
destroy(): void;
|
|
4750
4770
|
}
|
|
@@ -4757,6 +4777,7 @@ export declare class HLSStrategy implements PlaybackStrategy {
|
|
|
4757
4777
|
private retryCount;
|
|
4758
4778
|
private maxRetries;
|
|
4759
4779
|
private lastTime;
|
|
4780
|
+
private beforeContentPlayService;
|
|
4760
4781
|
private playbackWatchdogTimeout?;
|
|
4761
4782
|
private loaderTimeout?;
|
|
4762
4783
|
private recoveryTimeout?;
|
|
@@ -4771,7 +4792,7 @@ export declare class HLSStrategy implements PlaybackStrategy {
|
|
|
4771
4792
|
private boundOnNativeError;
|
|
4772
4793
|
constructor(video: HTMLVideoElement);
|
|
4773
4794
|
initialize(videoOverlay: BlazeLongFormControlsOverlay): void;
|
|
4774
|
-
loadSource(src: string, initialBitrate: number, startingTime?: number): void
|
|
4795
|
+
loadSource(src: string, initialBitrate: number, startingTime?: number): Promise<void>;
|
|
4775
4796
|
unload(): void;
|
|
4776
4797
|
destroy(): void;
|
|
4777
4798
|
private waitForVideoCondition;
|
|
@@ -5576,6 +5597,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
5576
5597
|
eventRenderBackgroundPercentageTriggered: Array<boolean>;
|
|
5577
5598
|
loaderTimeoutRefAppending: NodeJS.Timeout | undefined;
|
|
5578
5599
|
lastErrorExecutionTime: number;
|
|
5600
|
+
private beforeContentPlayService;
|
|
5579
5601
|
isVideoStartPlaying: boolean;
|
|
5580
5602
|
isError: boolean;
|
|
5581
5603
|
isLoaded: boolean;
|
|
@@ -5594,6 +5616,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
5594
5616
|
connectedCallback(): void;
|
|
5595
5617
|
disconnectedCallback(): void;
|
|
5596
5618
|
private getContentType;
|
|
5619
|
+
private getOriginalVideoUrl;
|
|
5597
5620
|
setData(data: IPage): void;
|
|
5598
5621
|
getGoogleIMA(): any;
|
|
5599
5622
|
private isEnableInteractions;
|
|
@@ -5603,7 +5626,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
5603
5626
|
display(): void;
|
|
5604
5627
|
hide(): void;
|
|
5605
5628
|
load(loadingType?: LoadingType): Promise<void>;
|
|
5606
|
-
setVideoSource
|
|
5629
|
+
private setVideoSource;
|
|
5607
5630
|
unload(): Promise<void>;
|
|
5608
5631
|
resetVideoState(): void;
|
|
5609
5632
|
removeLoader(): void;
|
|
@@ -5630,6 +5653,7 @@ export declare class BlazeWidgetVideo extends BlazeWidgetVideoBase {
|
|
|
5630
5653
|
onLanguageChange(event: Event): Promise<void>;
|
|
5631
5654
|
handleInteractionEvent(event: CustomEvent<InteractionAnalyticCustomEvent>): void;
|
|
5632
5655
|
private tryToPlayAd;
|
|
5656
|
+
private updateVideoUrlWithBeforeContentPlay;
|
|
5633
5657
|
}
|
|
5634
5658
|
|
|
5635
5659
|
export declare class BlazeWidgetAd extends BlazeWidgetVideoBase {
|
|
@@ -6215,7 +6239,6 @@ export declare class BlazeWidgetStory extends BlazeWidgetContent {
|
|
|
6215
6239
|
switchToPage(newPageIndex: number): void;
|
|
6216
6240
|
startPage(indexToPlay: number): void;
|
|
6217
6241
|
unload(): void;
|
|
6218
|
-
removeFromCache(): void;
|
|
6219
6242
|
displayCurrentStoryPageAndHideTheRest(): void;
|
|
6220
6243
|
load(loadingType?: LoadingType): void;
|
|
6221
6244
|
play(): void;
|