@viewlift/player-backup 2.0.114-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 +79 -29
- 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 +79 -29
- 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-1a9cf743.js +0 -1
- package/cjs/skin-32396be4.js +0 -1
- package/cjs/skin-a86f763d.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-3b50e289.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-0c5f06e9.js +0 -1
- package/esm/skin-6185e3d0.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
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
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export function setCurrentSeries(data: any): void;
|
|
2
|
-
export function setCurrentVideo(data: any): void;
|
|
3
|
-
export function getCurrentSeries(): any;
|
|
4
|
-
export function getCurrentVideo(): any;
|
|
5
|
-
export function setVideoIdx(val: any): void;
|
|
6
|
-
export function getVideoIdx(): any;
|
|
7
|
-
export function createIdxMapping(arr: any): void;
|
|
8
|
-
export function setVideoIdxById(videoId: any): void;
|
|
9
|
-
export function setSeriesWatchMap(val: any): void;
|
|
10
|
-
export function getSeriesWatchMap(): any;
|
|
11
|
-
export namespace seasonIdxManager {
|
|
12
|
-
function set(idx: any): void;
|
|
13
|
-
function get(): number;
|
|
14
|
-
}
|
package/esm/helpers/loader.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function switchToSecondaryAsset(res: any, playerId: any): boolean;
|
package/esm/helpers/skin.d.ts
DELETED
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
export function throttle(fn: any, delay: any): (...args: any[]) => void;
|
|
2
|
-
export function setUpdatedElHeight(playerId: any, el: any): void;
|
|
3
|
-
export function handleDrawerResizing(playerId: any, drawerEl: any): void;
|
|
4
|
-
export function createIconMarkup(icon: any): SVGSVGElement;
|
|
5
|
-
export function isNotAValidSkin(skin: any): boolean;
|
|
6
|
-
export function highlightVideo(i: any, DEFAULTV2_TEMP_PLAYER_ID: any): void;
|
|
7
|
-
export function closeOpenDrawers(): void;
|
|
8
|
-
export function parseSvgString(svgString: any): SVGSVGElement;
|
|
9
|
-
export function parseHtmlString(htmlString: any): HTMLBodyElement;
|
|
10
|
-
export function impolicy16x9(img: any): string;
|
|
11
|
-
export function on_orientation_change(playerId: any, element: any): void;
|
|
12
|
-
export function detectOrientationChange(playerId: any, element: any): void;
|
|
13
|
-
export function clearEventListeners(): void;
|
|
14
|
-
export function highlightVideo_DEFAULTV2_TEMP(i: any): void;
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
export namespace SSAI_EVENTS {
|
|
2
|
-
const BREAK_START: string;
|
|
3
|
-
const IMPRESSION: string;
|
|
4
|
-
const FIRST_QUARTILE: string;
|
|
5
|
-
const MIDPOINT: string;
|
|
6
|
-
const THIRD_QUARTILE: string;
|
|
7
|
-
const COMPLETE: string;
|
|
8
|
-
const BREAK_END: string;
|
|
9
|
-
}
|
|
10
|
-
export function triggerSSAIEvents(playerId: any, adsData?: {}): {};
|
|
11
|
-
export function getSsaiEvents(playerId: any): {
|
|
12
|
-
adBreakStart?: undefined;
|
|
13
|
-
adImpression?: undefined;
|
|
14
|
-
adFirstQuartile?: undefined;
|
|
15
|
-
adMidpoint?: undefined;
|
|
16
|
-
adThirdQuartile?: undefined;
|
|
17
|
-
adComplete?: undefined;
|
|
18
|
-
adBreakEnd?: undefined;
|
|
19
|
-
} | {
|
|
20
|
-
adBreakStart: (cb: any) => () => any;
|
|
21
|
-
adImpression: (cb: any) => () => any;
|
|
22
|
-
adFirstQuartile: (cb: any) => () => any;
|
|
23
|
-
adMidpoint: (cb: any) => () => any;
|
|
24
|
-
adThirdQuartile: (cb: any) => () => any;
|
|
25
|
-
adComplete: (cb: any) => () => any;
|
|
26
|
-
adBreakEnd: (cb: any) => () => any;
|
|
27
|
-
};
|
package/esm/helpers/token.d.ts
DELETED
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export function token_authentication_enabled(params: any): boolean;
|
|
2
|
-
export function getToken(): Promise<any>;
|
|
3
|
-
export function fetchRefreshToken(): Promise<import("axios").AxiosResponse<any, any>>;
|
|
4
|
-
export function refreshTokenManager(): {
|
|
5
|
-
set(token: any): void;
|
|
6
|
-
get(): any;
|
|
7
|
-
};
|
|
8
|
-
export function isTokenExpired(token: any): boolean;
|
|
9
|
-
export function getDecodedToken(token: any): any;
|
package/esm/index-3b50e289.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import"video.js/dist/video-js.min.css";import{d as e,g as n,a as t,b as o,c as r,e as i,s as l,f as a,l as u,h as s,i as c,j as d,k as v,m as f,r as p,n as m,o as g,p as y,q as h,t as b,u as w,v as k,w as S,x as O,y as T,z as I,A as j,B as E,C as P,D,E as C,F as x,G as A,H as L,I as R,J as N,K as M,L as B,M as _,N as U,O as V,P as F,Q as H}from"./generic-7fb8e9c5.js";import Q from"@babel/runtime/helpers/defineProperty";import G from"@babel/runtime/helpers/asyncToGenerator";import K from"@babel/runtime/regenerator";import W from"video.js";import{o as q,g as z,a as J,s as X,b as Y,p as $}from"./util-9649ae40.js";import{g as Z,d as ee,a as ne,e as te}from"./captions-b619441b.js";import{g as oe,p as re}from"./resolution-62be852a.js";import{t as ie,i as le,a as ae}from"./skin-16f83185.js";import{g as ue}from"./player_instance-34118a5b.js";import{s as se}from"./localisation-0bf399a1.js";import ce from"@babel/runtime/helpers/typeof";import de from"@babel/runtime/helpers/toConsumableArray";import ve from"@babel/runtime/helpers/slicedToArray";import{w as fe,s as pe}from"./icons-c139587c.js";var me=function(e){return new Promise(function(n,t){if(ge(e))t("".concat(e," is alread initialised"));else{var o=document.createElement("script");o.async=!0,o.src=e,o.onload=function(){n()},o.onerror=function(n){t("Error while loading script ".concat(e," : ").concat(n))},document.head.appendChild(o)}})},ge=function(e){return document.querySelectorAll('script[src="'.concat(e,'"]')).length>0},ye=function(e,n,t){var o=ue(e);if(o)if(n>=0&&n<=100){o.muted()&&o.muted(!1);var r=parseFloat(n)/100;o.volume(r),t&&t({status:!0,msg:"Volume set to ".concat(n,"%")})}else t&&t({status:!1,msg:"Please enter a valid volume percentage (0 ≥ V ≤ 100)"});else t({status:!1,msg:"Cannot find player with id: '".concat(e,"'")})},he=function(e){var n=ue(e);return n?parseInt(100*n.volume())+"%":"Cannot find player with id: '".concat(e,"'")},be=function(){var n=G(K.mark(function n(t){var o,r,i,l,a;return K.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(r=ue(null==t?void 0:t.playerId),null!=t&&null!==(o=t.series)&&void 0!==o&&o.enable||null==t||!t.chromecastReceiverId){n.next=22;break}return n.next=4,import("@silvermine/videojs-chromecast");case 4:return l=n.sent,n.prev=5,n.next=8,me("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1");case 8:n.next=13;break;case 10:n.prev=10,n.t0=n.catch(5),console.log("Error",n.t0);case 13:return n.prev=13,l.default(W),n.finish(13);case 16:(a=W.getTech("chromecast"))&&!a.prototype.seeking&&(a.prototype.seeking=function(){}),null!==(i=window)&&void 0!==i&&i.cast?null==r||r.chromecast({receiverAppID:null==t?void 0:t.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==t.skin||"defaultV2"==t.skin,buttonPositionIndex:-5,addCastLabelToButton:!0}):window.__onGCastApiAvailable=function(){null==r||r.chromecast({receiverAppID:null==t?void 0:t.chromecastReceiverId,addButtonToControlBar:"VL_ONE"==t.skin||"defaultV2"==t.skin,buttonPositionIndex:-5,addCastLabelToButton:!0})},n.next=23;break;case 22:console.log("Chromecast plugin is not available");case 23:null!=t&&t.airplay&&"Safari"==e()?null==r||r.airPlay({addButtonToControlBar:"VL_ONE"==t.skin||"defaultV2"==t.skin,buttonPositionIndex:-5}):console.log("AirPlay plugin is not available");case 24:case"end":return n.stop()}},n,null,[[5,10,13,16]])}));return function(e){return n.apply(this,arguments)}}(),we=function(e,n){var t=ue(e);t&&n&&t.controlBar&&t.controlBar.progressControl.seekBar.on("click",function(n){var t,o,r,i,l,a=this.el(),u=W.dom.getPointerPosition(a,n).x;W.getPlayer(e).controlBar.durationDisplay.options_.playerOptions.disableRemotePlayback=!1;var s=window.cast&&window.cast.framework&&window.cast.framework.CastSession,c=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(r=o.framework)||void 0===r||null===(i=r.CastContext)||void 0===i||null===(l=i.getInstance())||void 0===l?void 0:l.S;if(console.log(s),s&&"CONNECTED"===c){window.cast.framework.RemotePlayer.canSeek=!0;var d=new window.cast.framework.RemotePlayerController(window.cast.framework.RemotePlayer),v=d.h.media[0].liveSeekableRange.end;d.getSeekPosition(),window.cast.framework.RemotePlayer.currentTime=v*u,d.seek()}})};var ke=function(){var e=G(K.mark(function e(){return K.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,Promise.all([import("videojs-contrib-ads"),import("ima"),me("https://imasdk.googleapis.com/js/sdkloader/ima3.js").then(function(){}).catch(function(e){return console.log(e)})]);case 2:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),Se=function(){var e=G(K.mark(function e(){return K.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log("utilising contrib eme"),e.next=3,import("videojs-contrib-eme").then(function(e){W.getPlugin("eme")||W.registerPlugin("eme",e.default)});case 3:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}(),Oe=function(){var e=G(K.mark(function e(){var n;return K.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("videojs-mux");case 3:if(!(n=e.sent)||"function"!=typeof n.register){e.next=7;break}return n.register(W),e.abrupt("return");case 7:console.log("Mux registration failed"),e.next=13;break;case 10:e.prev=10,e.t0=e.catch(0),console.log("Failed to load Mux plugin:",e.t0);case 13:case"end":return e.stop()}},e,null,[[0,10]])}));return function(){return e.apply(this,arguments)}}(),Te=function(){var e=G(K.mark(function e(){return K.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("./index-5d92eaa3.js");case 3:e.next=8;break;case 5:e.prev=5,e.t0=e.catch(0),console.error("Failed to load dvr seekbar");case 8:case"end":return e.stop()}},e,null,[[0,5]])}));return function(){return e.apply(this,arguments)}}(),Ie=function(){var e=G(K.mark(function e(){return K.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,import("./videojs-dash5.es-6c1ba1fe.js");case 3:console.log("utilising contrib dash"),e.next=9;break;case 6:e.prev=6,e.t0=e.catch(0),console.error("Failed to load contrib dash plugin");case 9:case"end":return e.stop()}},e,null,[[0,6]])}));return function(){return e.apply(this,arguments)}}(),je=Object.freeze({__proto__:null,importChromecast:function(){import("@silvermine/videojs-chromecast").then(function(e){me("https://www.gstatic.com/cv/js/sender/v1/cast_sender.js?loadCastFramework=1").then(function(){e.default(W)}).catch(function(e){console.log(e)})})},importAirplay:function(){import("@silvermine/videojs-airplay").then(function(e){e.default(W)})},loadAdsLibrary:ke,loadEMELibrary:Se,loadMuxPlugin:Oe,loadDvrSeekbar:Te,loadContribDash:Ie});function Ee(e){return Pe.apply(this,arguments)}function Pe(){return(Pe=G(K.mark(function n(t){var o;return K.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return o=(null==t?void 0:t.airplay)||!1,n.next=3,ke();case 3:o&&"Safari"==e()&&Promise.resolve().then(function(){return je}).then(function(e){e.importAirplay()});case 4:case"end":return n.stop()}},n)}))).apply(this,arguments)}function De(e,n){return Ce.apply(this,arguments)}function Ce(){return(Ce=G(K.mark(function n(t,o){var r,i,l,a,u,s,c,d,v,f;return K.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:return c=(null==o?void 0:o.contentType)||"video",d=null==o||null===(r=o[c])||void 0===r?void 0:r.drmEnabled,null==o||null===(i=o[c])||void 0===i||null===(l=i.liveDetails)||void 0===l||l.isDvrEnabled,null==t||t.showPositiveSeekbar,v=(null==o||null===(a=o[c])||void 0===a||null===(u=a.streamingInfo)||void 0===u||null===(s=u.videoAssets)||void 0===s?void 0:s.dash)||null,n.prev=5,n.next=8,Promise.allSettled([d?"Safari"==e()?Se():"caliente"!=(null===(f=window)||void 0===f?void 0:f.siteName)?Ie():Se():"Safari"!=e()&&v?Ie():null,be(t)]);case 8:n.next=13;break;case 10:n.prev=10,n.t0=n.catch(5),console.log("Error",n.t0);case 13:case"end":return n.stop()}},n,null,[[5,10]])}))).apply(this,arguments)}function xe(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function Ae(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?xe(Object(t),!0).forEach(function(n){Q(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):xe(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var Le=new Set,Re=null,Ne=function(e,t,r){var i,l,a,u,s,c,d,v={},f=(null==e?void 0:e.contentType)||"video";v["c3.cm.id"]=(null===(i=e[f])||void 0===i?void 0:i.id)||"Null",v["c3.cm.contentType"]=He(e),v[null==r||null===(l=r.Constants)||void 0===l?void 0:l.IS_LIVE]=!(null==e||!e.linearchannel),v[null==r||null===(a=r.Constants)||void 0===a?void 0:a.STREAM_URL]=t.currentSrc(),v[null==r||null===(u=r.Constants)||void 0===u?void 0:u.VIEWER_ID]="undefined"===n()?"NULL":n(),v["c3.cm.categoryType"]=Ue(e),v["m3.net.t"]=function(){var e=navigator.connection||navigator.mozConnection||navigator.webkitConnection;if(!e)return"Unknown";if(e.type)switch(e.type){case"wifi":return"WiFi";case"ethernet":return"Ethernet";default:return e.type}switch(e.effectiveType){case"slow-2g":case"2g":return"2G";case"3g":return"3G";case"4g":return e.downlink>=20?"WiFi":"4G";default:return"Unknown"}}(),v.DRMEnabled=(null===(s=e[f])||void 0===s?void 0:s.drmEnabled)||"None",v.DAIStream=null!==(c=e[f])&&void 0!==c&&null!==(d=c.gist)&&void 0!==d&&d.isSSAIEnabled?"YES":"NO",v[r.Constants.DEFAULT_RESOURCE]="AKAMAI",v["c3.cm.brand"]="NULL",v.CDVREnabled=Ve(e),v["c3.cm.genreList"]=Be(e),v["c3.cm.genre"]=Me(e),v["c3.cm.channel"]=_e(e);var p=Ke(o(),e);return v=Ae(Ae({},v),p)},Me=function(e){var n,t,o,r=(null==e?void 0:e.contentType)||"video";return(null==e||null===(n=e[r])||void 0===n||null===(t=n.gist)||void 0===t||null===(o=t.primaryCategory)||void 0===o?void 0:o.title)||"Null"},Be=function(e){var n,t=(null==e?void 0:e.contentType)||"video";return((null==e||null===(n=e[t])||void 0===n?void 0:n.categories)||[]).map(function(e){return null==e?void 0:e.title}).join(", ")||"Null"},_e=function(e){var n,t,o=(null==e?void 0:e.contentType)||"video";return"video"===o?"VOD":(null==e||null===(n=e[o])||void 0===n||null===(t=n.channels[0])||void 0===t?void 0:t.title)||"NULL"},Ue=function(e){return(null==e?void 0:e.contentType)||"null"},Ve=function(e){var n,t,o=(null==e?void 0:e.contentType)||"video",r=(null==e||null===(n=e[o])||void 0===n||null===(t=n.liveDetails)||void 0===t?void 0:t.isDvrEnabled)||!1;return r?"YES":"NO"},Fe=function(e,n){var t,o,r=(n||{}).epg;if(r&&null!=r&&r.enable&&null!=r&&r.programTitle)return r.programTitle;var i=(null==e?void 0:e.contentType)||"video",l=(null==e||null===(t=e[i])||void 0===t||null===(o=t.gist)||void 0===o?void 0:o.title)||"Null";return"".concat(l)},He=function(e){return"linearchannel"===((null==e?void 0:e.contentType)||"video")?"Live":"VOD"};var Qe,Ge,Ke=function(e,n){var o,i,l,a,u,s={"c3.cm.seriesName":"Null","c3.cm.seasonNumber":"Null","c3.cm.showTitle":"Null","c3.cm.episodeNumber":"Null"};if(!e||!n||null!=n&&n.linearchannel)return s;var c=r(),d=t();return s["c3.cm.seriesName"]=(null==n||null===(o=n.video)||void 0===o||null===(i=o.series)||void 0===i?void 0:i.title)||"Null",s["c3.cm.seasonNumber"]=(null==c?void 0:c.toString())||"Null",s["c3.cm.showTitle"]=(null==e||null===(l=e[c-1])||void 0===l||null===(a=l.episodes)||void 0===a||null===(u=a[d-1])||void 0===u?void 0:u.title)||"Null",s["c3.cm.episodeNumber"]=(null==d?void 0:d.toString())||"Null",s},We=function(e){switch(e){case"com.widevine.alpha":return"Widevine";case"com.microsoft.playready":return"PlayReady";case"org.w3.clearkey":return"ClearKey";case"com.apple.fps.1_0":return"FairPlay";default:return"Unknown DRM System"}},qe=function(e){switch(e){case"application/x-mpegURL":case"application/vnd.apple.mpegurl":return"HLS";case"application/dash+xml":return"DASH";default:return"Unknown"}},ze=function(){var e=G(K.mark(function e(n,t){var o,r,l,a,u,s,c,d,v,f;return K.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(o=(null==t?void 0:t.convivaConfig)||{},r=o.trackConvivaPlayerEvent,l=o.paymentHandler,a=o.tveProvider,u=o.enable,s=o.appName,c=(t||{}).token,u){e.next=4;break}return e.abrupt("return");case 4:if(d=ue(n),"function"==typeof(v=r)){e.next=8;break}return e.abrupt("return");case 8:return e.next=10,v("getConvivaObject");case 10:if(f=e.sent){e.next=13;break}return e.abrupt("return");case 13:d.ready(function(){var e=d.tech(!0),n=!1;e.on("keysessioncreated",function(e){n=!0;var t=e.target;if(t&&t.keySystem){var o=We(t.keySystem);v("contentInfo",{DRMEnabled:o})}else v("contentInfo",{DRMEnabled:"None"})}),n||v("contentInfo",{DRMEnabled:"None"})}),d.on("loadstart",function(){var e,n;Re&&Re!==d.currentSrc()&&v("playbackEnded"),v("setPlayer",d),Le.clear(),Re=d.currentSrc();var o=qe(d.currentType()),r=i(),u=Ne(r,d,f);u[null==f||null===(e=f.Constants)||void 0===e?void 0:e.PLAYER_NAME]=s||"WEB",u[null==f||null===(n=f.Constants)||void 0===n?void 0:n.ASSET_NAME]=Fe(r,t),u.authToken=c||"NULL",u.streamType=o,u.D2CType=l||"NONE",u.subscriberType=a||(l?"D2C":"FREE"),u["c3.cm.affiliate"]=a||"NULL",Je.setData(u),v("contentInfo",u)}),d.on("loadedmetadata",function(){var e,n=d.videoHeight();e=n>=2160?"4K":n>=1440?"1440p":n>=1080?"1080p":n>=720?"720p":n>=480?"480p":"".concat(n,"p"),v("contentInfo",{screenResolution:e})}),d.on("play",function(){Le.has(d.currentSrc())||(Le.add(d.currentSrc()),v("playbackStarted",null))}),d.on("ended",function(){Le.has(d.currentSrc())&&Le.delete(d.currentSrc()),v("playbackEnded")}),d.on("ads-loader",function(e){e&&null!=e&&e.adsLoader&&v("initAdSensor",{player:d,adsLoader:null==e?void 0:e.adsLoader})}),d.on("dispose",function(){null==Le||Le.clear(),v("playbackEnded")});case 20:case"end":return e.stop()}},e)}));return function(n,t){return e.apply(this,arguments)}}(),Je=(Qe={},{setData:function(e){Qe=Ae(Ae({},Qe),e)},getData:function(){return Qe}}),Xe=function(e,n){var t=null==n?void 0:n.skin;"default"==t?import("./skin-6185e3d0.js").then(function(t){t.initialiseSkin(e,n)}):"carousel"==t?import("./skin-93e0aec2.js").then(function(n){n.initaliseSkin(e)}):"defaultV2"==t?import("./skin-7b1fe120.js").then(function(t){t.initialiseSkin(e,n)}):"multiplayer"==t?import("./skin-757c1e70.js").then(function(t){t.initialiseSkin(e,n)}):"minimalist"==t?import("./skin-59cd094a.js").then(function(t){t.initaliseSkin(e,n)}):"VL_ONE"==t&&import("./skin-0c5f06e9.js").then(function(t){t.initialiseSkin(e,n)})};function Ye(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function $e(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Ye(Object(t),!0).forEach(function(n){Q(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Ye(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var Ze=[],en=0,nn=null;function tn(e,n,t){var o,r,a,u,s,c=arguments.length>3&&void 0!==arguments[3]&&arguments[3];null==n||null===(o=n.watchHistory)||void 0===o||o.apiVersion;var d=null==n||null===(r=n.watchHistory)||void 0===r?void 0:r.profileId,v=Math.floor(e.currentTime()),f=Math.floor(e.duration());null==n||null===(a=n.watchHistory)||void 0===a||a.xapiKey;var p=(null==n||null===(u=n.video)||void 0===u?void 0:u.originalObjectId)||null,m=(null==n||null===(s=n.watchHistory)||void 0===s?void 0:s.saveOffline)||!1,g=Math.floor(e.currentTime()),y=c?100:Math.floor(v/f*100),h={};m?function(e,n,t){var o=n?"watchhistory-data-".concat(n):"watchhistory-data-guest-".concat(t),r=on(o),l=(new Date).getTime(),a=i(),u=(null==a?void 0:a.video)||{},s=["id","title","gist","categories","tags","status","publishDate","plans","isVerticalVideo","monetizationBadgeIdentifier","runtime"].reduce(function(e,n){return $e($e({},e),{},Q({},n,u[n]))},{}),c=r.findIndex(function(e){var n;return(null==e||null===(n=e.content)||void 0===n?void 0:n.id)===Ge});c<0?r.push($e($e({content:s},e),{},{addedDate:l,updateDate:l})):r[c]=$e($e($e({},r[c]),e),{},{updateDate:l});localStorage.setItem("".concat(o),JSON.stringify(r))}(h={completed:c,watchedTime:g,watchedPercentage:y},d,n.siteOwner):(h=$e($e({videoId:Ge,watchedTime:g,watchedPercentage:y,doneWatching:c,profileId:d},nn&&{seriesId:nn}),p&&{originalObjectId:p}),l(h).then(function(e){}).catch(function(e){})),en=v+t}function on(e){var n=[];return e&&(n=JSON.parse(localStorage.getItem("".concat(e))||"[]")),n}function rn(e,n,t){var o=on(e?"watchhistory-data-".concat(e):"watchhistory-data-guest-".concat(t)),r=[];return o&&Array.isArray(o)&&(r=o.filter(function(e){var t;return(null==e||null===(t=e.content)||void 0===t?void 0:t.id)===n})),r}var ln=!1,an=function(e,n){var t,o,r=(null==e?void 0:e.contentType)||"video";if(((null==e||null===(t=e[r])||void 0===t||null===(o=t.streamingInfo)||void 0===o?void 0:o.secondaryVideoAssets)||null)&&!ln){var i=un(e,"videoAssets","secondaryVideoAssets"),l=a(i,n);return l&&u(n,l),ln=!0,console.log("switching to secondary source"),!0}return console.log("secondary source is either corrupted / not available"),!1};function un(e,n,t){if(Array.isArray(e))return e.map(function(e){return un(e,n,t)});if(null!==e&&"object"===ce(e)){var o={};return Object.keys(e).forEach(function(r){r===n&&void 0!==e[t]?o[r]=e[t]:r===t&&void 0!==e[n]?o[r]=e[n]:o[r]=un(e[r],n,t)}),o}return e}function sn(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return cn(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?cn(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){a=!0,i=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw i}}}}function cn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}function dn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function vn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?dn(Object(t),!0).forEach(function(n){Q(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):dn(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var fn=function(n,t,o,r){var l,a,u,f,p=r.res,m=r.sres,g=ue(n),y=(null==p?void 0:p.contentType)||"video",h=(null==p?void 0:p[y].drmEnabled)||!1,b=(null==p||null===(l=p[y])||void 0===l||null===(a=l.streamingInfo)||void 0===a?void 0:a.isLiveStream)||!1,w=(null==p||null===(u=p[y])||void 0===u||null===(f=u.liveDetails)||void 0===f?void 0:f.isDvrEnabled)||!1;s(p),g&&(g.on("loadstart",function(){b?o.resolve({status:!0,msg:"Video Loaded",response:p}):o.resolve(vn({status:!0,msg:"Player Initialised"},m?{seriesResponse:m,response:p}:{response:p}))}),g.on("loadeddata",function(){var o,r,l,a=Z(n);if(null==a||a.map(function(e){return ee(n,e.id)}),w&&"Safari"===e())try{var u;null==g||null===(u=g.liveTracker)||void 0===u||u.seekToLiveEdge()}catch(e){console.log("Cannot seek to Live Edge",e)}(null==g||!g.muted())&&ye(n,sessionStorage.getItem("volume")||"100");var s=i();if(c(),null!=t&&t.watchHistory&&null!=t&&null!==(o=t.watchHistory)&&void 0!==o&&o.enable&&(!t.isAnonymousUser||null!=t&&null!==(r=t.watchHistory)&&void 0!==r&&r.saveOffline)){var d,v,f=vn(vn({},t),p);!function(e,n,t){var o,r,i;null!=n&&n.series&&null!=n&&null!==(o=n.series)&&void 0!==o&&o.enable&&(nn=null==n||null===(r=n.series)||void 0===r?void 0:r.id),Ze=[],en=0,Ge=t;var l=(null==n||null===(i=n.watchHistory)||void 0===i?void 0:i.interval)||30,a=ue(e);a&&(a.on("timeupdate",function(){if(!a.seeking()){var e=Math.floor(a.currentTime());Ze.includes(en)||(e==en?(Ze.push(e),tn(a,n,l)):e>en&&(en=e+l))}}),a.one("ended",function(){tn(a,n,l,!0)}))}(n,f,null==s||null===(d=s.video)||void 0===d||null===(v=d.gist)||void 0===v?void 0:v.id)}if(null!=t&&null!==(l=t.analytics)&&void 0!==l&&l.muxKey&&null!=g&&g.mux){var m,y,h,b,k,S,O=(null===(m=i())||void 0===m?void 0:m.video)||(null==p?void 0:p.video),T=null==O?void 0:O.gist,I={env_key:null==t||null===(y=t.analytics)||void 0===y?void 0:y.muxKey,player_name:"vl-web-player",player_version:null===(h=window)||void 0===h?void 0:h.vl_player_version,video_id:null==T?void 0:T.id,video_title:null==T?void 0:T.title,video_series:null==O||null===(b=O.series)||void 0===b?void 0:b.title,video_stream_type:null!=O&&null!==(k=O.streamingInfo)&&void 0!==k&&k.isLiveStream?"live":"video",viewer_user_id:null==t||null===(S=t.analytics)||void 0===S?void 0:S.userId};g.mux({debug:!1,data:I})}}),g.textTracks().on("change",function(e){var n=this.tracks_.filter(function(e){if(("subtitles"===e.kind||"captions"===e.kind)&&"showing"===e.mode)return!0})[0];g.trigger("subtitlechanged",n)}),g.on("subtitlechanged",function(e,n){var t,o,r,i,l,a,u,s,c,d,v=window.cast&&window.cast.framework&&window.cast.framework.CastSession,f=null===(t=window)||void 0===t||null===(o=t.cast)||void 0===o||null===(r=o.framework)||void 0===r||null===(i=r.CastContext)||void 0===i||null===(l=i.getInstance())||void 0===l?void 0:l.S,p=null===(a=window)||void 0===a||null===(u=a.cast)||void 0===u||null===(s=u.framework)||void 0===s||null===(c=s.CastContext)||void 0===c||null===(d=c.getInstance())||void 0===d?void 0:d.getCurrentSession();if(v&&"CONNECTED"===f){var m,g=p.getMediaSession(),y=g.media.tracks.filter(function(e){return"TEXT"==e.type});m=n?new chrome.cast.media.EditTracksInfoRequest([y[0].trackId]):new chrome.cast.media.EditTracksInfoRequest([]),g.editTracksInfo(m)}}),g.tech_.on("retryplaylist",function(){b&&an(p,n)}),g.on("error",function(){var e,t;(console.log("ERROR",g.error(),g.error().code),4===g.error().code&&b)?an(p,n):(d(n,(null==g||null===(e=g.error())||void 0===e?void 0:e.message)||"Some error occured"),o.reject({status:!1,msg:(null==g||null===(t=g.error())||void 0===t?void 0:t.message)||"Some error occured",response:p}))}),g.one("play",function(){var e,n,o,r,l;if(null===(e=window)||void 0===e||null===(n=e.app_data)||void 0===n||null===(o=n.appcmsMain)||void 0===o||null===(r=o.adsConfig)||void 0===r||!r.vodAdClientSideTracking){if(null!=t&&null!==(l=t.series)&&void 0!==l&&l.enable){var a,u,s,c=null===(a=i())||void 0===a||null===(u=a.video)||void 0===u||null===(s=u.gist)||void 0===s?void 0:s.id,d=v(),f=(null==d?void 0:d.get(c))||{t:0,p:0},p=f.t,m=f.p;p&&m<95&&setTimeout(function(){g.currentTime(p)},0)}else null!=t&&t.watchHistoryResumeTime&&(null==t?void 0:t.watchedPercentage)<95&&setTimeout(function(){g.currentTime(null==t?void 0:t.watchHistoryResumeTime)},0);if(null!=g&&g.dvrSeekbar)try{g.dvrSeekbar()}catch(e){console.error("Error while initilizing dvr seekbar")}}}),g.on("volumechange",function(){var e=100*g.volume().toFixed(2);g.muted()?sessionStorage.setItem("volume",0):sessionStorage.setItem("volume",e)}),g.on("chromecastDisconnected",function(){if(b){g.currentSource();for(var e=g.textTracks(),n=e.length-1;n>=0;n--)g.removeRemoteTextTrack(e[n])}}),g.one("loadeddata",function(){var n,t=(null==g||null===(n=g.audioTracks())||void 0===n?void 0:n.tracks_)||null;if(t)if(t.sort(function(e,n){var t=(e.language||e.language||"").toUpperCase(),o=(n.language||n.label||"").toUpperCase();return t<o?-1:t>o?1:0}),"object"==ce(g.dash)){var o,r,i,l=null==g||null===(o=g.dash)||void 0===o||null===(r=o.mediaPlayer)||void 0===r?void 0:r.getTracksFor("audio"),a=null==l?void 0:l.find(function(e){var n;return null==e||null===(n=e.roles)||void 0===n?void 0:n.includes("main")}),u=sn(t);try{for(u.s();!(i=u.n()).done;){var s=i.value;if(a&&(null==s?void 0:s.id)=="dash-audio-".concat(a.index)){s.enabled=!0;break}}}catch(e){u.e(e)}finally{u.f()}}else{var c,d=sn(t);try{for(d.s();!(c=d.n()).done;){var v,f,p,m=c.value;if(("Chrome"==e()||"Edge"==e()&&(null!==(v=navigator)&&void 0!==v&&null!==(f=v.userAgent)&&void 0!==f&&f.includes("Macintosh")||!h))&&null!=m&&null!==(p=m.label)&&void 0!==p&&p.includes("5.1"))g.audioTracks().removeTrack(m);else{if("main"==m.kind){m.enabled=!0;break}m.enabled=!1}}}catch(e){d.e(e)}finally{d.f()}}}))};function pn(e,n){var t,o,r,i=ue(e),l=null==i||null===(t=i.controlBar)||void 0===t||null===(o=t.playToggle)||void 0===o?void 0:o.el_,a=document.getElementsByTagName("video")[0];null===(r=document)||void 0===r||r.addEventListener("keydown",function(t){var o,r,u,s,c,d,v,m,g;if(gn.enabled&&"input"!=t.target.localName){var y=t.key,h=!0===n.liveVideo||!0===n.liveui;switch([" ","m","M","f","F","ArrowLeft","ArrowRight"].includes(y)&&(t.preventDefault(),null==a||a.focus()),y){case" ":null==l||l.click();break;case"m":case"M":i.muted(!i.muted());break;case"f":case"F":null===(o=document.querySelector(".vjs-fullscreen-control"))||void 0===o||o.click();break;case"ArrowLeft":h&&!1===n.liveui||p(e,10);break;case"ArrowRight":if("MEDIA_TAILOR"==(null===(r=window)||void 0===r||null===(u=r.app_data)||void 0===u||null===(s=u.appcmsMain)||void 0===s||null===(c=s.adsConfig)||void 0===c?void 0:c.vodAdSticherProvider)&&null!==(d=window)&&void 0!==d&&null!==(v=d.app_data)&&void 0!==v&&null!==(m=v.appcmsMain)&&void 0!==m&&null!==(g=m.adsConfig)&&void 0!==g&&g.vodAdClientSideTracking)return;h||f(e,10)}}},!0)}var mn,gn=(mn=!0,{enable:function(){mn=!0},disable:function(){mn=!1},get enabled(){return mn}}),yn="ssai-breakStart",hn="ssai-adImpression",bn="ssai-firstQuartile",wn="ssai-midpoint",kn="ssai-thirdQuartile",Sn="ssai-complete",On="ssai-breakEnd",Tn={breakStart:yn,impression:hn,firstQuartile:bn,midpoint:wn,thirdQuartile:kn,complete:Sn,breakEnd:On};function In(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},t=ue(e);if(!t)return console.error("[SSAI] Player instance not found"),{};var o=n.eventType,r=Tn[o];r&&t.trigger(r,n)}function jn(e){var n=ue(e);if(!n)return console.error("[SSAI] Player instance not found"),{};var t=function(e,t){var o=function(e,n){return t(n)};return n.on(e,o),function(){return n.off(e,o)}};return{adBreakStart:function(e){return t(yn,e)},adImpression:function(e){return t(hn,e)},adFirstQuartile:function(e){return t(bn,e)},adMidpoint:function(e){return t(wn,e)},adThirdQuartile:function(e){return t(kn,e)},adComplete:function(e){return t(Sn,e)},adBreakEnd:function(e){return t(On,e)}}}function En(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function Pn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?En(Object(t),!0).forEach(function(n){Q(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):En(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function Dn(e,n){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=function(e,n){if(e){if("string"==typeof e)return Cn(e,n);var t={}.toString.call(e).slice(8,-1);return"Object"===t&&e.constructor&&(t=e.constructor.name),"Map"===t||"Set"===t?Array.from(e):"Arguments"===t||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t)?Cn(e,n):void 0}}(e))||n&&e&&"number"==typeof e.length){t&&(e=t);var o=0,r=function(){};return{s:r,n:function(){return o>=e.length?{done:!0}:{done:!1,value:e[o++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var i,l=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return l=e.done,e},e:function(e){a=!0,i=e},f:function(){try{l||null==t.return||t.return()}finally{if(a)throw i}}}}function Cn(e,n){(null==n||n>e.length)&&(n=e.length);for(var t=0,o=Array(n);t<n;t++)o[t]=e[t];return o}var xn,An,Ln=(xn="",{set:function(e){e&&(xn=e)},get:function(){return xn}}),Rn=(An=null,{set:function(e){An=e},get position(){return An}});function Nn(e,n){return Mn.apply(this,arguments)}function Mn(){return Mn=G(K.mark(function e(n,t){var o,r,i,l,u,s,c,d,v,f,p,g,y,h;return K.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return ue(n),o=a(t,n),r=o.src,i=r.replace("/dash/","/session/").replace("master","session"),i=m(i,n,t),l=Bn(i),u=ve(l,2),s=u[0],c=u[1],i=new URL(i.split("?")[0]),Object.keys(c).length>0&&Object.entries(c).forEach(function(e){var n=ve(e,2),t=n[0],o=n[1];i.searchParams.set(t,o)}),e.prev=8,e.next=11,fetch(i,{method:"POST",headers:{"Content-Type":"application/json"},body:JSON.stringify({adsParams:Pn({},s)})});case 11:return d=e.sent,e.next=14,d.json();case 14:return v=e.sent,f="https://"+new URL(i).hostname,p=v.trackingUrl,g=v.manifestUrl,y=f+p,h=f+g,Ln.set(y),console.log("%c TRACKING URL","background: #bdf369; color: #000",y),o.src=h,e.abrupt("return",o);case 26:return e.prev=26,e.t0=e.catch(8),e.abrupt("return",o);case 29:case"end":return e.stop()}},e,null,[[8,26]])})),Mn.apply(this,arguments)}function Bn(e){var n={},t=e.split("?")[1];if(!t)return[{},{}];var o,r=Dn(t.split("&"));try{for(r.s();!(o=r.n()).done;){var i=o.value.split("="),l=ve(i,2),a=l[0],u=l[1];n[decodeURIComponent(a)]=decodeURIComponent(u||"")}}catch(e){r.e(e)}finally{r.f()}for(var s={},c={},d=0,v=Object.entries(n);d<v.length;d++){var f=ve(v[d],2),p=f[0],m=f[1];if(p.startsWith("ads."))s[p.replace(/^ads\./,"")]=m;else c[p]=m}return[s,c]}var _n,Un=(_n=[],{setQueuePoints:function(e){console.log("%c Setting SGAI Queue Points ","background: #bdf369; color: #000",e),_n=Array.isArray(e)?de(e):_n},getQueuePoints:function(){return console.log("%c Getting SGAI Queue Points ","background: #bdf369; color: #000",_n),de(_n)}});function Vn(e,n){return Fn.apply(this,arguments)}function Fn(){return Fn=G(K.mark(function e(n,t){var o,r,i,l,a,u,s,c,d,v,p,m,g,y,h,b,w;return K.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:w=function(e,t,o,r,i,l){var a=ue(n);if(!a.seeking()){t.startTimeInSeconds,t.durationInSeconds,Math.floor(a.currentTime());var u,s=Dn(o);try{var c=function(){var o,s,c,d=u.value,v=d.eventType,f=d.beaconUrls,p=d.startTimeInSeconds,m=d.startTime,g=d.durationInSeconds,y=p||0,w=f,k=(null===(o=window)||void 0===o||null===(s=o.customData)||void 0===s||null===(c=s.ads)||void 0===c?void 0:c.adEventHandler)||null,S="".concat(y,"_").concat(v),O=h.get("pod-".concat(i))||[];if(console.warn(e,y,"map:",v,"condition1:",e>=y,"map:",h),e>=y&&!O.includes(S)){O.push(S),h.set("pod-".concat(i),O);try{b(v,t,w,a)}catch(e){console.error("Error when calling triggerAdBeacon:",e,v,t)}if("breakEnd"==v){var T=Rn.position;Rn.set(null),setTimeout(function(){null!=T&&(a.currentTime(T),l())},500)}if("function"==typeof k)try{var I,j={eventType:v,startTimeInSeconds:p,startTime:m,durationInSeconds:g,ad:null==t||null===(I=t.ads)||void 0===I?void 0:I[r],adIndex:r};k({adsData:j}),In(n,j)}catch(e){console.error("Error when calling ads callback:",e)}}};for(s.s();!(u=s.n()).done;)c()}catch(e){s.e(e)}finally{s.f()}}},b=function(e,n,t,o){console.warn("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n),console.log("%c SSAI BEACON ","background: #e25822; color: #fff",e,"Fired:".concat(Math.round(o.currentTime())),"AD_POD:",n),null==t||t.forEach(function(e){fetch(e,{mode:"no-cors"}).catch(function(n){console.warn("Beacon failed:",e,n)})})},y=function(e){var n=Math.floor(e/60),t=Math.floor(e%60);return"".concat(n,":").concat(t.toString().padStart(2,"0"))},Rn.set(t),a=Ln.get(),(u=ue(n)).one("loadeddata",function(){a&&g(a)}),s=new Map,c=new Map,d=-1,v=(null===(o=document)||void 0===o||null===(r=o.getElementsByClassName("tvProviderImage"))||void 0===r?void 0:r[0])||null,p=(null==u||null===(i=u.controlBar)||void 0===i?void 0:i.getChild("videoSelector"))||null,m=(null==u||null===(l=u.controlBar)||void 0===l?void 0:l.getChild("seriesV2"))||null,g=function(){var e=G(K.mark(function e(o){var r,i,l,a,u,g,h,b,k,S,O,T,I,j,E,P,D;return K.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return I=function(e){document.removeEventListener("pointermove",T),document.removeEventListener("pointerup",I),0===e.button&&S()},T=function(e){},O=function(){var e,n=h.currentTime(),t=null,o=Dn(g);try{for(o.s();!(e=o.n()).done;){var r=e.value,i=r.startTimeInSeconds,l=r.durationInSeconds,a=(r.ads,Math.floor(i+l));n>=i&&n<=a&&(t=a,s.set(i,!0))}}catch(e){o.e(e)}finally{o.f()}null!==t&&(console.log("Seeking to end of the ad pod:",t),setTimeout(function(){h.currentTime(t+2.2)},100))},S=function(){var e,n=h.currentTime(),t=null,o=Dn(g);try{for(o.s();!(e=o.n()).done;){var r=e.value,i=r.startTimeInSeconds,l=r.durationInSeconds,a=r.ads,u=Math.floor(i+l);(Array.isArray(a)&&(null==a?void 0:a.length)>0&&(n>u||n>i)&&!s.has(i)||n>=i&&n<=u)&&(t=i,s.set(i,!0),c.set(i,!0))}}catch(e){o.e(e)}finally{o.f()}null!==t&&(console.log("Seeking back to ad pod:",t),setTimeout(function(){h.currentTime(t+.4)},100))},i=!1,e.next=7,fetch(o);case 7:return l=e.sent,e.next=10,l.json();case 10:a=e.sent,console.log("%c TRACKING URL RESPONSE ","background: #d9e7ff; color: #000",a),u=a.avails,g=[],h=ue(n),b=h.controlBar.progressControl,k=b.seekBar.el(),u.map(function(e,n){var t,o,r;0==n&&Array.isArray(null==e?void 0:e.ads)&&(null==e||null===(t=e.ads)||void 0===t?void 0:t.length)>0&&(i=!0),g.push({ads:null==e?void 0:e.ads,durationInSeconds:null==e?void 0:e.durationInSeconds,startTimeInSeconds:null==e?void 0:e.startTimeInSeconds,markerPositionInSeconds:Math.floor(null==e?void 0:e.startTimeInSeconds),podSlotImpressionBeacon:(null==e||null===(o=e.adBreakTrackingEvents)||void 0===o||null===(r=o.filter(function(e){return"breakStart"==(null==e?void 0:e.eventType)}))||void 0===r?void 0:r[0])||[]})}),!i&&t&&(h.currentTime(t),O()),null!=g&&g.length&&(console.log("%c SSAI AD PODS ","background: #bdf369; color: #000",g),window.adsQueueList=g),console.log(g,"data"),g.forEach(function(e){var n=e.markerPositionInSeconds,t=e.ads,o=h.duration();if(!(n>o||Array.isArray(t)&&0==(null==t?void 0:t.length))){var r=n/o*100,i=document.createElement("div");i.className="vjs-seekbar-marker",i.style.left="".concat(r,"%"),i.style.position="absolute",i.style.top="0",i.style.bottom="0",i.style.width="2px",i.style.backgroundColor="#fecc09",i.style.left="".concat(r,"%"),i.style.pointerEvents="none",k.appendChild(i)}}),h.on("timeupdate",ie(function(){var e=h.currentTime();if(e!==d){d=e;for(var n=!1,t=function(){var t=g[o],r=t.startTimeInSeconds,i=t.durationInSeconds,l=t.ads,a=r+i;if(e>=r-1.2&&e<=a+1.2){e>=r&&e<=a&&Array.isArray(l)&&(null==l?void 0:l.length)>0&&(n=!0),e>a&&s.set(r,!0),gn.disable(),v&&v.classList.add("vjs-hidden"),p&&(p.el().style.pointerEvents="none",p.el().classList.add("vjs-hidden")),m&&(m.el().style.pointerEvents="none",m.el().classList.add("vjs-hidden")),b.el().style.visibility="hidden";for(var u=e-r,d=0,f=0,h=0;h<l.length;h++){var k,S=null==l||null===(k=l[h])||void 0===k?void 0:k.durationInSeconds;if(u<d+S){f=h;break}d+=S}l[f];var T=Math.max(0,i-u),I=Math.round(T);j.style.display="block",D.textContent="".concat(f+1," of ").concat(l.length," • ").concat(y(I));var E=[];return null==l||l.forEach(function(e){var n=e.trackingEvents.filter(function(e){return["breakStart","breakEnd","firstQuartile","secondQuartile","thirdQuartile","fourthQuartile","midpoint","impression","complete"].includes(e.eventType)});E.push.apply(E,de(n))}),Array.isArray(l)&&0==(null==l?void 0:l.length)&&E.push(null==t?void 0:t.podSlotImpressionBeacon),w(e,t,E,f,o,O),"break"}c.delete(r)},o=0;o<g.length;o++){if("break"===t())break}n||(j.style.display="none",b.el().style.visibility="visible",p&&(p.el().style.pointerEvents="auto",p.el().classList.remove("vjs-hidden")),m&&(m.el().style.pointerEvents="auto",m.el().classList.remove("vjs-hidden")),v&&v.classList.remove("vjs-hidden"),gn.enable())}},1e3)),null===(r=document)||void 0===r||r.addEventListener("keydown",function(e){gn.enabled&&"ArrowRight"==e.key&&(S(),f(n,10),e.stopPropagation())}),b.el().addEventListener("pointerdown",function(e){0===e.button&&(document.addEventListener("pointermove",T),document.addEventListener("pointerup",I))}),(j=document.createElement("div")).className="ssai-ad-container",(E=document.createElement("div")).className="sponsored-adbox",(P=document.createElement("div")).className="sponsored-text",P.textContent="Sponsored Ad",E.append(P),(D=document.createElement("div")).className="ad-counter",document.createElement("div").className="ad-timer",j.append(E),j.append(D),h.el().appendChild(j);case 41:case"end":return e.stop()}},e)}));return function(n){return e.apply(this,arguments)}}(),h=new Map;case 16:case"end":return e.stop()}},e)})),Fn.apply(this,arguments)}function Hn(e,n){var t=n.dvrConfig,o=n.videoId,r=n.userId,i=(null==t?void 0:t.buttonConfig)||{},l=i.watchLive,a=i.resume,u=i.startFromBegining,s=ue(e),c=(null==t?void 0:t.playLive)||!1,d=(null==t?void 0:t.playFromBegining)||!1,v=document.createElement("div");v.className="vjs-dvr-btn-overlay",s.on("loadeddata",function(){if(d&&s.one("canplay",function(){s&&s.seekable()&&(s.currentTime(s.seekable().start(0)),s.play())}),c&&s.one("canplay",function(){s&&s.seekable()&&(s.currentTime(s.seekable().end(0)),s.play())}),!c&&!d){var e=!!Qn(o,r);s.el().appendChild(v),v.innerHTML=function(e,n){var t=(null==e?void 0:e.buttonConfig)||{},o=t.watchLive,r=t.resume,i=t.startFromBegining,l='<button id="watch-live-btn">'.concat(fe()," ").concat((null==o?void 0:o.text)||"Watch Live","</button>"),a='<button id="resume-btn">'.concat(fe()," ").concat((null==r?void 0:r.text)||"Resume","</button>"),u='<button id="watch-begining-btn">\n '.concat(pe()," ").concat((null==i?void 0:i.text)||"Start From Begining","\n </button>"),s=n?a:l;return'<div class="dvr-button">'.concat(s," ").concat(u,"</div>")}(t,e);var n=document.getElementById("watch-live-btn");n&&(Kn(n,l),n.addEventListener("click",function(){s&&s.seekable()&&s.currentTime(s.seekable().end(0)),Gn(s,v)}));var i=document.getElementById("resume-btn");i&&(Kn(i,a),i.addEventListener("click",function(){if(s&&s.seekable()){var e=Qn(o,r),n=Math.min(e,s.seekable().end(0));s.currentTime(n)}Gn(s,v)}));var f=document.getElementById("watch-begining-btn");f&&(Kn(f,u),f.addEventListener("click",function(){var e=s.seekable();if(e&&e.length>0){var n=e.start(0);s.currentTime(n),Gn(s,v)}}))}});var f=s.currentTime(),p=!1;s.on("seeking",function(){p=!0}),s.on("seeked",function(){p=!1,f=s.currentTime()}),s.on("timeupdate",function(){if(!p){var e=s.currentTime();if(e-f>=30&&(!function(e,n,t){sessionStorage.setItem("lastWatchedPosition-".concat(e,"-").concat(n),t.toFixed(2))}(o,r,e),f=e),s.liveTracker){var n,t,i,l,a=s.liveTracker.atLiveEdge(),u=s.controlBar.getChild("SeekToLive");if(a)null==u||u.show(),null==s||null===(n=s.watchLiveButton)||void 0===n||n.hide(),null==s||null===(t=s.startFromBeginningButton)||void 0===t||t.show();else null==u||u.hide(),null==s||null===(i=s.watchLiveButton)||void 0===i||i.show(),null==s||null===(l=s.startFromBeginningButton)||void 0===l||l.hide()}}})}function Qn(e,n){return sessionStorage.getItem("lastWatchedPosition-".concat(e,"-").concat(n))||0}function Gn(e,n){e.play(),e.bigPlayButton.show(),e.controlBar.show(),n.style.display="none"}function Kn(e,n){e&&(e.style.color="".concat((null==n?void 0:n.textColor)||"#000"),e.style.backgroundColor="".concat((null==n?void 0:n.backGroundColor)||"#DCF95B"))}function Wn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function qn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Wn(Object(t),!0).forEach(function(n){Q(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Wn(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var zn=function(n,t,o,r){var i,l,s,c,v,f,p,m,w,k,S,O,T,I,j,E,P,D,C,x,A,L,R,N,M,B,_,U,V,F,H,q,z,J,X,Y,$,Z,ee=t.res,te=void 0===ee?null:ee,oe=t.sres,re=void 0===oe?null:oe,ie=null!=o&&o.chromecastReceiverId?["chromecast","html5"]:["html5"],ae=(null===(i=te)||void 0===i?void 0:i.contentType)||"video",se=le(null===(l=te)||void 0===l||null===(s=l[ae])||void 0===s||null===(c=s.gist)||void 0===c?void 0:c.videoImageUrl)||le(null===(v=te)||void 0===v||null===(f=v[ae])||void 0===f||null===(p=f.gist)||void 0===p||null===(m=p.imageGist)||void 0===m?void 0:m.r16x9),ce=(null===(w=te)||void 0===w||null===(k=w[ae])||void 0===k||null===(S=k.liveDetails)||void 0===S?void 0:S.isDvrEnabled)||!1,de=(null===(O=te)||void 0===O||null===(T=O[ae])||void 0===T||null===(I=T.streamingInfo)||void 0===I?void 0:I.isLiveStream)||!1,ve=(null===(j=te)||void 0===j||null===(E=j.ads)||void 0===E||null===(P=E.preRoll)||void 0===P||null===(D=P.adTags)||void 0===D||null===(C=D.web)||void 0===C?void 0:C.active)&&(null===(x=te)||void 0===x||null===(A=x.ads)||void 0===A||null===(L=A.preRoll)||void 0===L||null===(R=L.adTags)||void 0===R||null===(N=R.web)||void 0===N?void 0:N.url),fe=(null===(M=te=qn(qn({},te),{},{audioAssetSource:null==o?void 0:o.audioAssetSource}))||void 0===M||null===(B=M[ae])||void 0===B?void 0:B.isSSAIEnabled)&&"MEDIA_TAILOR"==(null===(_=window)||void 0===_||null===(U=_.app_data)||void 0===U||null===(V=U.appcmsMain)||void 0===V||null===(F=V.adsConfig)||void 0===F?void 0:F.vodAdSticherProvider)||!1,pe=(null==o?void 0:o.latency)||6,me=(null==o?void 0:o.skin_settings)||{},ge=(null==o?void 0:o.dvrConfig)||{enable:!1},ye=(Z={enableSmoothSeeking:!0,controls:0!=(null==o?void 0:o.controls),playsinline:!0,fluid:!0,aspectRatio:"16:9",muted:(null==o?void 0:o.muted)||!1,autoplay:(null==o?void 0:o.autoplay)||!1,controlBar:{volumePanel:{inline:!1},fullscreenToggle:!0,audioTrackButton:!0,pictureInPictureToggle:(null==me?void 0:me.pictureInPictureToggle)||!1},playbackRates:null!=me&&me.playbackRates?[.5,1,1.5,2]:[],muteToggle:"multiplayer"==o.skin,liveui:ce},Q(Z,"autoplay",null==o?void 0:o.autoplay),Q(Z,"normalizeAutoplay",(null==o?void 0:o.autoplay)&&!ve),Q(Z,"loop",(null==o?void 0:o.loop)||!1),Q(Z,"audioPosterMode",null==o?void 0:o.audioPosterMode),Q(Z,"html5",qn(qn({dash:qn(qn(qn({},!W.browser.IS_SAFARI&&{useTTML:!0}),(null==o?void 0:o.debugConfig)&&(null==o||null===(H=o.debugConfig)||void 0===H?void 0:H.enable)&&{debug:!0,logLevel:null!=o&&null!==(q=o.debugConfig)&&void 0!==q&&q.logLevel?null==o||null===(z=o.debugConfig)||void 0===z?void 0:z.logLevel:"DEBUG"}),{},{updateSettings:{streaming:{delay:{liveDelay:pe},text:{defaultEnabled:!1},liveCatchup:{maxDrift:0,playbackRate:{min:-.1,max:.1}},gaps:{enableStallFix:!0,stallSeek:3},abr:{autoSwitchBitrate:{video:!0,audio:!0}}}}}),vhs:qn(qn({liveRangeSafeTimeDelta:pe,useDevicePixelRatio:!0,experimentalLLHLS:(null==o?void 0:o.lowLatency)||!1,limitRenditionByPlayerDimensions:!1,useNetworkInformationApi:!0},(null==o||null===(J=o.customData)||void 0===J?void 0:J.overrideNative)&&{overrideNative:!0}),{},{enableLowInitialPlaylist:null===(X=null==o?void 0:o.enableLowInitialPlaylist)||void 0===X||X}),debug:!0,nativeTextTracks:"Safari"==e()},0==(null==o||null===(Y=o.customData)||void 0===Y?void 0:Y.nativeAudioTracks)&&{nativeAudioTracks:!1}),0==(null==o||null===($=o.customData)||void 0===$?void 0:$.nativeVideoTracks)&&{nativeVideoTracks:!1})),Q(Z,"poster",se),Q(Z,"techOrder",ie),Q(Z,"chromecast",{requestCustomDataFn:function(e){var t,r,i=ue(n),l=((null==i?void 0:i.textTracksJson_)||i.textTracks().tracks_).filter(function(e){return"captions"==e.kind||"subtitles"==e.kind}),a=function(e,n,t){var o,r,i,l,a,u,s,c,d,v,f=(null==e?void 0:e.contentType)||"video",p={};if(e&&null!=e&&e[f]&&null!=e&&e[f].drmEnabled){var m,g,y,h,b,w,k,S;p.isDrmEnabled=!0;var O=(null==n||null===(m=n.keySystems)||void 0===m?void 0:m["com.widevine.alpha"])||null,T=(null==O?void 0:O.url)||(null==n||null===(g=n.keySystemOptions)||void 0===g||null===(y=g[0])||void 0===y||null===(h=y.options)||void 0===h?void 0:h.serverURL);p.licenseUrl=T;var I=(null==O?void 0:O.licenseHeaders["X-AxDRM-Message"])||(null==n||null===(b=n.keySystemOptions)||void 0===b||null===(w=b[0])||void 0===w||null===(k=w.options)||void 0===k||null===(S=k.httpRequestHeaders)||void 0===S?void 0:S["X-AxDRM-Message"]);p.licenseToken=I}var j=(null==e||null===(o=e[f])||void 0===o||null===(r=o.gist)||void 0===r?void 0:r.contentType)||"VIDEO";p.contentType=j;var E=null==e||null===(i=e[f])||void 0===i||null===(l=i.gist)||void 0===l?void 0:l.runtime;p.duration=E;var P=null==e||null===(a=e[f])||void 0===a||null===(u=a.gist)||void 0===u?void 0:u.title;p.mediaTitle=P;var D=null==e||null===(s=e[f])||void 0===s||null===(c=s.gist)||void 0===c?void 0:c.videoImageUrl;return p.mediaImage=D,p.subTitles=t,p.DVR=(null==e||null===(d=e[f])||void 0===d||null===(v=d.liveDetails)||void 0===v?void 0:v.isDvrEnabled)||!1,console.log(p),p}(te,e,l);return qn(qn({},a),{},{convivaMetaData:qn({customerKey:(null==o||null===(t=o.convivaConfig)||void 0===t?void 0:t.customerKey)||null,debug:(null==o||null===(r=o.convivaConfig)||void 0===r?void 0:r.debug)||!1},Je.getData())})},modifyLoadRequestFn:function(e){var t,o,r,i,l,a=ue(n),u=(null==a?void 0:a.currentSource())||{};!(null===(t=te)||void 0===t||null===(o=t[ae])||void 0===o||null===(r=o.streamingInfo)||void 0===r||null===(i=r.videoAssets)||void 0===i?void 0:i.is4K)&&1||null!=u&&u.src&&null!=u&&null!==(l=u.src)&&void 0!==l&&l.includes(".m3u8")&&(e.media.hlsSegmentFormat="fmp4",e.media.hlsVideoSegmentFormat="fmp4");return e}}),Z);if(!W.getPlayers()[n]){W.log.level("debug");var he=W(n,ye,function(){var e=G(K.mark(function e(){var t,i,l,s,c,v,f,p,m,w,k,S,O,T,I,j,E,P,D,C;return K.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return console.log(he),console.log(W.VERSION),console.log(W.getPlugins()),e.next=5,De(o,te);case 5:if(S=null===(t=te)||void 0===t||null===(i=t[ae])||void 0===i||null===(l=i.liveDetails)||void 0===l?void 0:l.startOverTime,de&&r.resolve(qn({status:!0,msg:"Player Initialised"},re?{seriesResponse:re,response:te}:{response:te})),y(n,null==o?void 0:o.analyticsCb),ze(n,o),/Android/i.test(navigator.userAgent)&&(W.options.vhs.overrideNative=!0),ce&&we(n,S),null!=ge&&ge.enable&&ce&&Hn(n,o),!ve||null!=o&&null!==(s=o.customData)&&void 0!==s&&s.disableAds||h(n,ve,te),O=a(te,n),console.log(O),null!=o&&o.nearestClusterUrl&&(O=b(O,o.nearestClusterUrl)),!fe){e.next=20;break}return e.next=19,Nn(n,te);case 19:O=e.sent;case 20:O?u(n,O):(r.reject({status:!1,msg:"Incompatible / Missing Source",response:te}),d(n,"Incompatible / Missing Source")),((null===(c=te)||void 0===c||null===(v=c[ae])||void 0===v||null===(f=v.contentDetails)||void 0===f||null===(p=f.closedCaptions)||void 0===p?void 0:p.length)>0||(null===(m=te)||void 0===m||null===(w=m[ae])||void 0===w||null===(k=w.closedCaptions)||void 0===k?void 0:k.length)>0)&&(C=(null===(I=te)||void 0===I||null===(j=I[ae])||void 0===j||null===(E=j.contentDetails)||void 0===E?void 0:E.closedCaptions)||(null===(P=te)||void 0===P||null===(D=P[ae])||void 0===D?void 0:D.closedCaptions),T=C.filter(function(e){return"VTT"===e.format}),ne(n,T)),null!=o&&o.disableControls?g(n):Xe(n,qn(qn(qn({},o),ye),{},{liveVideo:de,isDvrEnabled:ce,res:te,sres:re})),fn(n,qn(qn(qn({},o),ye),{},{liveVideo:de}),r,{res:te,sres:re});case 24:case"end":return e.stop()}},e)}));return function(){return e.apply(this,arguments)}}())}},Jn={spinco:"e8f2c1a7-5d94-4a1f-93ea-7c0b9186f1cd"};function Xn(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function Yn(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?Xn(Object(t),!0).forEach(function(n){Q(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):Xn(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}var $n,Zn=function(e,n){var t=n.resolve,o=n.reject,r=null==e?void 0:e.playerId,i=et(e);zn(r,{res:i},e,{resolve:t,reject:o})},et=function(e){var n,t,o,r,i,l,a,u,s=null==e?void 0:e.streamingInfo,c=null==e||null===(n=e.streamingInfo)||void 0===n?void 0:n.videoAssets,d=(null==e||null===(t=e.streamingInfo)||void 0===t?void 0:t.isDrmEnabled)||null,v=(null==e||null===(o=e.streamingInfo)||void 0===o||null===(r=o.ads)||void 0===r?void 0:r.url)||null,f=(null==e||null===(i=e.streamingInfo)||void 0===i?void 0:i.posterUrl)||null,p=(null==e||null===(l=e.streamingInfo)||void 0===l?void 0:l.subtitles)||[],m=(null==e||null===(a=e.streamingInfo)||void 0===a||null===(u=a.videoAssets)||void 0===u?void 0:u.drmProvider)||null,g=null==e?void 0:e.token,y=w(g),h=null==y?void 0:y.site;return Yn(Yn({id:null==Jn?void 0:Jn[h]},!d&&{directPlaybackUrl:null==c?void 0:c.url}),{},{video:{drmEnabled:d,streamingInfo:{videoAssets:Yn(Yn({},m&&{drmProvider:m}),{},{widevine:null==c?void 0:c.widevine,fairPlay:null==c?void 0:c.fairPlay,playReady:null==c?void 0:c.playReady})},liveDetails:{isDvrEnabled:null==s?void 0:s.isDvrEnabled},gist:Yn({},f&&{videoImageUrl:f}),contentDetails:Yn({},(null==p?void 0:p.length)>0&&{closedCaptions:de(p)})},ads:{preRoll:{adTags:{web:Yn(Yn({},v&&{active:!0}),v&&{url:v})}}}})};function nt(e,n){return tt.apply(this,arguments)}function tt(){return(tt=G(K.mark(function e(n,t){var o,r,i,l,a,u;return K.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.resolve,r=t.reject,i=null==n?void 0:n.videoId,l=null==n?void 0:n.playerId,a=!(null==n||!n.anonymousId),e.next=6,T();case 6:u=e.sent,k(i,u).then(function(e){var t,c,d,v;window.contentType=null==e||null===(t=e.data)||void 0===t||null===(c=t.video)||void 0===c||null===(d=c.gist)||void 0===d?void 0:d.contentType,s(null==e?void 0:e.data);var f,p=null==e?void 0:e.data;if(null!=n&&n.watchHistory&&null!=n&&null!==(v=n.watchHistory)&&void 0!==v&&v.enable&&!a)if((null===(f=n.watchHistory)||void 0===f?void 0:f.saveOffline)||!1){var m,g,y,h=rn((null===(m=n.watchHistory)||void 0===m?void 0:m.profileId)||"",i,null==n?void 0:n.siteOwner);if(h&&h.length)n.watchHistoryResumeTime=(null===(g=h[0])||void 0===g?void 0:g.watchedTime)||null,n.watchedPercentage=(null===(y=h[0])||void 0===y?void 0:y.watchedPercentage)||null;p.contentType="video",zn(l,{res:p},n,{resolve:o,reject:r})}else S(i,u).then(function(e){var t,o,r,i,l,a;null!==(t=window)&&void 0!==t&&null!==(o=t.watchHistory)&&void 0!==o&&o.cb&&(null===(r=window)||void 0===r||null===(i=r.watchHistory)||void 0===i||i.cb(null==e?void 0:e.data)),n.watchHistoryResumeTime=(null==e||null===(l=e.data)||void 0===l?void 0:l.watchedTime)||null,n.watchedPercentage=(null==e||null===(a=e.data)||void 0===a?void 0:a.watchedPercentage)||null,p.contentType="video"}).catch(function(e){var n,t,o,r;null!==(n=window)&&void 0!==n&&null!==(t=n.watchHistory)&&void 0!==t&&t.cb&&(null===(o=window)||void 0===o||null===(r=o.watchHistory)||void 0===r||r.cb(e))}).finally(function(){zn(l,{res:p},n,{resolve:o,reject:r})});else zn(l,{res:p},n,{resolve:o,reject:r})}).catch(function(e){O(e,l,r,i)});case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}function ot(e,n){return rt.apply(this,arguments)}function rt(){return(rt=G(K.mark(function e(n,t){var o,r,i,l,a;return K.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return o=t.resolve,r=t.reject,e.next=3,T();case 3:i=e.sent,l=null==n?void 0:n.playerId,a=null==n?void 0:n.epg,I(a,i).then(function(e){var t=null==e?void 0:e.data;t.contentType="linearchannel",t.channelId=null==a?void 0:a.channelId,zn(l,{res:t},n,{resolve:o,reject:r})}).catch(function(e){O(e,l,r,videoId)});case 7:case"end":return e.stop()}},e)}))).apply(this,arguments)}function it(e,n){return lt.apply(this,arguments)}function lt(){return(lt=G(K.mark(function e(n,t){var o,r,i,l,a,u,c;return K.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.resolve,i=t.reject,e.next=3,T();case 3:l=e.sent,a=null==n?void 0:n.playerId,u=sessionStorage.getItem("season-idx")||0,P.set(parseInt(u)),c=null==n||null===(o=n.series)||void 0===o?void 0:o.id,j(c,l).then(function(e){var t,o,u,d=e.data,v=e.data.seasons;D(v);var f=videoId||(null==v||null===(t=v[0])||void 0===t||null===(o=t.episodes)||void 0===o||null===(u=o[0])||void 0===u?void 0:u.id);E(c,l),k(f,l).then(function(e){var t,o,l;window.contentType=null==e||null===(t=e.data)||void 0===t||null===(o=t.video)||void 0===o||null===(l=o.gist)||void 0===l?void 0:l.contentType,s(e.data),zn(a,{res:null==e?void 0:e.data,sres:d},n,{resolve:r,reject:i})}).catch(function(e){O(e,a,i,videoId)})}).catch(function(e){O(e,a,i)});case 9:case"end":return e.stop()}},e)}))).apply(this,arguments)}function at(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter(function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable})),t.push.apply(t,o)}return t}function ut(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?at(Object(t),!0).forEach(function(n){Q(e,n,t[n])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):at(Object(t)).forEach(function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))})}return e}function st(){return{loadVideoInstantly:C,onTimeUpdate:q,getVideoDuration:z,onVideoEnded:J,init:function(e){return console.log("%c VIDEOJS-8 ","background: #bdf369; color: #000"),new Promise(function(){var n=G(K.mark(function n(t,o){var r,i,l,a,u,s,c,d,v,f,p,m,g,y,h,b,w,S,T,I,j,E,P;return K.wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!L(null==e?void 0:e.playerId)){n.next=2;break}return n.abrupt("return");case 2:if(p=(null==e?void 0:e.videoSourceUrl)||!1,m=null==e?void 0:e.asat,g=(null==e||null===(r=e.epg)||void 0===r?void 0:r.enable)||!1,y=null==e?void 0:e.videoId,h=(null==e||null===(i=e.series)||void 0===i?void 0:i.enable)||!1,b=(null==e?void 0:e.streamingInfo)||!1,window.videoId=y,w=null==e?void 0:e.token,!U(e)){n.next=17;break}if(sessionStorage.setItem("vlp_token",w),V().set(null==e?void 0:e.refreshToken),w&&!F(w)){n.next=16;break}return o({status:!1,msg:"".concat(w?"Token is expired !":"Missing Authorization Token"),response:{token:w}}),n.abrupt("return");case 16:$n=JSON.parse(atob(w.split(".")[1]));case 17:return e.isAnonymousUser=!(null===(l=$n)||void 0===l||!l.anonymousId),e.siteOwner=(null===(a=$n)||void 0===a?void 0:a.site)||null,e.userId=(null===(u=$n)||void 0===u?void 0:u.userId)||null,window.sessionStorage.setItem("uid",null===(s=$n)||void 0===s?void 0:s.userId),window.watchHistory=e.watchHistory||null,S=null==e?void 0:e.playerId,e.chromecastReceiverId=null!=e&&null!==(c=e.series)&&void 0!==c&&c.enable?null:null==e?void 0:e.chromecastReceiverId,T=(null==e||null===(d=e.analytics)||void 0===d?void 0:d.gaId)||null,(I=null==e?void 0:e.errors)&&(window.customErrors=I),window.customData=null==e?void 0:e.customData,se(null==e||null===(v=e.customData)||void 0===v?void 0:v.localisation),_.set(e.apiBaseUrl),null!=e&&e.skin&&!ae(e.skin)||(e.skin="VL_ONE"),n.next=33,Ee(e);case 33:T&&me("https://www.googletagmanager.com/gtag/js?id=".concat(T)).then(function(){return H(T)}).catch(function(e){}),(j=null===(f=document)||void 0===f?void 0:f.getElementById("".concat(S)))&&j.addEventListener("contextmenu",function(e){return e.preventDefault()}),p?(P={directPlaybackUrl:p,id:E="c09576ca-8202-4e8e-ba1e-06d1ab0ce063"},m?k(E,w).then(function(n){var r=(null==n?void 0:n.data)||{};zn(S,{res:ut(ut({},r),P)},e,{resolve:t,reject:o})}).catch(function(e){O(e,S,o,E)}):zn(S,{res:P},e,{resolve:t,reject:o})):b?Zn(e,{resolve:t,reject:o}):h?it(e,{resolve:t,reject:o}):g?ot(e,{resolve:t,reject:o}):nt(e,{resolve:t,reject:o});case 37:case"end":return n.stop()}},n)}));return function(e,t){return n.apply(this,arguments)}}())},getRenditions:oe,skip:f,getPlayer:ue,play:x,pause:A,detectBrowser:e,rewind:p,loadVideo:u,seekToTimeStamp:X,isPlayerInitialised:L,load:R,authenticateLC:N,dispose:M,enableCaptions:te,disableCaptions:ee,getCaptions:Z,playSelectedResolution:re,getSource:a,setVolume:ye,getVolume:he,disableControls:g,setPlaybackSpeed:Y,getEntitlementData:B,adsQueuePointManager:Un,getSsaiEvents:jn,playerEvents:$}}export{st as V,pn as i,Vn as s};
|
package/esm/index.d.ts
DELETED
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
export default VLPlayerCore;
|
|
2
|
-
declare function VLPlayerCore(): {
|
|
3
|
-
loadVideoInstantly: (playerId: any, src: any, cancelTimeout: any) => Promise<any>;
|
|
4
|
-
onTimeUpdate: (playerId: any, cb: any) => void;
|
|
5
|
-
getVideoDuration: (playerId: any) => any;
|
|
6
|
-
onVideoEnded: (playerId: any, cb: any) => void;
|
|
7
|
-
init: (config: any) => Promise<any>;
|
|
8
|
-
getRenditions: (playerId?: string) => any[];
|
|
9
|
-
skip: (playerId?: string, time?: number) => void;
|
|
10
|
-
getPlayer: (playerId?: string) => any;
|
|
11
|
-
play: (playerId?: string) => void;
|
|
12
|
-
pause: (playerId?: string) => void;
|
|
13
|
-
detectBrowser: () => "IE" | "Opera" | "Chrome" | "Safari" | "Firefox" | "Unknown";
|
|
14
|
-
rewind: (playerId?: string, time?: number) => void;
|
|
15
|
-
loadVideo: (playerId: any, src: string) => void;
|
|
16
|
-
seekToTimeStamp: (playerId: any, time: any, cb: any) => void;
|
|
17
|
-
isPlayerInitialised: (playerId?: string) => boolean;
|
|
18
|
-
load: (playerId: any, videoId: any, token_deprecated: any) => Promise<any>;
|
|
19
|
-
authenticateLC: (playerId: any, params: any, load_asset?: boolean) => Promise<any>;
|
|
20
|
-
dispose: (playerId: any) => void;
|
|
21
|
-
enableCaptions: (playerId: any, trackId: any) => void;
|
|
22
|
-
disableCaptions: (playerId: any, trackId: any) => void;
|
|
23
|
-
getCaptions: (playerId: any) => any;
|
|
24
|
-
playSelectedResolution: (playerId: any, obj: any, auto: any) => void;
|
|
25
|
-
getSource: (res: any, playerId: any) => {
|
|
26
|
-
src: any;
|
|
27
|
-
type: string;
|
|
28
|
-
};
|
|
29
|
-
setVolume: (playerId: any, volume: any, cb: any) => void;
|
|
30
|
-
getVolume: (playerId: any) => string;
|
|
31
|
-
disableControls: (playerId: any) => void;
|
|
32
|
-
setPlaybackSpeed: (playerId: any, speed: any) => string;
|
|
33
|
-
getEntitlementData: (id: any, token: any, url: any, locationData: any) => Promise<import("axios").AxiosResponse<any, any>>;
|
|
34
|
-
adsQueuePointManager: {
|
|
35
|
-
setQueuePoints(points: any): void;
|
|
36
|
-
getQueuePoints(): any[];
|
|
37
|
-
};
|
|
38
|
-
getSsaiEvents: typeof getSsaiEvents;
|
|
39
|
-
playerEvents: typeof playerEvents;
|
|
40
|
-
};
|
|
41
|
-
import { getSsaiEvents } from "./helpers/ssaiEventHandler";
|
|
42
|
-
import { playerEvents } from "./core/util";
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Returns chromecast config object required by silvermine plugin
|
|
3
|
-
* @param {String} [res] [response of entitlement api]
|
|
4
|
-
* @param {String} [source] [source retrieved from cast-receiver as a param]
|
|
5
|
-
*/
|
|
6
|
-
export function getChromecastCustomData(res?: string, source?: string, tracks: any): {
|
|
7
|
-
isDrmEnabled: boolean;
|
|
8
|
-
licenseUrl: any;
|
|
9
|
-
licenseToken: any;
|
|
10
|
-
contentType: any;
|
|
11
|
-
duration: any;
|
|
12
|
-
mediaTitle: any;
|
|
13
|
-
mediaImage: any;
|
|
14
|
-
subTitles: any;
|
|
15
|
-
DVR: any;
|
|
16
|
-
};
|
|
17
|
-
export function addChromecastConfigurationDVR(playerId: any, startOverTime: any): void;
|
|
18
|
-
export function initialiseChromecastPlugin(config: any): Promise<void>;
|
package/esm/plugins/index.d.ts
DELETED
package/esm/plugins/library.d.ts
DELETED
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
export function importChromecast(): void;
|
|
2
|
-
export function importAirplay(): void;
|
|
3
|
-
export function loadAdsLibrary(): Promise<void>;
|
|
4
|
-
export function loadEMELibrary(): Promise<void>;
|
|
5
|
-
export function loadMuxPlugin(): Promise<void>;
|
|
6
|
-
export function loadDvrSeekbar(): Promise<void>;
|
|
7
|
-
export function loadContribDash(): Promise<void>;
|