@viewlift/player-backup 2.0.115-backup → 2.0.116-backup
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/cjs/{autoNextVideo-a860d3e8.js → autoNextVideo-d2ba145d.js} +1 -1
- package/cjs/bundle.css +51 -1
- package/cjs/{features-2bb2dd4e.js → features-b9518c47.js} +1 -1
- package/cjs/generic-377c0573.js +1 -0
- package/cjs/{index-c5039d58.js → index-62222a39.js} +1 -1
- package/cjs/index-88dc9e09.js +1 -0
- package/cjs/index-94a30fd0.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/{multicamv2-4afd8915.js → multicamv2-833efcf1.js} +1 -1
- package/cjs/{multicamv2-aaaa65d6.js → multicamv2-8d52871f.js} +1 -1
- package/cjs/{nextEpisodeButton-d160dcfd.js → nextEpisodeButton-b98fc202.js} +1 -1
- package/cjs/{playlist-72ba84d5.js → playlist-ce7f9db5.js} +1 -1
- package/cjs/{series-6049ffcc.js → series-1ba5aa80.js} +1 -1
- package/cjs/{series-v2-8a4359ea.js → series-v2-66cc35c6.js} +1 -1
- package/cjs/{series-v2-ea10318d.js → series-v2-b1911450.js} +1 -1
- package/cjs/{settings-icon-27b60de6.js → settings-icon-7384b65d.js} +1 -1
- package/cjs/{skin-7a98d3fd.js → skin-207038f1.js} +1 -1
- package/cjs/skin-710efb6a.js +1 -0
- package/cjs/{skin-84eed465.js → skin-8fd50d98.js} +1 -1
- package/cjs/skin-ac9b0b26.js +1 -0
- package/cjs/{skin-021caaea.js → skin-b1e9a1d6.js} +1 -1
- package/cjs/{skin-43e130dc.js → skin-cd625772.js} +1 -1
- package/cjs/start-begin-btn-95c6cc92.js +1 -0
- package/cjs/{videoSelector-187f3529.js → videoSelector-481263de.js} +1 -1
- package/cjs/{videoSelector-9c3339e2.js → videoSelector-4cd10521.js} +1 -1
- package/cjs/{watch-live-btn-04bf383d.js → watch-live-btn-8a160941.js} +1 -1
- package/esm/{autoNextVideo-51072eff.js → autoNextVideo-0cba47e8.js} +1 -1
- package/esm/bundle.css +51 -1
- package/esm/{features-2d66d073.js → features-b17a311f.js} +1 -1
- package/esm/generic-e4833832.js +1 -0
- package/esm/{index-5863b4b8.js → index-20d3b872.js} +1 -1
- package/esm/index-7dec4239.js +1 -0
- package/esm/index-e1f939b0.js +1 -0
- package/esm/index.js +1 -1
- package/esm/{multicamv2-beef2152.js → multicamv2-716b15d0.js} +1 -1
- package/esm/{multicamv2-20406485.js → multicamv2-ea35068b.js} +1 -1
- package/esm/{nextEpisodeButton-ce9c073f.js → nextEpisodeButton-a918f043.js} +1 -1
- package/esm/{playlist-3fc8d123.js → playlist-ad9491f0.js} +1 -1
- package/esm/{series-59e62fbe.js → series-efca8869.js} +1 -1
- package/esm/{series-v2-ecbcd52a.js → series-v2-0f338773.js} +1 -1
- package/esm/{series-v2-0de0cb77.js → series-v2-38415907.js} +1 -1
- package/esm/{skin-59cd094a.js → skin-1d3bf1bb.js} +1 -1
- package/esm/{skin-757c1e70.js → skin-3fa3b400.js} +1 -1
- package/esm/{skin-93e0aec2.js → skin-6520acf0.js} +1 -1
- package/esm/{skin-7b1fe120.js → skin-c51a3958.js} +1 -1
- package/esm/skin-e55951c5.js +1 -0
- package/esm/skin-f2cb9f9e.js +1 -0
- package/esm/start-begin-btn-8120ecdd.js +1 -0
- package/esm/{videoSelector-6d99a9f5.js → videoSelector-64c721c9.js} +1 -1
- package/esm/{videoSelector-69c96a51.js → videoSelector-7c82db41.js} +1 -1
- package/esm/{watch-live-btn-2d5cd4d3.js → watch-live-btn-d4d27011.js} +1 -1
- package/package.json +1 -1
- package/cjs/generic-26d3fd75.js +0 -1
- package/cjs/index-accfed4a.js +0 -1
- package/cjs/skin-0d1b4afc.js +0 -1
- package/cjs/skin-6ab0ec46.js +0 -1
- package/cjs/start-begin-btn-35c37795.js +0 -1
- package/esm/apis/index.d.ts +0 -11
- package/esm/assets/icons.d.ts +0 -24
- package/esm/components/advertisement/advertisement.d.ts +0 -1
- package/esm/components/auto-next-video/autoNextVideo.d.ts +0 -2
- package/esm/components/broadcaster_image/index.d.ts +0 -1
- package/esm/components/caption-settings/caption-settings.d.ts +0 -14
- package/esm/components/dvr-overlay/index.d.ts +0 -1
- package/esm/components/dvr-overlay/start-begin-btn.d.ts +0 -6
- package/esm/components/dvr-overlay/watch-live-btn.d.ts +0 -6
- package/esm/components/dvr-seekbar/index.d.ts +0 -14
- package/esm/components/multicam/multicam.d.ts +0 -18
- package/esm/components/multicam-v2/multicamv2.d.ts +0 -13
- package/esm/components/multicam-v2_TEMP/multicamv2.d.ts +0 -13
- package/esm/components/next-ep-preview/next-ep-preview.d.ts +0 -1
- package/esm/components/next-episode/nextEpisodeButton.d.ts +0 -13
- package/esm/components/playlist-tray/playlist.d.ts +0 -15
- package/esm/components/quality-selector/index.d.ts +0 -1
- package/esm/components/resolution/resolution-v2.d.ts +0 -18
- package/esm/components/resolution/resolution.d.ts +0 -20
- package/esm/components/series/series.d.ts +0 -10
- package/esm/components/series-v2/helper.d.ts +0 -3
- package/esm/components/series-v2/series-v2.d.ts +0 -25
- package/esm/components/series-v2_TEMP/helper.d.ts +0 -1
- package/esm/components/series-v2_TEMP/series-v2.d.ts +0 -21
- package/esm/components/settings-icon/settings-icon.d.ts +0 -17
- package/esm/components/trickplay/helper.d.ts +0 -13
- package/esm/components/trickplay/index.d.ts +0 -1
- package/esm/components/trickplay/videojs.thumbnails.d.ts +0 -1
- package/esm/components/video-selector/videoSelector.d.ts +0 -18
- package/esm/components/video-selector_TEMP/videoSelector.d.ts +0 -16
- package/esm/components/watch-history/handleWatchHistory.d.ts +0 -2
- package/esm/contentHandler/content_types/epg.d.ts +0 -4
- package/esm/contentHandler/content_types/external.d.ts +0 -4
- package/esm/contentHandler/content_types/index.d.ts +0 -5
- package/esm/contentHandler/content_types/series.d.ts +0 -4
- package/esm/contentHandler/content_types/vod.d.ts +0 -4
- package/esm/contentHandler/firePlayer.d.ts +0 -4
- package/esm/core/captions.d.ts +0 -10
- package/esm/core/generic.d.ts +0 -48
- package/esm/core/player_instance.d.ts +0 -6
- package/esm/core/renditions.d.ts +0 -6
- package/esm/core/util.d.ts +0 -16
- package/esm/core/volume.d.ts +0 -2
- package/esm/dash/dashHandler.d.ts +0 -1
- package/esm/dash/sgai.d.ts +0 -9
- package/esm/features.d.ts +0 -32
- package/esm/generic-7fb8e9c5.js +0 -1
- package/esm/globalPlayerEvents.d.ts +0 -8
- package/esm/helpers/browser.d.ts +0 -2
- package/esm/helpers/currentVideoInfo.d.ts +0 -14
- package/esm/helpers/errorHandling.d.ts +0 -2
- package/esm/helpers/loader.d.ts +0 -2
- package/esm/helpers/localisation.d.ts +0 -2
- package/esm/helpers/scriptLoader.d.ts +0 -2
- package/esm/helpers/secondary-switching.d.ts +0 -1
- package/esm/helpers/skin.d.ts +0 -14
- package/esm/helpers/sourceRetriever.d.ts +0 -11
- package/esm/helpers/ssaiEventHandler.d.ts +0 -27
- package/esm/helpers/token.d.ts +0 -9
- package/esm/index-90fd8adf.js +0 -1
- package/esm/index.d.ts +0 -42
- package/esm/plugins/chromecast.d.ts +0 -18
- package/esm/plugins/index.d.ts +0 -2
- package/esm/plugins/library.d.ts +0 -7
- package/esm/plugins/videojs-dash5.es.d.ts +0 -51
- package/esm/plugins/videojs_contrib_dash.d.ts +0 -51
- package/esm/skin/carousel/skin.d.ts +0 -1
- package/esm/skin/default/events.d.ts +0 -1
- package/esm/skin/default/skin.d.ts +0 -1
- package/esm/skin/defaultV2/events.d.ts +0 -1
- package/esm/skin/defaultV2/skin.d.ts +0 -1
- package/esm/skin/index.d.ts +0 -1
- package/esm/skin/minimalist/skin.d.ts +0 -1
- package/esm/skin/multiplayer/events.d.ts +0 -1
- package/esm/skin/multiplayer/skin.d.ts +0 -1
- package/esm/skin/vl_one/events.d.ts +0 -1
- package/esm/skin/vl_one/skin.d.ts +0 -1
- package/esm/skin-0a984a02.js +0 -1
- package/esm/skin-6faad821.js +0 -1
- package/esm/start-begin-btn-63a71f73.js +0 -1
- package/esm/utilities/analytics.d.ts +0 -3
- package/esm/utilities/beacon.d.ts +0 -3
- package/esm/utilities/controlsColor.d.ts +0 -1
- package/esm/utilities/conviva.d.ts +0 -5
- package/esm/utilities/keyboardShortcuts.d.ts +0 -5
- package/esm/utilities/replaceMacros.d.ts +0 -1
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export default Captions;
|
|
2
|
-
declare const Captions_base: typeof import("video.js/dist/types/component").default;
|
|
3
|
-
declare class Captions extends Captions_base {
|
|
4
|
-
constructor(player: any, options?: {});
|
|
5
|
-
playerId: any;
|
|
6
|
-
seriesData: any;
|
|
7
|
-
currentVideoData: any;
|
|
8
|
-
createEl(): Element;
|
|
9
|
-
loadCSS(): void;
|
|
10
|
-
initialiseStructure(): void;
|
|
11
|
-
addFunctionality(selectionContainer: any): void;
|
|
12
|
-
createLanguageContanier(): Element;
|
|
13
|
-
createFontSizeContainer(): Element;
|
|
14
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function addDvrOverlay(playerId: any, config: any): void;
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
export default StartFromBeginingButton;
|
|
2
|
-
declare const StartFromBeginingButton_base: typeof import("video.js/dist/types/component").default;
|
|
3
|
-
declare class StartFromBeginingButton extends StartFromBeginingButton_base {
|
|
4
|
-
constructor(player: any, options: any);
|
|
5
|
-
createEl(): Element;
|
|
6
|
-
}
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export default dvrSeekbar;
|
|
2
|
-
/**
|
|
3
|
-
* A video.js plugin.
|
|
4
|
-
*
|
|
5
|
-
* In the plugin function, the value of `this` is a video.js `Player`
|
|
6
|
-
* instance. You cannot rely on the player being in a "ready" state here,
|
|
7
|
-
* depending on how the plugin is invoked. This may or may not be important
|
|
8
|
-
* to you; if not, remove the wait for "ready"!
|
|
9
|
-
*
|
|
10
|
-
* @function dvrSeekbar
|
|
11
|
-
* @param {Object} [options={}]
|
|
12
|
-
* An object of options left to the plugin author to define.
|
|
13
|
-
*/
|
|
14
|
-
declare function dvrSeekbar(options?: any): void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export default multicamModule;
|
|
2
|
-
declare const multicamModule_base: typeof import("video.js/dist/types/component.js").default;
|
|
3
|
-
declare class multicamModule extends multicamModule_base {
|
|
4
|
-
constructor(player: any, options?: {});
|
|
5
|
-
playerId: any;
|
|
6
|
-
streams: any;
|
|
7
|
-
config: any;
|
|
8
|
-
createEl(): Element;
|
|
9
|
-
createUI(streams: any): void;
|
|
10
|
-
multicamCssPositioning: (parent: any, playerId: any) => void;
|
|
11
|
-
getOffset(el: any): {
|
|
12
|
-
left: any;
|
|
13
|
-
top: any;
|
|
14
|
-
};
|
|
15
|
-
createTile(obj: any, index: any): Element;
|
|
16
|
-
removeSelectedTile(): void;
|
|
17
|
-
loadCSS(): void;
|
|
18
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default multicamv2;
|
|
2
|
-
declare const multicamv2_base: typeof import("video.js/dist/types/component.js").default;
|
|
3
|
-
declare class multicamv2 extends multicamv2_base {
|
|
4
|
-
constructor(player: any, options?: {});
|
|
5
|
-
playerId: any;
|
|
6
|
-
seriesData: any;
|
|
7
|
-
streams: any;
|
|
8
|
-
currentVideoData: any;
|
|
9
|
-
createEl(): Element;
|
|
10
|
-
loadCSS(): void;
|
|
11
|
-
initialiseStructure(): void;
|
|
12
|
-
addFunctionality(selectionContainer: any): void;
|
|
13
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default multicamv2;
|
|
2
|
-
declare const multicamv2_base: typeof import("video.js/dist/types/component.js").default;
|
|
3
|
-
declare class multicamv2 extends multicamv2_base {
|
|
4
|
-
constructor(player: any, options?: {});
|
|
5
|
-
playerId: any;
|
|
6
|
-
seriesData: any;
|
|
7
|
-
streams: any;
|
|
8
|
-
currentVideoData: any;
|
|
9
|
-
createEl(): Element;
|
|
10
|
-
loadCSS(): void;
|
|
11
|
-
initialiseStructure(): void;
|
|
12
|
-
addFunctionality(selectionContainer: any): void;
|
|
13
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function addNextEpPreview(playerId: any, options: any): void;
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export default nextEpisodeButton;
|
|
2
|
-
export function initaliseFunctionality(seriesData: any, res: any): void;
|
|
3
|
-
declare const nextEpisodeButton_base: typeof import("video.js/dist/types/component.js").default;
|
|
4
|
-
declare class nextEpisodeButton extends nextEpisodeButton_base {
|
|
5
|
-
constructor(player: any, options?: {});
|
|
6
|
-
playerId: any;
|
|
7
|
-
seriesData: any;
|
|
8
|
-
currentVideoData: any;
|
|
9
|
-
createEl(): Element;
|
|
10
|
-
loadCSS(): void;
|
|
11
|
-
initialiseStructure(): void;
|
|
12
|
-
toggleContentOnHover(head: any, content: any): void;
|
|
13
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export default playlistSelector;
|
|
2
|
-
declare const playlistSelector_base: typeof import("video.js/dist/types/component.js").default;
|
|
3
|
-
declare class playlistSelector extends playlistSelector_base {
|
|
4
|
-
constructor(player: any, options?: {});
|
|
5
|
-
playerId: any;
|
|
6
|
-
seriesData: any;
|
|
7
|
-
videos: any;
|
|
8
|
-
cb: any;
|
|
9
|
-
autoNext: any;
|
|
10
|
-
currentVideoData: any;
|
|
11
|
-
createEl(): Element;
|
|
12
|
-
loadCSS(): void;
|
|
13
|
-
initialiseStructure(): void;
|
|
14
|
-
addFunctionality(selectionContainer: any): void;
|
|
15
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function addQualitySelector(playerId: any): void;
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export default resolutionModule;
|
|
2
|
-
declare const resolutionModule_base: typeof import("video.js/dist/types/component").default;
|
|
3
|
-
declare class resolutionModule extends resolutionModule_base {
|
|
4
|
-
constructor(player: any, options: any);
|
|
5
|
-
buildWrapperCSSClass(): string;
|
|
6
|
-
createMenu(): import("video.js/dist/types/component").default;
|
|
7
|
-
createRenditions(ele: any): ResolutionMenuItem;
|
|
8
|
-
createDashRenditions(ele: any): ResolutionMenuItem;
|
|
9
|
-
removeDuplicateResolution(masterRenditions: any): any;
|
|
10
|
-
}
|
|
11
|
-
declare const ResolutionMenuItem_base: typeof import("video.js/dist/types/component").default;
|
|
12
|
-
declare class ResolutionMenuItem extends ResolutionMenuItem_base {
|
|
13
|
-
constructor(player: any, options: any);
|
|
14
|
-
_options: any;
|
|
15
|
-
handleClick(): void;
|
|
16
|
-
playSelectedResolution: () => void;
|
|
17
|
-
resetPlaybackPosition(player: any): void;
|
|
18
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export default resolutionModule;
|
|
2
|
-
export function playSelectedResolution(playerId: any, obj: any, auto: any): void;
|
|
3
|
-
declare const resolutionModule_base: typeof import("video.js/dist/types/component").default;
|
|
4
|
-
declare class resolutionModule extends resolutionModule_base {
|
|
5
|
-
constructor(player: any, options?: {});
|
|
6
|
-
masterRenditions: any[];
|
|
7
|
-
playerId: any;
|
|
8
|
-
skin: any;
|
|
9
|
-
icon: any;
|
|
10
|
-
fontSizeOptions: number[];
|
|
11
|
-
toggleContentOnHover(head: any, content: any): void;
|
|
12
|
-
changeFontSize(optionSelected: any): void;
|
|
13
|
-
createRenditions(masterRenditions: any): void;
|
|
14
|
-
addCustomFont: (content: any) => void;
|
|
15
|
-
addDynamicSwitchIfAuto(): void;
|
|
16
|
-
resetRenditions: () => void;
|
|
17
|
-
createEl(): Element;
|
|
18
|
-
addAutoRendition(videoType: any, renditionValues: any): void;
|
|
19
|
-
removeDuplicateResolution(masterRenditions: any): any;
|
|
20
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function customSeasonList(buttonElement: any, seriesData: any): void;
|
|
2
|
-
declare const seriesModule_base: typeof import("video.js/dist/types/component").default;
|
|
3
|
-
export class seriesModule extends seriesModule_base {
|
|
4
|
-
constructor(player: any, options?: {});
|
|
5
|
-
seriesData: any[];
|
|
6
|
-
createEl(): HTMLDivElement;
|
|
7
|
-
loadCSS(): void;
|
|
8
|
-
}
|
|
9
|
-
export function handleSeasonChange(season: any, idx: any, player: any, config: any): void;
|
|
10
|
-
export {};
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
export default SeriesV2;
|
|
2
|
-
declare const SeriesV2_base: typeof import("video.js/dist/types/component.js").default;
|
|
3
|
-
declare class SeriesV2 extends SeriesV2_base {
|
|
4
|
-
constructor(player: any, options?: {});
|
|
5
|
-
playerId: any;
|
|
6
|
-
seriesData: any;
|
|
7
|
-
videos: any;
|
|
8
|
-
currentVideoData: any;
|
|
9
|
-
selectedSeason: number;
|
|
10
|
-
cb: any;
|
|
11
|
-
autoPlayNext: any;
|
|
12
|
-
watchMap: any;
|
|
13
|
-
createEl(): Element;
|
|
14
|
-
loadCSS(): void;
|
|
15
|
-
toggleOpenClose(selectionContainer: any): void;
|
|
16
|
-
handleTabIndexSelector(): void;
|
|
17
|
-
handleCloseTabIndex(): void;
|
|
18
|
-
initialiseStructure(): void;
|
|
19
|
-
handleSeriesCloseIcon(icon: any, selectionContainer: any, head: any): void;
|
|
20
|
-
addFunctionality(selectionContainer: any): void;
|
|
21
|
-
createSeasonLister(): Element;
|
|
22
|
-
loadSeriesAssetById(episodes: any, i: any): void;
|
|
23
|
-
getSeasonDetailsContainer(episodes: any, content: any): Window;
|
|
24
|
-
showSeasonDetails(season: any): void;
|
|
25
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function createSeriesWatchMap(seriesId: any, token: any): void;
|
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
export default SeriesV2;
|
|
2
|
-
declare const SeriesV2_base: typeof import("video.js/dist/types/component.js").default;
|
|
3
|
-
declare class SeriesV2 extends SeriesV2_base {
|
|
4
|
-
constructor(player: any, options?: {});
|
|
5
|
-
playerId: any;
|
|
6
|
-
seriesData: any;
|
|
7
|
-
videos: any;
|
|
8
|
-
currentVideoData: any;
|
|
9
|
-
selectedSeason: number;
|
|
10
|
-
cb: any;
|
|
11
|
-
autoPlayNext: any;
|
|
12
|
-
watchMap: any;
|
|
13
|
-
createEl(): Element;
|
|
14
|
-
loadCSS(): void;
|
|
15
|
-
toggleOpenClose(selectionContainer: any): void;
|
|
16
|
-
initialiseStructure(): void;
|
|
17
|
-
addFunctionality(selectionContainer: any): void;
|
|
18
|
-
createSeasonLister(): Element;
|
|
19
|
-
getSeasonDetailsContainer(episodes: any, content: any): Window;
|
|
20
|
-
showSeasonDetails(season: any): void;
|
|
21
|
-
}
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
export default SettingsV2;
|
|
2
|
-
declare const SettingsV2_base: typeof import("video.js/dist/types/component").default;
|
|
3
|
-
declare class SettingsV2 extends SettingsV2_base {
|
|
4
|
-
constructor(player: any, options?: {});
|
|
5
|
-
playerId: any;
|
|
6
|
-
seriesData: any;
|
|
7
|
-
currentVideoData: any;
|
|
8
|
-
fillResolutionBitrateMap(renditions: any): void;
|
|
9
|
-
resolutionBitrateMap: Map<any, any>;
|
|
10
|
-
isEnhancedBitrate(rendition: any): boolean;
|
|
11
|
-
createEl(): Element;
|
|
12
|
-
loadCSS(): void;
|
|
13
|
-
initialiseStructure(): void;
|
|
14
|
-
addFunctionality(selectionContainer: any): void;
|
|
15
|
-
createAudioQualityContainer(): Element;
|
|
16
|
-
createVideoQualityContainer(): Element;
|
|
17
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
export function processAllImages(imageStreams: any): Promise<{}>;
|
|
2
|
-
export function fetchAndParseM3U8(url: any, playerId: any): Promise<any[]>;
|
|
3
|
-
export function getImageStreams(masterURI: any, imageURI: any): Promise<{
|
|
4
|
-
resolution: any;
|
|
5
|
-
duration: any;
|
|
6
|
-
uri: any;
|
|
7
|
-
layout: any;
|
|
8
|
-
}[]>;
|
|
9
|
-
export function fetchAndParseMPD(mpdUrl: any, playerId: any): Promise<{
|
|
10
|
-
duration: number;
|
|
11
|
-
layout: string;
|
|
12
|
-
uri: string;
|
|
13
|
-
}[]>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function initiateTrickplay(playerId: any): Promise<void>;
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export {};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export default videoSelector;
|
|
2
|
-
declare const videoSelector_base: typeof import("video.js/dist/types/component.js").default;
|
|
3
|
-
declare class videoSelector extends videoSelector_base {
|
|
4
|
-
constructor(player: any, options?: {});
|
|
5
|
-
playerId: any;
|
|
6
|
-
seriesData: any;
|
|
7
|
-
videos: any;
|
|
8
|
-
cb: any;
|
|
9
|
-
autoNext: any;
|
|
10
|
-
currentVideoData: any;
|
|
11
|
-
createEl(): Element;
|
|
12
|
-
loadCSS(): void;
|
|
13
|
-
initialiseStructure(): void;
|
|
14
|
-
loadVideoAssetById(i: any): void;
|
|
15
|
-
handleTabIndexSelector(): void;
|
|
16
|
-
handleCloseTabIndex(): void;
|
|
17
|
-
addFunctionality(selectionContainer: any): void;
|
|
18
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export default videoSelector;
|
|
2
|
-
declare const videoSelector_base: typeof import("video.js/dist/types/component.js").default;
|
|
3
|
-
declare class videoSelector extends videoSelector_base {
|
|
4
|
-
constructor(player: any, options?: {});
|
|
5
|
-
playerId: any;
|
|
6
|
-
seriesData: any;
|
|
7
|
-
videos: any;
|
|
8
|
-
cb: any;
|
|
9
|
-
autoNext: any;
|
|
10
|
-
currentVideoData: any;
|
|
11
|
-
createEl(): Element;
|
|
12
|
-
loadCSS(): void;
|
|
13
|
-
initialiseStructure(): void;
|
|
14
|
-
toggleOpenClose(): void;
|
|
15
|
-
addFunctionality(selectionContainer: any): void;
|
|
16
|
-
}
|
package/esm/core/captions.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export function getCaptions(playerId: any): any;
|
|
2
|
-
export function removeCaptions(playerId: any): void;
|
|
3
|
-
/**
|
|
4
|
-
* Adds Subtitles in the player
|
|
5
|
-
* @param {String} [playerId] [playerId of the player]
|
|
6
|
-
* @param {String} [subTitles] [subTitles to be added]
|
|
7
|
-
*/
|
|
8
|
-
export function addCaptions(playerId?: string, subTitles?: string): void;
|
|
9
|
-
export function enableCaptions(playerId: any, trackId: any): void;
|
|
10
|
-
export function disableCaptions(playerId: any, trackId: any): void;
|
package/esm/core/generic.d.ts
DELETED
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Play video
|
|
3
|
-
* @param {String} [playerId] [playerId of the player]
|
|
4
|
-
*/
|
|
5
|
-
export function play(playerId?: string): void;
|
|
6
|
-
/**
|
|
7
|
-
* Pause video
|
|
8
|
-
* @param {String} [playerId] [playerId of the player]
|
|
9
|
-
*/
|
|
10
|
-
export function pause(playerId?: string): void;
|
|
11
|
-
export function isPaused(playerId: any): boolean;
|
|
12
|
-
/**
|
|
13
|
-
* Skips video
|
|
14
|
-
* @param {String} [playerId] [playerId of the player]
|
|
15
|
-
* @param {Number} [time] [time in seconds to be skipped]
|
|
16
|
-
*/
|
|
17
|
-
export function skip(playerId?: string, time?: number): void;
|
|
18
|
-
/**
|
|
19
|
-
* Rewinds video
|
|
20
|
-
* @param {String} [playerId=undefined] [playerId of the player]
|
|
21
|
-
* @param {Number} [time=0] [time in seconds to be rewinded]
|
|
22
|
-
*/
|
|
23
|
-
export function rewind(playerId?: string, time?: number): void;
|
|
24
|
-
/**
|
|
25
|
-
* Reset Player
|
|
26
|
-
* @param {String} [playerId] [playerId of the player]
|
|
27
|
-
*/
|
|
28
|
-
export function reset(playerId?: string): void;
|
|
29
|
-
/**
|
|
30
|
-
* Check if player is initialised
|
|
31
|
-
* @param {String} [playerId] [playerId of the player]
|
|
32
|
-
* @return {Boolean} player state i.e true if initialised and false if not
|
|
33
|
-
*/
|
|
34
|
-
export function isPlayerInitialised(playerId?: string): boolean;
|
|
35
|
-
export function load(playerId: any, videoId: any, token_deprecated: any): Promise<any>;
|
|
36
|
-
/**
|
|
37
|
-
* Loads video in player
|
|
38
|
-
* @param {Object} [player] [instance of the player]
|
|
39
|
-
* @param {String} src [src url of the video]
|
|
40
|
-
*/
|
|
41
|
-
export function loadVideo(playerId: any, src: string): void;
|
|
42
|
-
export function loadVideoInstantly(playerId: any, src: any, cancelTimeout: any): Promise<any>;
|
|
43
|
-
export function dispose(playerId: any): void;
|
|
44
|
-
export function removeMountedCSS(): void;
|
|
45
|
-
export function initiateErrorHandling(err: any, playerId: any, reject: any, vId: any): void;
|
|
46
|
-
export function setTitle(playerId: any, info: any): void;
|
|
47
|
-
export function disableControls(playerId: any): void;
|
|
48
|
-
export function authenticateLC(playerId: any, params: any, load_asset?: boolean): Promise<any>;
|
package/esm/core/renditions.d.ts
DELETED
package/esm/core/util.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export function seekToTimeStamp(playerId: any, time: any, cb: any): void;
|
|
2
|
-
export function getVideoDuration(playerId: any): any;
|
|
3
|
-
export function onVideoEnded(playerId: any, cb: any): void;
|
|
4
|
-
export function onTimeUpdate(playerId: any, cb: any): void;
|
|
5
|
-
export function setPlaybackSpeed(playerId: any, speed: any): string;
|
|
6
|
-
export function playerEvents(): {
|
|
7
|
-
onPlay: (playerId: any, cb: any) => void;
|
|
8
|
-
onPause: (playerId: any, cb: any) => void;
|
|
9
|
-
onMute: (playerId: any, cb: any) => void;
|
|
10
|
-
onPictureInPictureChange: (playerId: any, cb: any) => void;
|
|
11
|
-
onFullScreenChange: (playerId: any, cb: any) => void;
|
|
12
|
-
onSetVolume: (playerId: any, cb: any) => void;
|
|
13
|
-
onSeeked: (playerId: any, cb: any) => void;
|
|
14
|
-
onSubtitleEnable: (playerId: any, cb: any) => void;
|
|
15
|
-
onDisableSubtitles: (playerId: any, cb: any) => void;
|
|
16
|
-
};
|
package/esm/core/volume.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function loadVideo_withDash(src: any): Promise<void>;
|
package/esm/dash/sgai.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export namespace adsQueuePointManager {
|
|
2
|
-
function setQueuePoints(points: any): void;
|
|
3
|
-
function getQueuePoints(): any[];
|
|
4
|
-
}
|
|
5
|
-
export function setupAdvertisementMarkers(playerId: any, watchHistoryResumeTime: any): Promise<void>;
|
|
6
|
-
export function getSGAIEnabledSource(playerId: any, entitlement_res: any): Promise<{
|
|
7
|
-
src: any;
|
|
8
|
-
type: string;
|
|
9
|
-
}>;
|
package/esm/features.d.ts
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Adds Rewind Button to control bar
|
|
3
|
-
* @param {String} [playerId] [playerId of the player]
|
|
4
|
-
*/
|
|
5
|
-
export function addRewindButton(playerId?: string, skin: any, icon: any): void;
|
|
6
|
-
/**
|
|
7
|
-
* Adds Skip Button to control bar
|
|
8
|
-
* @param {String} [playerId] [playerId of the player]
|
|
9
|
-
*/
|
|
10
|
-
export function addSkipButton(playerId?: string, skin: any, icon: any): void;
|
|
11
|
-
/**
|
|
12
|
-
* Adds Slow Mo Button to control bar
|
|
13
|
-
* @param {String} [playerId] [playerId of the player]
|
|
14
|
-
*/
|
|
15
|
-
export function addSlowMotion(playerId?: string): void;
|
|
16
|
-
export function addResolutionModule(playerId: any, skin: any, icon: any): void;
|
|
17
|
-
export function addVideoSelector(playerId: any, related: any): void;
|
|
18
|
-
export function addMulticamView(playerId: any, config: any): void;
|
|
19
|
-
export function addSeriesModule(playerId: any, seriesData: any, config: any): void;
|
|
20
|
-
export function addNextEpisodeButton(sres: any, res: any, playerId: any): void;
|
|
21
|
-
export function addMulticamSelector(playerId: any, streams: any): void;
|
|
22
|
-
export function addPlaylistSelector(playerId: any, playlist: any): void;
|
|
23
|
-
export function addCaptionButton(playerId: any, options: any): void;
|
|
24
|
-
export function addSettingsButtonV2(playerId: any, options: any): void;
|
|
25
|
-
export function addSeriesSelectorV2(playerId: any, options: any): void;
|
|
26
|
-
export function addOutputtingOverlay(playerId: any, url: any): void;
|
|
27
|
-
export function addDBClickFullScreen(playerId: any): void;
|
|
28
|
-
export function addVideoSelector_DEFAULTV2_TEMP(playerId: any, related: any): void;
|
|
29
|
-
export function addSeriesSelectorV2_DEFAULTV2_TEMP(playerId: any, options: any): void;
|
|
30
|
-
export function addMulticamSelector_DEFAULTV2_TEMP(playerId: any, streams: any): void;
|
|
31
|
-
export function addStartFromBeginningButton(playerId: any, options: any): void;
|
|
32
|
-
export function addWatchLiveButton(playerId: any, options: any): void;
|
package/esm/generic-7fb8e9c5.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/defineProperty";import n from"@babel/runtime/helpers/asyncToGenerator";import t from"@babel/runtime/regenerator";import i from"video.js";import o from"axios";import{g as r}from"./player_instance-34118a5b.js";import a from"js-cookie";import{UAParser as l}from"ua-parser-js";import{a as d,r as u}from"./captions-b619441b.js";import{c as s}from"./skin-16f83185.js";function c(){var e,n;null===(e=window)||void 0===e||null===(n=e.dataLayer)||void 0===n||n.push(arguments)}function v(e){window.dataLayer=window.dataLayer||[],c("js",new Date),c("config",e)}function m(e,n){c("event",e,n)}var f={apiBaseUrl:"https://prod-api.viewlift.com",getVideoDetails:"/entitlement/video/status",getSeriesDetails:"/entitlement/series/status",saveWatchHistoryV1:"/user/userId/history/video",saveWatchHistoryV2:"/v2/user/history",getVideoInfoV1:"/user/info/video",getVideoInfoV2:"/v2/user/info",getSeriesWatchHistoryV1:"/user/userId/history/video",getSeriesWatchHistoryV2:"/v2/user/history/series",getLinearChannelDetails:"/v3/entitlement/linearchannel",getBeaconUrl:"/analytics/player-beacon"};function p(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function w(n){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?p(Object(i),!0).forEach(function(t){e(n,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):p(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}var I={name:"@viewlift/player",version:"2.0.53",main:"dist/bundle.cjs.js",types:"dist/@viewlift/player/esm/index.d.ts",amdName:"_playerCore",dependencies:{"@silvermine/videojs-airplay":"^1.3.0","@silvermine/videojs-chromecast":"^1.4.1",axios:"^1.2.3",ima:"npm:videojs-ima@2.2.0","js-cookie":"^3.0.5","ua-parser-js":"^2.0.3","video.js":"8.22.0","videojs-contrib-ads":"7.5.2","videojs-contrib-eme":"5.5.1","videojs-mux":"^4.21.7","videojs-contrib-quality-menu":"^1.0.3"}};window.vl_player_version=I.version;var E,g=function(e,n){var t,i,r,a,l,d,u,s;return null!==(t=window)&&void 0!==t&&null!==(i=t.customData)&&void 0!==i&&i.overrideEntitlementResponse?new Promise(function(e,n){var t,i;return e({data:null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i?void 0:i.overrideEntitlementResponse})}):o({url:null!==(l=window)&&void 0!==l&&null!==(d=l.customData)&&void 0!==d&&d.overrideEntitlementBaseUrl?(null===(u=window)||void 0===u||null===(s=u.customData)||void 0===s?void 0:s.overrideEntitlementBaseUrl)+"/video/status":O.get()+"".concat(null==f?void 0:f.getVideoDetails),params:w({id:e,deviceType:"web_browser",contentConsumption:"web"},null===(r=window)||void 0===r||null===(a=r.customData)||void 0===a?void 0:a.entitlement),method:"GET",headers:{Authorization:n,"Sdk-Version":I.version},withCredentials:!0})},T=function(e,n){var t,i,r,a;return null!==(t=window)&&void 0!==t&&null!==(i=t.customData)&&void 0!==i&&i.overrideEntitlementResponse?new Promise(function(e,n){var t,i;return e({data:null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i?void 0:i.overrideEntitlementResponse})}):o({url:O.get()+f.getLinearChannelDetails,params:w(w(w(w(w({id:null==e?void 0:e.id,deviceType:"web_browser",contentConsumption:"web"},(null==e?void 0:e.channelId)&&{channelId:null==e?void 0:e.channelId}),(null==e?void 0:e.programId)&&{programId:null==e?void 0:e.programId}),(null==e?void 0:e.programTitle)&&{programTitle:null==e?void 0:e.programTitle}),(null==e?void 0:e.programSubType)&&{programSubType:null==e?void 0:e.programSubType}),null===(r=window)||void 0===r||null===(a=r.customData)||void 0===a?void 0:a.entitlement),method:"GET",headers:{Authorization:n,hdcp:"HDCP-1.4",sl:"SW_SECURE_CRYPTO"}})},h=function(e,n){var t,i,r=M(n),a=(null==r?void 0:r.site)||null;return null!==(t=window)&&void 0!==t&&null!==(i=t.customData)&&void 0!==i&&i.seriesData?new Promise(function(e,n){var t,i;return e({data:null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i?void 0:i.seriesData})}):o({url:O.get()+"/v3/content/series/".concat(e),params:{site:a},method:"GET",headers:{Authorization:n}})},y=function(){var e=n(t.mark(function e(n){var i;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B();case 2:return i=e.sent,e.abrupt("return",o({url:O.get()+"".concat(null==f?void 0:f.saveWatchHistoryV2),method:"POST",headers:{Authorization:i},data:w({},n),params:w({},(null==n?void 0:n.profileId)&&{profileId:null==n?void 0:n.profileId})}));case 4:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),_=function(e,n){var t,i,r=window.contentType;return o({method:"GET",url:O.get()+"".concat(null==f?void 0:f.getVideoInfoV2,"/").concat(r,"/").concat(e),headers:{Authorization:n,"x-api-key":null===(t=window)||void 0===t||null===(i=t.watchHistory)||void 0===i?void 0:i.xApiKey},timeout:15e3})},b=function(e){var n=e.videoId;return o({method:"GET",url:O.get()+"".concat(null==f?void 0:f.getSeriesWatchHistoryV2,"/").concat(n),headers:{Authorization:e.token},timeout:15e3})},O=(E=null==f?void 0:f.apiBaseUrl,{set:function(e){e&&(E=e)},get:function(){return E}}),F=function(e,n,t,i){return o({url:t,params:{id:e,deviceType:"web_browser",contentConsumption:"web",latitude:null==i?void 0:i.latitude,longitude:null==i?void 0:i.longitude},method:"GET",headers:{Authorization:n},withCredentials:!0})},D=function(e){var n=JSON.parse(atob(null==e?void 0:e.split(".")[1])),t=null==n?void 0:n.exp;if(new Date(1e3*t).getTime()<(new Date).getTime())return!0},S=null;function R(){return{set:function(e){e&&(S=e)},get:function(){return S}}}var P,L,W,A,V,C,N=function(){var e=n(t.mark(function e(){var n,i,r;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n=R().get(),i=O.get(),e.prev=2,e.next=5,o({method:"GET",url:"".concat(i,"/identity/refresh/").concat(n)});case 5:return r=e.sent,e.abrupt("return",r);case 9:throw e.prev=9,e.t0=e.catch(2),console.error("Error fetching refresh token",e.t0),e.t0;case 13:case"end":return e.stop()}},e,null,[[2,9]])}));return function(){return e.apply(this,arguments)}}(),U=null,B=function(){var e=n(t.mark(function e(){var n;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!(n=sessionStorage.getItem("vlp_token"))||!D(n)){e.next=6;break}return U||(U=N().then(function(e){var t,i,o=null==e||null===(t=e.data)||void 0===t?void 0:t.authorizationToken,r=null==e||null===(i=e.data)||void 0===i?void 0:i.refreshToken;return o&&sessionStorage.setItem("vlp_token",o),r&&R().set(r),o||n}).catch(function(e){return console.error("Error fetching refresh token",e),n}).finally(function(){U=null})),e.abrupt("return",U);case 6:return e.abrupt("return",n);case 7:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),j=function(e){var n=!0,t=null==e?void 0:e.videoSourceUrl,i=null==e?void 0:e.asat;return t&&!i&&(n=!1),n},M=function(e){if(e&&"string"==typeof e)return JSON.parse(atob(e.split(".")[1]))},k=function(e){L=e},x=function(){return L},H=function(e){P=e},G=function(){return P},Y=function(){return W},z=function(e){W=e},q=function(){return V},X=function(e){A=new Map,e.map(function(e,n){A.set(e.id,n)})},J=function(e){if(A){var n=A.get(e);z(n+1)}},K=(C=0,{set:function(e){e>=0&&(C=e)},get:function(){return C}});function Q(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function Z(n){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(i),!0).forEach(function(t){e(n,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Q(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}var $=0,ee=function(){var e,n,t,i,o,r,a,l=x();return"linearchannel"==((null==l?void 0:l.contentType)||"video")?null==l||null===(e=l.linearchannel)||void 0===e||null===(n=e.channels)||void 0===n||null===(t=n.find(function(e){return(null==e?void 0:e.id)===(null==l?void 0:l.channelId)}))||void 0===t||null===(i=t.content)||void 0===i?void 0:i.id:(null==l||null===(o=l.video)||void 0===o||null===(r=o.gist)||void 0===r?void 0:r.id)||(null==l||null===(a=l.video)||void 0===a?void 0:a.id)||(null==l?void 0:l.id)};function ne(){var e=function(){return Math.floor(65536*(1+Math.random())).toString(16).substring(1)};return e()+e()+"-"+e()+"-"+e()+"-"+e()+"-"+e()+e()+e()}function te(){var e=window.sessionStorage.getItem("uid");return e||(e=ne(),window.sessionStorage.setItem("uid",e),e)}function ie(){return oe.apply(this,arguments)}function oe(){return(oe=n(t.mark(function e(){var n,i;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B();case 2:if(!(n=e.sent)){e.next=10;break}if(null==(i=JSON.parse(atob(n.split(".")[1])))||!i.anonymousId){e.next=9;break}return e.abrupt("return","guest-user");case 9:return e.abrupt("return",null==i?void 0:i.userId);case 10:return e.abrupt("return","guest-user");case 11:case"end":return e.stop()}},e)}))).apply(this,arguments)}function re(e){return e?String(e):""}window.initialise=function(e){window.sid=ne(),window.environment="production",window.platform="WEBSITE",streamFailures(e),buffering(e),ads(e),ping(e)},window.streamFailures=function(e){var n=Math.floor(e.currentTime());e.on("error",function(){var t,i,o,r=Math.floor(e.currentTime());clearInterval(window.bufferingTimer),window.buffering=null,window.handleBufferTimer=null,m(r?"FAILED_TO_START":"DROPPED_STREAM",Z({pfm:window.platform,uid:te(),vid:ee(),videoPosition:Math.floor(e.currentTime())},null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:n===r?"FAILED_TO_START":"DROPPED_STREAM",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1})})},window.firstFrame=function(e,n){e.one("play",tryCatch(function(){var t,i,o;window.ttFirstFrame=0,window.ttFirstFrameTimer=setInterval(function(){window.ttFirstFrame=window.handleBufferTimer?window.handleBufferTimer(window.ttFirstFrame,e):null},100),m("PLAY",Z({pfm:window.platform,uid:te(),vid:ee(),videoPosition:Math.floor(e.currentTime())},null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i||null===(o=i.beacon)||void 0===o?void 0:o.params)),fireEvent({eventName:"PLAY",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1}),n&&n("started_video_playback",{"Video ID":ee(),watchTime:Math.floor(e.currentTime())})}))},window.buffering=function(e){e.on("waiting",tryCatch(function(){window.ttFirstFrameTimer||(e.currentTime(),clearInterval(window.bufferingTimer),window.bufferingTimer=setInterval(function(){var n,t;null!=e&&null!==(n=e.el_)&&void 0!==n&&null!==(t=n.className)&&void 0!==t&&t.includes("vjs-waiting")&&!e.paused()?window.totalBufferTime=window.handleBufferTimer?window.handleBufferTimer(window.totalBufferTime,e):null:clearInterval(window.bufferingTimer)},100))}))},window.handleBufferTimer=function(e,n){var t,i;if(n.el_){var o,r,a,l=e+.1;if(+l.toFixed(2)%5==0&&null!=n&&null!==(t=n.el_)&&void 0!==t&&null!==(i=t.className)&&void 0!==i&&i.includes("vjs-waiting")&&$<4)$++,m("BUFFERING",Z({pfm:window.platform,uid:te(),vid:ee(),videoPosition:n.el_&&Math.floor(n.currentTime())},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(a=r.beacon)||void 0===a?void 0:a.params)),fireEvent({eventName:"BUFFERING",videoPosition:n.el_&&Math.floor(n.currentTime()),isAdEvent:!1});return l}clearInterval(window.ttFirstFrameTimer)},window.endFirstFrame=function(e){e.one("timeupdate",function(){var n,t,i;clearInterval(window.ttFirstFrameTimer),clearInterval(window.bufferingTimer),window.ttFirstFrameTimer=null,window.totalBufferTime=window.ttFirstFrame||0,m("FIRST_FRAME",Z({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:te(),vid:ee()},null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(i=t.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"FIRST_FRAME",videoPosition:Math.floor(e.currentTime()),isAdEvent:!1,ttFirstFrame:window.ttFirstFrame,bufferHealth:window.getRemainingBufferTime(e)})})},window.ads=function(e){e.on("adsready",function(){e.ima.addEventListener(window.google.ima.AdEvent.Type.STARTED,function(){var n,t,i,o,r,a;m("AD_REQUEST",Z({eventName:"AD_REQUEST",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:te(),vid:ee(),resHeight:e.videoHeight(),resWidth:e.videoWidth()},null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(i=t.beacon)||void 0===i?void 0:i.params)),fireEvent({eventName:"AD_REQUEST",videoPosition:Math.ceil(e.currentTime()),isAdEvent:!0,resHeight:e.videoHeight(),resWidth:e.videoWidth(),adPosition:1}),m("AD_IMPRESSION",Z({eventName:"AD_IMPRESSION",videoPosition:Math.floor(e.currentTime()),isAdEvent:!0,bufferHealth:window.getRemainingBufferTime(e),pfm:window.platform,uid:te(),resHeight:e.videoHeight(),resWidth:e.videoWidth(),vid:ee()},null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(a=r.beacon)||void 0===a?void 0:a.params)),fireEvent({eventName:"AD_IMPRESSION",videoPosition:Math.ceil(e.currentTime()),resHeight:e.videoHeight(),resWidth:e.videoWidth(),isAdEvent:!0,adPosition:1})}),e.ima.addEventListener(window.google.ima.AdEvent.Type.SKIPPED,function(){window.ttFirstFrame=0}),e.ima.addEventListener(window.google.ima.AdEvent.Type.COMPLETE,function(){window.ttFirstFrame=0})})},window.ping=function(e){var n=[];e.on("timeupdate",function(){var t=Math.floor(e.currentTime());t>=30&&t%30==0&&!n.includes(t)&&($=0,n.push(t),fireEvent({eventName:"PING",videoPosition:t,isAdEvent:!1,duration:30,resHeight:e.videoHeight(),resWidth:e.videoWidth(),bufferHealth:window.getRemainingBufferTime(e),bitrate:e.tech_.vhs&&window.getBitrate(e)}))})},window.getBitrate=function(e){return Math.round(e.tech_.vhs.selectPlaylist().attributes.BANDWIDTH/1e3)},window.getRemainingBufferTime=function(e){return tryCatch(function(){for(var n=e.currentTime(),t=e.duration(),i=e.buffered(),o=0;o<i.length;o++){var r=i.start(o),a=i.end(o);if(ae(n,r,a)){var l=Math.round(t-a);if(isFinite(l))return l}}})()};var ae=function(e,n,t){return e>=n&&e<=t};function le(e,n){if("localhost"!==location.hostname&&"127.0.0.1"!==location.hostname){var t=r(e);window.initialise(t,n),window.firstFrame(t,n),t.on("loadedmetadata",function(){window.endFirstFrame(t)})}}window.fireEvent=function(){var e=n(t.mark(function e(n){var i,r,a,l,d,u,s,c,v,m,p,w,I,E,g,T,h,y,_,b;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B();case 2:return T=e.sent,h=M(T),y=null==h?void 0:h.site,_=null==h?void 0:h.siteId,e.t0=Z,e.t1=Z,e.t2=Z({aid:y,cid:_,pfm:window.platform},null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r||null===(a=r.beacon)||void 0===a?void 0:a.params),e.t3={},e.t4=te(),e.t5=ee(),e.t6=n.url||document.location.href,e.t7=n.ref||document.referrer,e.t8=n.eventName,e.t9=null!==(l=n.videoPosition)&&void 0!==l?l:null,e.t10=window.environment,e.t11=n.dp1||"",e.t12=n.dp2||"",e.t13=n.dp3||"",e.t14=n.dp4||"",e.t15=n.dp5||"",e.t16=!0===n.isAdEvent?n.videoPosition:null,e.t17=!0===n.isAdEvent?re(n.adPosition):"",e.next=26,ie();case 26:e.t18=e.sent,e.t19=n.playerType||"native",e.t20=n.mediaType||"VIDEO",e.t21=window.sid,e.t22=null!==(d=n.ttFirstFrame)&&void 0!==d?d:null,e.t23=null!==(u=n.bitrate)&&void 0!==u?u:null,e.t24=null!==(s=n.resHeight)&&void 0!==s?s:null,e.t25=null!==(c=n.resWidth)&&void 0!==c?c:null,e.t26=null!==(v=n.bufferHealth)&&void 0!==v?v:null,e.t27={uid:e.t4,vid:e.t5,url:e.t6,ref:e.t7,pa:e.t8,vpos:e.t9,environment:e.t10,dp1:e.t11,dp2:e.t12,dp3:e.t13,dp4:e.t14,dp5:e.t15,apos:e.t16,apod:e.t17,profid:e.t18,player:e.t19,media_type:e.t20,stream_id:e.t21,embedurl:"",ttfirstframe:e.t22,bitrate:e.t23,connectionspeed:null,resolutionheight:e.t24,resolutionwidth:e.t25,bufferhealth:e.t26},e.t28=(null==n?void 0:n.duration)&&{duration:n.duration},e.t29=(0,e.t1)(e.t2,e.t3,e.t27,e.t28),e.t30=null===(m=window)||void 0===m||null===(p=m.customData)||void 0===p||null===(w=p.beacon)||void 0===w?void 0:w.params,e.t31=(0,e.t0)(e.t29,e.t30),b=[e.t31],o({url:(null===(I=window)||void 0===I||null===(E=I.customData)||void 0===E||null===(g=E.beacon)||void 0===g?void 0:g.url)||O.get()+f.getBeaconUrl,method:"post",headers:{Authorization:T},contentType:"application/x-www-form-urlencoded",dataType:"text",data:b}).catch(function(e){console.error(e)});case 42:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),window.tryCatch=function(e){return function(){try{return e.apply(window,arguments)}catch(e){return console.error(e),null}}};var de=function(){var e,n;return navigator.userAgent.indexOf("Edg")>-1&&"macOS"!=(null===(e=window.navigator)||void 0===e||null===(n=e.userAgentData)||void 0===n?void 0:n.platform)?"IE":-1!=(navigator.userAgent.indexOf("Opera")||navigator.userAgent.indexOf("OPR"))?"Opera":-1!=navigator.userAgent.indexOf("Chrome")?"Chrome":-1!=navigator.userAgent.indexOf("Safari")?"Safari":-1!=navigator.userAgent.indexOf("Firefox")?"Firefox":"Unknown"},ue=function(){return!!/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},se=function(e,n){var t=new Map;b({videoId:e,token:n}).then(function(e){e.data.map(function(e){t.set(e.videoId,{t:e.watchedTime,p:e.watchedPercentage})}),V=t}).catch(function(e){return console.log(e)})},ce=function(){var e=K.get();return e>=0?e+1:1},ve=function(){var e,n,t,i=G(),o=x(),r=null==o||null===(e=o.video)||void 0===e?void 0:e.id,a=K.get(),l=null==i||null===(n=i[a])||void 0===n||null===(t=n.episodes)||void 0===t?void 0:t.findIndex(function(e){return(null==e?void 0:e.id)===r});return l>=0?l+1:1};function me(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}function fe(n){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?me(Object(i),!0).forEach(function(t){e(n,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):me(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}window._deviceInfo=l(navigator.userAgent);var pe=function(e,n){return e&&n?"".concat(e,"x").concat(n):e>1024?"L":e>768?"M":"S"},we=function(e){var n=Ie(e,"video.tags",[]),t=Ie(e,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE");return n.length>0?n.map(function(e){return e.title}).join(","):t},Ie=function(e,n,t){for(var i=0,o=(n=n.split(".")).length;i<o;i++){var r;e=null===(r=e)||void 0===r?void 0:r[n[i]]}return e||t},Ee=function(){var n,t,i,o,l,d,u,s,c,v,m,f,p,w,I,E,g,T,h,y,_,b,O=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"",F=arguments.length>1?arguments[1]:void 0,D=arguments.length>2?arguments[2]:void 0,S=(null==D?void 0:D.siteName)||"",R=(null==D?void 0:D.contentType)||"video",P=(null==D||null===(n=D[R])||void 0===n?void 0:n.metadata)||(null==D||null===(t=D[R])||void 0===t||null===(i=t.gist)||void 0===i?void 0:i.metadata),L=r(F);if(!O.includes("VIEWLIFT_"))return O;var W,A=window.getComputedStyle(document.getElementById(F),null),V=Math.trunc(A.getPropertyValue("height").slice(0,-2)),C=Math.trunc(A.getPropertyValue("width").slice(0,-2)),N="linearchannel"===R?null==D||null===(o=D.linearchannel)||void 0===o||null===(l=o.channels)||void 0===l||null===(d=l.find(function(e){return(null==e?void 0:e.id)===(null==D?void 0:D.channelId)}))||void 0===d||null===(u=d.content)||void 0===u?void 0:u.id:Ie(D,"video.gist.id",""),U="linearchannel"===R?null==D||null===(s=D.linearchannel)||void 0===s||null===(c=s.channels)||void 0===c||null===(v=c.find(function(e){return(null==e?void 0:e.id)===(null==D?void 0:D.channelId)}))||void 0===v?void 0:v.title:Ie(D,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE"),B=null,j=null;"function"==typeof window.__gpp&&(null===(W=window)||void 0===W||W.__gpp("ping",function(e){B=null==e?void 0:e.gppString,j=null==e?void 0:e.sectionList[0]}));var M=fe(fe({},ge(P)),{},(y={VIEWLIFT_WIDTH:C,VIEWLIFT_HEIGHT:V,VIEWLIFT_SIZE:pe(C,V),VIEWLIFT_DOMAIN:window.location.hostname,VIEWLIFT_URL:window.location.href,VIEWLIFT_ENCODED_URL:encodeURIComponent(window.location.href),VIEWLIFT_DOUBLE_ENCODED_URL:encodeURIComponent(encodeURIComponent(window.location.href)),VIEWLIFT_CACHEBUSTER:"3708662946268",VIEWLIFT_TIMESTAMP:Date.now().toString().substring(0,10),VIEWLIFT_TIMESTAMP_MS:Date.now().toString(),VIEWLIFT_IP:(null===(m=window)||void 0===m?void 0:m.ip)||"VIEWLIFT_IP",VIEWLIFT_USER_AGENT:encodeURIComponent(encodeURIComponent(navigator.userAgent)),VIEWLIFT_DNT:"1"===navigator.doNotTrack?"1":"0",VIEWLIFT_DESCRIPTION:Ie(D,"video.gist.description","VIEWLIFT_DESCRIPTION"),VIEWLIFT_DURATION:Ie(D,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_MIN_DURATION:0,VIEWLIFT_MAX_DURATION:Ie(D,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_AUTOPLAY:(null==L||null===(f=L.options_)||void 0===f?void 0:f.autoplay)||1,VIEWLIFT_MUTE:(null==L||null===(p=L.options_)||void 0===p?void 0:p.autoplay)||0,VIEWLIFT_DEVICE_ID:"spinco"==S||"usanetwork"==S?"":localStorage.getItem("deviceId")||"VIEWLIFT_DEVICE_ID",VIEWLIFT_DEVICETYPE:"WEB_BROWSER",VIEWLIFT_IDTYPE:"dpid",VIEWLIFT_KEYWORDS:we(D),VIEWLIFT_MEDIA_ID:N,VIEWLIFT_ENCODED_VIDEO_TITLE:encodeURI(Ie(D,"video.gist.title","VIEWLIFT_ENCODED_VIDEO_TITLE")),VIEWLIFT_VIDEO_ID:N,VIEWLIFT_VIDEO_URL:encodeURI(window.location.origin+Ie(D,"video.gist.permalink","")),VIEWLIFT_CONSENT:a.get("cc")||"VIEWLIFT_CONSENT",VIEWLIFT_COPPA:Ie(null===(w=window)||void 0===w||null===(I=w.app_data)||void 0===I||null===(E=I.site)||void 0===E?void 0:E.settings,"compliance.coppa")?1:0,VIEWLIFT_GDPR_CONSENT:"",VIEWLIFT_GDPR:"spinco"==S||"usanetwork"==S?"":Ie(null===(g=window)||void 0===g||null===(T=g.app_data)||void 0===T||null===(h=T.site)||void 0===h?void 0:h.settings,"compliance.gdpr")?1:0,VIEWLIFT_CONTENT_DURATION_MS:1e3*Ie(D,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_DURATION:Ie(D,"video.runtime","VIEWLIFT_DURATION"),VIEWLIFT_CONTENT_ID:N,VIEWLIFT_CONTENT_TITLE:U,VIEWLIFT_CONTENT_SERIES_TITLE:Ie(D,"video.series.gist.title","VIEWLIFT_CONTENT_SERIES_TITLE"),VIEWLIFT_CONTENT_GENRE:Ie(D,"video.gist.primaryCategory.title","VIEWLIFT_CONTENT_GENRE"),VIEWLIFT_USER:sessionStorage.getItem("uid")||"VIEWLIFT_USER",VIEWLIFT_EPISODE_NUMBER:ve(),VIEWLIFT_SEASON_NUMBER:ce(),VIEWLIFT_CONTENT_TAGS:we(D),VIEWLIFT_GPP_SID:j||"VIEWLIFT_GPP_SID",VIEWLIFT_GPP:B||"VIEWLIFT_GPP",VIEWLIFT_LAT:"",VIEWLIFT_APP_BUNDLE:"",VIEWLIFT_ATT_CONSENT:"",VIEWLIFT_APP_ID:"",VIEWLIFT_APP_STORE_URL:""},e(y,"VIEWLIFT_LAT",""),e(y,"VIEWLIFT_APP_BUNDLE",""),e(y,"VIEWLIFT_ATT_CONSENT",""),y),null===(_=window)||void 0===_||null===(b=_.customData)||void 0===b?void 0:b.macros);for(var k in M){var x=new RegExp(k,"g");O=O.replace(x,M[k])}return O},ge=function(e){var n,t,i,o,r,a,l={},d=new Map;(null==e?void 0:e.length)>0&&(null==e||e.map(function(e){d.set(e.name,e.value)}));var u=(null===(n=window)||void 0===n||null===(t=n.customData)||void 0===t||null===(i=t.subscription)||void 0===i?void 0:i.SVOD)||!1,s=(null===(o=window)||void 0===o||null===(r=o.customData)||void 0===r||null===(a=r.subscription)||void 0===a?void 0:a.TVE)||!1;return u||s?(ue()?u?l=fe(fe({},l),{},{VIEWLIFT_CSID:d.get("csid.mweb.dtc")||""}):s&&(l=fe(fe({},l),{},{VIEWLIFT_CSID:d.get("csid.mweb.tve")||""})):u?l=fe(fe({},l),{},{VIEWLIFT_CSID:d.get("csid.web.dtc")||""}):s&&(l=fe(fe({},l),{},{VIEWLIFT_CSID:d.get("csid.web.tve")||""})),u?l=fe(fe({},l),{},{VIEWLIFT_SFID:d.get("sfid.dtc")||d.get("sfid.web.dtc")||""}):s&&(l=fe(fe({},l),{},{VIEWLIFT_SFID:d.get("sfid.tve")||d.get("sfid.web.tve")||""})),l=ue()?fe(fe({},l),{},{VIEWLIFT_PROF:d.get("prof.mweb")||""}):fe(fe({},l),{},{VIEWLIFT_PROF:d.get("prof.web")||""})):(l=fe(fe({},l),{},{VIEWLIFT_SFID:d.get("sfid.dtc")||d.get("sfid.web.dtc")||""}),l=ue()?fe(fe({},l),{},{VIEWLIFT_CSID:d.get("csid.mweb.dtc")||"",VIEWLIFT_PROF:d.get("prof.mweb")||""}):fe(fe({},l),{},{VIEWLIFT_CSID:d.get("csid.web.dtc")||"",VIEWLIFT_PROF:d.get("prof.web")||""})),l=fe(fe({},l),{},{VIEWLIFT_AFID:d.get("afid")})},Te=function(e,n){var t,i,o,r,a,l,d,u,s,c,v,m,f,p=(null==e?void 0:e.contentType)||"video",w=null==e||null===(t=e[p])||void 0===t?void 0:t.drmEnabled,I=null==e||null===(i=e[p])||void 0===i||null===(o=i.streamingInfo)||void 0===o?void 0:o.videoAssets,E=null==e||null===(r=e[p])||void 0===r||null===(a=r.streamingInfo)||void 0===a?void 0:a.audioAssets,g=(null==e||null===(l=e[p])||void 0===l||null===(d=l.streamingInfo)||void 0===d||null===(u=d.videoAssets)||void 0===u?void 0:u.hls)||!1;null==e||null===(s=e[p])||void 0===s||null===(c=s.liveDetails)||void 0===c||c.isDvrEnabled;var T=(null==e||null===(v=e[p])||void 0===v||null===(m=v.streamingInfo)||void 0===m||null===(f=m.videoAssets)||void 0===f?void 0:f.dash)||!1;if(null!=e&&e.directPlaybackUrl)return{src:null==e?void 0:e.directPlaybackUrl,type:null};if(null!=e&&e.audioAssetSource&&null!=E&&E.hls)return ye(E);if(w){var h=_e(I,n);return h.src=Ee(h.src,n,e),h}if("Safari"!==de()&&T)return he(I);if(g){var y=ye(I);return y.src=Ee(y.src,n,e),y}if(null!=I&&I.mpeg){var _=function(e){var n=null==e?void 0:e.mpeg;return{src:n[n.length-1].url,type:"video/mp4"}}(I);return _.src=Ee(_.src,n,e),_}return null},he=function(e){var n=null==e?void 0:e.dash;return n?{src:n,type:"application/dash+xml"}:null},ye=function(e){var n=null==e?void 0:e.hls;return n?{src:n,type:"application/x-mpegURL"}:null},_e=function(e,n){var t=(null==e?void 0:e.drmProvider)||null,o=e.fairPlayCmaf||e.fairPlay,a=e.widevine,l=e.playReady,d=de();if(r(n),"Safari"===d){var u=function(e){var n=e.url;return{src:n,type:"application/x-mpegURL",keySystems:{"com.apple.fps.1_0":{getCertificate:function(n,t){var o={uri:e.certificateUrl,method:"GET",responseType:"arraybuffer"};i.xhr(o,function(e,n,i){console.log(e),e&&t(e),t(null,new Uint8Array(i))})},getContentId:function(e,n){if(n){var t=n.indexOf("\0")+1;return n.slice(t)}},getLicense:function(n,t,o,r){var a={uri:e.licenseUrl,method:"POST",responseType:"arraybuffer",body:o,headers:{"Content-type":"application/octet-stream","X-AxDRM-Message":e&&e.licenseToken}};i.xhr(a,function(e,n,t){console.log(e),e&&r(e),r(null,t)})}}}}}(o);return be(n),u}var s,c={src:a.url,type:"application/dash+xml"};return"caliente"==(null===(s=window)||void 0===s?void 0:s.siteName)?(be(n),c.keySystems={"com.widevine.alpha":{url:a.licenseUrl,licenseHeaders:{"X-AxDRM-Message":a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"},"com.microsoft.playready":{url:null==l?void 0:l.licenseUrl,licenseHeaders:{"X-AxDRM-Message":null==l?void 0:l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}):"custom"==t?(c.keySystemOptions=[],c.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:a.licenseUrl,httpRequestHeaders:{"Content-Type":"application/octet-stream"},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),c.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:null==l?void 0:l.licenseUrl,httpRequestHeaders:{"Content-Type":"application/octet-stream"},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})):(c.keySystemOptions=[],c.keySystemOptions.push({name:"com.widevine.alpha",options:{serverURL:a.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":a.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}}),c.keySystemOptions.push({name:"com.microsoft.playready",options:{serverURL:null==l?void 0:l.licenseUrl,httpRequestHeaders:{"X-AxDRM-Message":null==l?void 0:l.licenseToken},videoRobustness:"SW_SECURE_CRYPTO",audioRobustness:"SW_SECURE_CRYPTO"}})),c};var be=function(e){var n=r(e);if("function"==typeof n.eme)try{n.eme(),"Safari"==de()&&n.eme.initLegacyFairplay()}catch(e){console.log("EME ERROR :",e)}},Oe=function(e,n){var t=e.src,i=e.type;if(!t||"string"!=typeof t||!t.includes(".com"))return{src:t,type:i};n=n.replace(/\/$/,"");var o=t.split(".com")[1]||"";return{src:o?"".concat(n).concat(o):t,type:i}},Fe=function(e,n){if(import("./error-2395864b.js").then(function(e){var n=document.createElement("style");n.id="errorblock",n.append("".concat(e.default)),document.head.appendChild(n)}),document.getElementsByClassName("error-container")[0]){var t=document.getElementsByClassName("error-message")[0];t&&(t.innerHTML="".concat(n))}else{var i=document.getElementById(e);if(i){var o=document.createElement("div");o.className="error-container";var r=document.createElement("div");r.className="error-message",r.innerHTML="".concat(n),o.appendChild(r),i.append(o)}}},De=function(){document.getElementsByClassName("error-container")[0]&&document.getElementsByClassName("error-container")[0].remove()};var Se=!1,Re=function(e,n,t){var i=Ee(n,e,t),o=r(e);if(n&&window.google){if("function"!=typeof o.ima)return;o.ima.initializeAdDisplayContainer&&o.ima.initializeAdDisplayContainer(),function(e,n){var t,i,o,a=r(e);if(null!==a.el_){Se=!0;var l={id:e,adTagUrl:"".concat(n),adLabel:"Your video will resume after this sponsor message"};a.ima.initializeAdDisplayContainer&&a.ima.initializeAdDisplayContainer(),Se&&null!==a.el_&&("function"==typeof a.ima?a.ima(l):setTimeout(function(){a.ima.setContentWithAdTag(null,n,!0),a.ima.requestAds()},1e3));var d=document.getElementById("".concat(e));(navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&d.hasAttribute("controls")&&d.removeAttribute("controls");var u="click",s=!1;(navigator.userAgent.match(/iPhone/i)||navigator.userAgent.match(/iPad/i)||navigator.userAgent.match(/Android/i))&&(s=!0,u="touchend"),a.one(u,function(){s&&a.ima.initializeAdDisplayContainer()});var c=(null===(t=window)||void 0===t||null===(i=t.customData)||void 0===i||null===(o=i.ads)||void 0===o?void 0:o.adEventHandler)||null;a.one("ads-ad-started",function(){c&&c({status:"STARTED",msg:"Advertisement Started"})}),a.one("ads-manager",function(e){e.adsManager.addEventListener(google.ima.AdEvent.Type.COMPLETE,function(){c&&c({status:"ENDED",msg:"Advertisement Ended"})})}),a.on("adserror",function(e){c&&c({status:"ERROR",msg:"Advertisement Error"})})}}(e,i)}};function Pe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);n&&(i=i.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,i)}return t}var Le=function(e){i(e).play()},We=function(e){i(e).pause()},Ae=function(e,n){var t=i(e),o=t.currentTime()+n;t.currentTime(o)},Ve=function(e,n){var t=i(e),o=t.currentTime(),r=o<=n?0:o-n;t.currentTime(r)},Ce=function(e){return!!i.getPlayer("".concat(e))},Ne=function(e){return i(e).paused()},Ue=function(){var e=n(t.mark(function e(n,i){var o,a,l,d=arguments;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=d.length>2&&void 0!==d[2]&&d[2],e.next=3,B();case 3:return a=e.sent,l=r(n),e.abrupt("return",new Promise(function(e,t){T(i,a).then(function(t){var r=null==t?void 0:t.data;window.sid=ne(),r.contentType="linearchannel",r.channelId=null==i?void 0:i.channelId;var a=Te(r,n);k(r),a&&o?(xe(n,a),l.on("loadstart",function(){e({status:!0,msg:"Feed authenticated and loaded",response:r})})):e({status:!0,msg:"Feed authenticated",response:r})}).catch(function(e){t({status:!1,msg:"Cannot load feed",response:e})})}));case 6:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),Be=function(){var e=n(t.mark(function e(n,i,o){var a,l,s,c,v,m;return t.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,B();case 2:return c=e.sent,(G()||null)&&J(i),v=0,m=0,null!==(a=window)&&void 0!==a&&a.watchHistory&&null!==(l=window)&&void 0!==l&&null!==(s=l.watchHistory)&&void 0!==s&&s.enable&&_(i,c).then(function(e){var n,t,i,o,r,a;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(null==e?void 0:e.data)),v=(null==e||null===(r=e.data)||void 0===r?void 0:r.watchedTime)||null,m=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedPercentage)||null}).catch(function(e){var n,t,i,o;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(i=window)||void 0===i||null===(o=i.watchHistory)||void 0===o||o.cb(e))}),e.abrupt("return",new Promise(function(e,t){g(i,c).then(function(i){var o,a,l,s,c,f,p,w,I,E,g=null==i?void 0:i.data,T=(null==g||null===(o=g.video)||void 0===o||null===(a=o.streamingInfo)||void 0===a?void 0:a.isLiveStream)||!1;k(i.data);var h=(null==g||null===(l=g.ads)||void 0===l||null===(s=l.preRoll)||void 0===s||null===(c=s.adTags)||void 0===c||null===(f=c.web)||void 0===f?void 0:f.active)&&(null==g||null===(p=g.ads)||void 0===p||null===(w=p.preRoll)||void 0===w||null===(I=w.adTags)||void 0===I||null===(E=I.web)||void 0===E?void 0:E.url);h&&Re(n,h,g);var y=Te(g,n);if(y){var _,b,O,F,D,S,R,P,L,W,A,V,C,N,U=(null==g||null===(_=g.video)||void 0===_||null===(b=_.gist)||void 0===b?void 0:b.videoImageUrl)||(null==g||null===(O=g.video)||void 0===O||null===(F=O.gist)||void 0===F||null===(D=F.imageGist)||void 0===D?void 0:D.r16x9),B=r(n);if(B.poster(U),xe(n,y),B.on("loadstart",function(){T&&e({status:!0,msg:"Video Loaded",response:g})}),B.on("loadeddata",function(){De(),e({status:!0,msg:"Video Loaded",response:g})}),B.one("play",function(){v&&m<95&&setTimeout(function(){B.currentTime(v)},0)}),B.one("error",function(){var e;t({status:!1,msg:(null==B||null===(e=B.error())||void 0===e?void 0:e.message)||"Some error occured"})}),(null==g||null===(S=g.video)||void 0===S||null===(R=S.contentDetails)||void 0===R||null===(P=R.closedCaptions)||void 0===P?void 0:P.length)>0||(null==g||null===(L=g.video)||void 0===L||null===(W=L.closedCaptions)||void 0===W?void 0:W.length)>0)A=((null==g||null===(V=g.video)||void 0===V||null===(C=V.contentDetails)||void 0===C?void 0:C.closedCaptions)||(null==g||null===(N=g.video)||void 0===N?void 0:N.closedCaptions)).filter(function(e){return"VTT"===e.format}),d(n,A);else u(n)}else Fe(n,"Incompatible Source, only hls,mp4,drm content is allowed"),t("Incompatible Source, only hls,mp4,drm content is allowed")}).catch(function(e){He(e,n,t,i)})}));case 9:case"end":return e.stop()}},e)}));return function(n,t,i){return e.apply(this,arguments)}}(),je=function(e,n,t){var i=r(e);return i.src(n),new Promise(function(e,n){var o=0;i.one("loadedmetadata",function(){clearTimeout(o),e({status:!0,msg:"video loaded"})}),i.one("loadstart",function(e){o=setTimeout(function(){n("FAILED: Took too long to load")},t)})})},Me=function(e){var n=r(e);if(ke(),s(),window.onresize=null,n)n.dispose();else{var t=document.getElementById(e);t&&t.remove()}},ke=function(){document.getElementById("carousel_homepage")&&document.getElementById("carousel_homepage").remove(),document.getElementById("dvr_skin")&&document.getElementById("dvr_skin").remove(),document.getElementById("nondvr_skin")&&document.getElementById("nondvr_skin").remove(),document.getElementById("multicam")&&document.getElementById("multicam").remove(),document.getElementById("errorblock")&&document.getElementById("errorblock").remove(),document.getElementById("def_skin")&&document.getElementById("def_skin").remove(),document.getElementById("video-selection")&&document.getElementById("video-selection").remove(),document.getElementById("multicam-v2")&&document.getElementById("multicam-v2").remove(),document.getElementById("default_v2")&&document.getElementById("default_v2").remove(),document.getElementById("video-captions")&&document.getElementById("video-captions").remove(),document.getElementById("playlist-selection")&&document.getElementById("playlist-selection").remove(),document.getElementById("multiplayer_css")&&document.getElementById("multiplayer_css").remove(),document.getElementById("chromett")&&document.getElementById("chromett").remove()},xe=function(e,n){var t=r(e);t&&t.src(n)},He=function(n,t,i,o){var r,a,l,d,u,s,c=null==n||null===(r=n.response)||void 0===r||null===(a=r.data)||void 0===a?void 0:a.errorCode,v=(null==n||null===(l=n.response)||void 0===l||null===(d=l.data)||void 0===d?void 0:d.errorMessage)||(null==n?void 0:n.message);Ce(t)&&Fe(t,(null===(u=window)||void 0===u?void 0:u.customErrors)&&(null===(s=window)||void 0===s?void 0:s.customErrors[c])||"".concat(v)),i&&i(function(n){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?Pe(Object(i),!0).forEach(function(t){e(n,t,i[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(i)):Pe(Object(i)).forEach(function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(i,e))})}return n}({status:!1,response:n,msg:"".concat(v)},o&&{videoId:o}))},Ge=function(e){var n=document.getElementById(e),t=n.getElementsByClassName("vjs-control-bar")[0];t&&(t.style.visibility="hidden");var i=n.getElementsByClassName("vjs-big-play-button")[0];i&&(i.style.display="none");var o=n.getElementsByClassName("vjs-fullscreen-control")[0];o&&(o.style.display="none")};export{h as A,se as B,K as C,H as D,je as E,Le as F,We as G,Ce as H,Be as I,Ue as J,Me as K,F as L,O as M,j as N,R as O,D as P,v as Q,ue as R,Y as S,Ne as T,z as U,b as V,X as W,J as X,ve as a,G as b,ce as c,de as d,x as e,Te as f,te as g,k as h,De as i,Fe as j,q as k,xe as l,Ae as m,Ee as n,Ge as o,le as p,Re as q,Ve as r,y as s,Oe as t,M as u,g as v,_ as w,He as x,B as y,T as z};
|
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Fires internal player events which are generic for all skins
|
|
3
|
-
* @param {String} [playerId] [playerId of the player]
|
|
4
|
-
*/
|
|
5
|
-
export function globalPlayerEvents(playerId?: string, config: any, feedback: any, { res, sres }: {
|
|
6
|
-
res: any;
|
|
7
|
-
sres: any;
|
|
8
|
-
}): void;
|
package/esm/helpers/browser.d.ts
DELETED