@viewlift/player-backup 2.0.375-backup → 2.0.376-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-8316b7c4.js → autoNextVideo-d014b6e0.js} +1 -1
- package/cjs/bundle.css +428 -428
- package/cjs/{features-541cfdcb.js → features-8a3c29d7.js} +1 -1
- package/cjs/{generic-ddb9f830.js → generic-4ae5602c.js} +1 -1
- package/cjs/{index-91441ebe.js → index-24bf35bd.js} +1 -1
- package/cjs/index-774736bd.js +1 -0
- package/cjs/index-f3365b73.js +1 -0
- package/cjs/{index-7017ec38.js → index-f3d67a94.js} +1 -1
- package/cjs/{index-6822b5b5.js → index-f3f48477.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/{multicamv2-e214d56d.js → multicamv2-aebcf40b.js} +1 -1
- package/cjs/{multicamv2-f859af0e.js → multicamv2-d8d221dd.js} +1 -1
- package/cjs/{nextEpisodeButton-d818eff8.js → nextEpisodeButton-d95e7bdc.js} +1 -1
- package/cjs/{playlist-67d74a2b.js → playlist-b2f07413.js} +1 -1
- package/cjs/{series-2fbef62b.js → series-7c67fc81.js} +1 -1
- package/cjs/{series-v2-0f61d2e5.js → series-v2-3968ecf4.js} +1 -1
- package/cjs/{series-v2-663e3ea7.js → series-v2-78f6b95a.js} +1 -1
- package/cjs/{skin-7a90fce9.js → skin-0517c551.js} +1 -1
- package/cjs/{skin-2db97eac.js → skin-102cabb5.js} +1 -1
- package/cjs/{skin-ef4a5769.js → skin-1f210273.js} +1 -1
- package/cjs/{skin-ca2b0407.js → skin-3bb8a9bf.js} +1 -1
- package/cjs/{skin-1b6bad92.js → skin-3db6272d.js} +1 -1
- package/cjs/{skin-730b9c41.js → skin-431b10b8.js} +1 -1
- package/cjs/{skin-ecb40ff3.js → skin-6463d5b1.js} +1 -1
- package/cjs/{skin-c7284d41.js → skin-65de5d2e.js} +1 -1
- package/cjs/{skin-4701bbb1.js → skin-914eb9db.js} +1 -1
- package/cjs/{skin-d007d625.js → skin-d519da59.js} +1 -1
- package/cjs/{videoSelector-dec6e057.js → videoSelector-b732a762.js} +1 -1
- package/cjs/{videoSelector-5b39b88d.js → videoSelector-f43303bd.js} +1 -1
- package/esm/{autoNextVideo-d90e89be.js → autoNextVideo-b2ddf881.js} +1 -1
- package/esm/bundle.css +428 -428
- package/esm/{features-5a73d4fc.js → features-9e2baef8.js} +1 -1
- package/esm/{generic-061851d1.js → generic-eb13663c.js} +1 -1
- package/esm/index-28ebfa21.js +1 -0
- package/esm/{index-7a550e72.js → index-332dbf74.js} +1 -1
- package/esm/{index-d120a4cc.js → index-3b81e5fe.js} +1 -1
- package/esm/{index-f648e9c2.js → index-a9c6d5d8.js} +1 -1
- package/esm/index-cbb86a6c.js +1 -0
- package/esm/index.js +1 -1
- package/esm/{multicamv2-5b81efa1.js → multicamv2-7d1ffd86.js} +1 -1
- package/esm/{multicamv2-baf41d9b.js → multicamv2-e3c0d0d9.js} +1 -1
- package/esm/{nextEpisodeButton-f9a2d975.js → nextEpisodeButton-11b1fa06.js} +1 -1
- package/esm/{playlist-a47b041e.js → playlist-cb04c889.js} +1 -1
- package/esm/{series-1cc84308.js → series-ac134521.js} +1 -1
- package/esm/{series-v2-0698df9c.js → series-v2-06f521ce.js} +1 -1
- package/esm/{series-v2-f913e362.js → series-v2-37717af4.js} +1 -1
- package/esm/{settings-icon-3d9ec523.js → settings-icon-43390aef.js} +1 -1
- package/esm/{skin-00d58c5d.js → skin-2afe6ef1.js} +1 -1
- package/esm/{skin-c1bd2da5.js → skin-341b9a62.js} +1 -1
- package/esm/{skin-d5dea9b2.js → skin-56f99a67.js} +1 -1
- package/esm/{skin-84df67c6.js → skin-6e0916ac.js} +1 -1
- package/esm/{skin-ff84766b.js → skin-7aa5e4f5.js} +1 -1
- package/esm/{skin-426412d0.js → skin-7f5ab942.js} +1 -1
- package/esm/{skin-97dde5c6.js → skin-977f1785.js} +1 -1
- package/esm/{skin-60971e8f.js → skin-a55e8e1d.js} +1 -1
- package/esm/{skin-e0a3db9a.js → skin-ab1fba9b.js} +1 -1
- package/esm/{skin-c3aee0cd.js → skin-fd6cbbf4.js} +1 -1
- package/esm/{videoSelector-3149d4ee.js → videoSelector-0391e90b.js} +1 -1
- package/esm/{videoSelector-3fa509f9.js → videoSelector-6c8f29bd.js} +1 -1
- package/package.json +1 -1
- package/cjs/_commonjsHelpers-81c4d214.js +0 -1
- package/cjs/index-62250ea0.js +0 -1
- package/cjs/index-9ff76281.js +0 -1
- package/esm/_commonjsHelpers-0307ea52.js +0 -1
- package/esm/index-23afe568.js +0 -1
- package/esm/index-c4656b30.js +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
"use strict";var e,t=require("./generic-
|
|
1
|
+
"use strict";var e,t=require("./generic-4ae5602c.js"),n=require("./index-f3d67a94.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||[]};
|