@viewlift/player-backup 2.0.378-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.
Files changed (77) hide show
  1. package/cjs/{autoNextVideo-68672b76.js → autoNextVideo-38f45ca1.js} +1 -1
  2. package/cjs/bundle.css +859 -842
  3. package/cjs/{features-38873abb.js → features-8beda29d.js} +1 -1
  4. package/cjs/generic-0b925a19.js +1 -0
  5. package/cjs/index-22c077d0.js +1 -0
  6. package/cjs/{index-3a351e42.js → index-517acf72.js} +1 -1
  7. package/cjs/{index-9e05e266.js → index-93ac04ff.js} +1 -1
  8. package/cjs/{index-5562e80d.js → index-f64ef24d.js} +1 -1
  9. package/cjs/index.js +1 -1
  10. package/cjs/localisation-da6f64c6.js +1 -0
  11. package/cjs/{multicamv2-c33fd165.js → multicamv2-2123cc15.js} +1 -1
  12. package/cjs/{multicamv2-39cc5698.js → multicamv2-41a918f4.js} +1 -1
  13. package/cjs/{nextEpisodeButton-4cd04954.js → nextEpisodeButton-c68c6da4.js} +1 -1
  14. package/cjs/{playlist-5b387ba5.js → playlist-8d5202b4.js} +1 -1
  15. package/cjs/{series-554e1f6f.js → series-b3b39dd7.js} +1 -1
  16. package/cjs/{series-v2-759d1b9f.js → series-v2-3baa5caa.js} +1 -1
  17. package/cjs/{series-v2-f513d96e.js → series-v2-f31465e3.js} +1 -1
  18. package/cjs/settings-icon-7a519942.js +1 -0
  19. package/cjs/{skin-ea9d4fd0.js → skin-6b4fd720.js} +1 -1
  20. package/cjs/{skin-9ef12f43.js → skin-8d797b1e.js} +1 -1
  21. package/cjs/{skin-cfe26f4b.js → skin-90c06edf.js} +1 -1
  22. package/cjs/{skin-0b2c868e.js → skin-a3530077.js} +1 -1
  23. package/cjs/skin-aef6f952.js +1 -0
  24. package/cjs/{skin-49921eed.js → skin-d6a48901.js} +1 -1
  25. package/cjs/{skin-9734a061.js → skin-e03a88b8.js} +1 -1
  26. package/cjs/{skin-c1111e65.js → skin-ed4decab.js} +1 -1
  27. package/cjs/{skin-80ad30a9.js → skin-f0bbb76d.js} +1 -1
  28. package/cjs/{skin-528d0747.js → skin-f8994d41.js} +1 -1
  29. package/cjs/{videoSelector-05f988b1.js → videoSelector-1399cc18.js} +1 -1
  30. package/cjs/{videoSelector-1df54701.js → videoSelector-2bc8977c.js} +1 -1
  31. package/esm/{autoNextVideo-a694d718.js → autoNextVideo-7dc4b5f9.js} +1 -1
  32. package/esm/bundle.css +859 -842
  33. package/esm/{features-a7e5e171.js → features-048cb801.js} +1 -1
  34. package/esm/generic-759b1422.js +1 -0
  35. package/esm/{index-7067e5db.js → index-07f963db.js} +1 -1
  36. package/esm/{index-f61ce130.js → index-1577b990.js} +1 -1
  37. package/esm/index-1a5d906c.js +1 -0
  38. package/esm/{index-cbaac7c7.js → index-3bae4958.js} +1 -1
  39. package/esm/index.js +1 -1
  40. package/esm/localisation-2f1ee38c.js +1 -0
  41. package/esm/{multicamv2-ccbd1435.js → multicamv2-220833f5.js} +1 -1
  42. package/esm/{multicamv2-97a3b0f4.js → multicamv2-bd4bf0f5.js} +1 -1
  43. package/esm/{nextEpisodeButton-cf9328cc.js → nextEpisodeButton-ca0a2b98.js} +1 -1
  44. package/esm/{playlist-3d669989.js → playlist-2d49901b.js} +1 -1
  45. package/esm/{series-704b41dd.js → series-637f67ff.js} +1 -1
  46. package/esm/{series-v2-e1ae0c27.js → series-v2-7caace2c.js} +1 -1
  47. package/esm/{series-v2-843283cb.js → series-v2-899b6955.js} +1 -1
  48. package/esm/settings-icon-abd55c1e.js +1 -0
  49. package/esm/{skin-15bea000.js → skin-0e9bc166.js} +1 -1
  50. package/esm/{skin-4390b877.js → skin-28192217.js} +1 -1
  51. package/esm/{skin-034c0111.js → skin-2cb9e01a.js} +1 -1
  52. package/esm/{skin-29dfa892.js → skin-2d7f1782.js} +1 -1
  53. package/esm/{skin-cd51486c.js → skin-318448f4.js} +1 -1
  54. package/esm/skin-44cb0a24.js +1 -0
  55. package/esm/{skin-16d24d3a.js → skin-77259d09.js} +1 -1
  56. package/esm/{skin-d5474de8.js → skin-7d2af43a.js} +1 -1
  57. package/esm/{skin-16cb5cfb.js → skin-9d2dad58.js} +1 -1
  58. package/esm/{skin-800b5977.js → skin-bcb995db.js} +1 -1
  59. package/esm/src/helpers/localisation.d.ts +1 -0
  60. package/esm/{videoSelector-c185464d.js → videoSelector-01d26572.js} +1 -1
  61. package/esm/{videoSelector-91f8908b.js → videoSelector-21c88bd3.js} +1 -1
  62. package/package.json +1 -1
  63. package/cjs/generic-ca2a22d8.js +0 -1
  64. package/cjs/index-c52abe27.js +0 -1
  65. package/cjs/localisation-56e0a999.js +0 -1
  66. package/cjs/settings-icon-8d593433.js +0 -1
  67. package/cjs/skin-b4c02ae6.js +0 -1
  68. package/esm/generic-65cb8119.js +0 -1
  69. package/esm/index-18292507.js +0 -1
  70. package/esm/localisation-0bf399a1.js +0 -1
  71. package/esm/settings-icon-c31267aa.js +0 -1
  72. package/esm/skin-12fdaa37.js +0 -1
  73. package/esm/src/core/captions.test.d.ts +0 -1
  74. package/esm/src/features/dvrStartOver/helpers.test.d.ts +0 -1
  75. package/esm/src/features/dvrStartOver/index.test.d.ts +0 -1
  76. package/esm/src/helpers/playerControlEvents.test.d.ts +0 -1
  77. package/esm/src/utilities/beacon.test.d.ts +0 -1
@@ -1 +1 @@
1
- "use strict";var e,t=require("./generic-ca2a22d8.js"),n=require("./index-9e05e266.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||[]};
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||[]};