@viewlift/player-backup 2.0.377-backup → 2.0.379-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-970d7952.js → autoNextVideo-38f45ca1.js} +1 -1
- package/cjs/bundle.css +1157 -1140
- package/cjs/caption-settings-af7b30a4.js +1 -0
- package/cjs/captions-8b889384.js +1 -0
- package/cjs/{features-911c3816.js → features-8beda29d.js} +1 -1
- package/cjs/generic-0b925a19.js +1 -0
- package/cjs/index-22c077d0.js +1 -0
- package/cjs/{index-6133b444.js → index-517acf72.js} +1 -1
- package/cjs/{index-aa64a6c0.js → index-93ac04ff.js} +1 -1
- package/cjs/{index-50f15aa6.js → index-f64ef24d.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/localisation-da6f64c6.js +1 -0
- package/cjs/{multicamv2-e88d0dc2.js → multicamv2-2123cc15.js} +1 -1
- package/cjs/{multicamv2-f17375d7.js → multicamv2-41a918f4.js} +1 -1
- package/cjs/{nextEpisodeButton-551faeb3.js → nextEpisodeButton-c68c6da4.js} +1 -1
- package/cjs/{playlist-f0a6659a.js → playlist-8d5202b4.js} +1 -1
- package/cjs/resolution-ac7705e6.js +1 -0
- package/cjs/{series-47045f7e.js → series-b3b39dd7.js} +1 -1
- package/cjs/{series-v2-cf79269e.js → series-v2-3baa5caa.js} +1 -1
- package/cjs/{series-v2-5ce609b4.js → series-v2-f31465e3.js} +1 -1
- package/cjs/settings-icon-7a519942.js +1 -0
- package/cjs/{skin-425c1322.js → skin-6b4fd720.js} +1 -1
- package/cjs/{skin-dbff0922.js → skin-8d797b1e.js} +1 -1
- package/cjs/{skin-f7c4ead4.js → skin-90c06edf.js} +1 -1
- package/cjs/{skin-ebab1e3f.js → skin-a3530077.js} +1 -1
- package/cjs/skin-aef6f952.js +1 -0
- package/cjs/{skin-237f8d4f.js → skin-d6a48901.js} +1 -1
- package/cjs/{skin-c49d50b6.js → skin-e03a88b8.js} +1 -1
- package/cjs/{skin-a9a5a925.js → skin-ed4decab.js} +1 -1
- package/cjs/{skin-dc3525c7.js → skin-f0bbb76d.js} +1 -1
- package/cjs/{skin-3a43f138.js → skin-f8994d41.js} +1 -1
- package/cjs/{videoSelector-f4eb61cd.js → videoSelector-1399cc18.js} +1 -1
- package/cjs/{videoSelector-607de014.js → videoSelector-2bc8977c.js} +1 -1
- package/esm/{autoNextVideo-c9d22cb4.js → autoNextVideo-7dc4b5f9.js} +1 -1
- package/esm/bundle.css +1157 -1140
- package/esm/caption-settings-cf49bb1b.js +1 -0
- package/esm/captions-f011a7d4.js +1 -0
- package/esm/{features-8b0d92d7.js → features-048cb801.js} +1 -1
- package/esm/generic-759b1422.js +1 -0
- package/esm/{index-9f2bf24a.js → index-07f963db.js} +1 -1
- package/esm/{index-cef05213.js → index-1577b990.js} +1 -1
- package/esm/index-1a5d906c.js +1 -0
- package/esm/{index-3addf20e.js → index-3bae4958.js} +1 -1
- package/esm/index.js +1 -1
- package/esm/localisation-2f1ee38c.js +1 -0
- package/esm/{multicamv2-1e925995.js → multicamv2-220833f5.js} +1 -1
- package/esm/{multicamv2-1bd7f8c5.js → multicamv2-bd4bf0f5.js} +1 -1
- package/esm/{nextEpisodeButton-f1a025e4.js → nextEpisodeButton-ca0a2b98.js} +1 -1
- package/esm/{playlist-2012e5ef.js → playlist-2d49901b.js} +1 -1
- package/esm/resolution-d9d21f0e.js +1 -0
- package/esm/{series-8f854466.js → series-637f67ff.js} +1 -1
- package/esm/{series-v2-f28041a6.js → series-v2-7caace2c.js} +1 -1
- package/esm/{series-v2-4ada8ab6.js → series-v2-899b6955.js} +1 -1
- package/esm/settings-icon-abd55c1e.js +1 -0
- package/esm/{skin-85e8dcbb.js → skin-0e9bc166.js} +1 -1
- package/esm/{skin-74348872.js → skin-28192217.js} +1 -1
- package/esm/{skin-66b334cd.js → skin-2cb9e01a.js} +1 -1
- package/esm/{skin-d6417c01.js → skin-2d7f1782.js} +1 -1
- package/esm/{skin-7bdb21cf.js → skin-318448f4.js} +1 -1
- package/esm/skin-44cb0a24.js +1 -0
- package/esm/{skin-30a7f835.js → skin-77259d09.js} +1 -1
- package/esm/{skin-c16b40b9.js → skin-7d2af43a.js} +1 -1
- package/esm/{skin-30a90635.js → skin-9d2dad58.js} +1 -1
- package/esm/{skin-f0b7e11c.js → skin-bcb995db.js} +1 -1
- package/esm/src/core/captions.d.ts +10 -0
- package/esm/src/helpers/localisation.d.ts +1 -0
- package/esm/src/utilities/qualityLabels.d.ts +1 -0
- package/esm/{videoSelector-435aa016.js → videoSelector-01d26572.js} +1 -1
- package/esm/{videoSelector-48a4e382.js → videoSelector-21c88bd3.js} +1 -1
- package/package.json +1 -1
- package/cjs/caption-settings-e803e4a6.js +0 -1
- package/cjs/captions-abd87121.js +0 -1
- package/cjs/generic-118f7ebd.js +0 -1
- package/cjs/index-c52abe27.js +0 -1
- package/cjs/localisation-56e0a999.js +0 -1
- package/cjs/resolution-7b5483dd.js +0 -1
- package/cjs/settings-icon-b4612153.js +0 -1
- package/cjs/skin-b11e1757.js +0 -1
- package/esm/caption-settings-404c4774.js +0 -1
- package/esm/captions-8c8e9f2b.js +0 -1
- package/esm/generic-6871d7d1.js +0 -1
- package/esm/index-18292507.js +0 -1
- package/esm/localisation-0bf399a1.js +0 -1
- package/esm/resolution-847a299c.js +0 -1
- package/esm/settings-icon-c188c46d.js +0 -1
- package/esm/skin-be4ea9e2.js +0 -1
- package/esm/src/features/dvrStartOver/helpers.test.d.ts +0 -1
- package/esm/src/features/dvrStartOver/index.test.d.ts +0 -1
- package/esm/src/helpers/playerControlEvents.test.d.ts +0 -1
- package/esm/src/utilities/beacon.test.d.ts +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,t=require("./generic-
|
|
1
|
+
"use strict";var e,t=require("./generic-0b925a19.js"),n=require("./index-93ac04ff.js"),o=require("./skin-55634dc6.js"),i=0,r=0,u=new Set(["NOT_AIRED","VIDEO_NOT_AVAILABLE","CONTENT_NOT_AVAILABLE"]),l=function(e){return(null==e?void 0:e.response)||e},s=function(e,t){return e&&null!=t&&t.gist&&(e.response=e.response||{},e.response.video=e.response.video||{},e.response.video.gist=t.gist),e},d=function(e){var t,n,o=l(e),i=null==o||null===(t=o.response)||void 0===t?void 0:t.data;return 403===(null==o||null===(n=o.response)||void 0===n?void 0:n.status)||(!!(null!=i&&i.scheduleStartDate&&Number(i.scheduleStartDate)>Date.now())||!(null==i||!i.errorCode||!u.has(i.errorCode)))},a=function(e,t){clearTimeout(i);var r=l(t);n.handleCountdownTimer(e,r,null);var u=o.getPlayer(e);u&&!u.paused()&&u.pause()},c=function(e,n,i){var r=i[e];if(function(e){var t,n=null==e||null===(t=e.gist)||void 0===t?void 0:t.scheduleStartDate;return n&&Number(n)>Date.now()}(r))return Promise.reject(function(e){var t,n,o;return{response:{data:{errorMessage:null!=e&&null!==(t=e.gist)&&void 0!==t&&t.scheduleStartDate?"Coming soon":"Content not available",scheduleStartDate:null==e||null===(n=e.gist)||void 0===n?void 0:n.scheduleStartDate,scheduleEndDate:null==e||null===(o=e.gist)||void 0===o?void 0:o.scheduleEndDate,gist:null==e?void 0:e.gist}}}}(r));if(!o.getPlayer(n)){var u={status:!1,msg:"Player not initialised for next episode load",response:{playerId:n,episode:r}};return console.error("[autoNextVideo] player not found before trying next episode load",u),Promise.reject(u)}return t.load(n,r.id)},v=[],g=function e(n,i,u,l){r=n,n>u.length-1||(t.setVideoIdx(r+1),c(n,i,u).then((function(e){o.highlightVideo(r,i),r++,h(e)})).catch((function(t){h(s(t,u[n])),d(t)?a(i,t):setTimeout((function(){o.highlightVideo(r,i),r++,e(r,i,u)}),5e3)})))},h=function(t){e&&e(t)};exports.autoPlayNext=function(u){clearTimeout(i),v=(null==u?void 0:u.content)||[],e=null==u?void 0:u.cb;var l=u.playerId;n.onVideoEnded(l,(function(){var e=o.getPlayer(l);0!==(null==e?void 0:e.currentTime())&&((r=t.getVideoIdx())>v.length-1||(t.setVideoIdx(r+1),c(r,l,v).then((function(e){o.highlightVideo(r,l),t.setCurrentVideo(e.response),r++,h(e)})).catch((function(e){h(s(e,v[idx])),o.highlightVideo(r,l),d(e)?a(l,e):(r++,i=setTimeout((function(){t.isPaused(l)&&g(r,l,v)}),5e3))}))))}))},exports.switchToNext=g,exports.updateContent=function(e){v=e||[]};
|