@viewlift/player-backup 2.0.291-backup → 2.0.292-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 (70) hide show
  1. package/cjs/{autoNextVideo-19386762.js → autoNextVideo-d783039e.js} +1 -1
  2. package/cjs/bundle.css +572 -572
  3. package/cjs/{caption-settings-058ad013.js → caption-settings-5efc7591.js} +1 -1
  4. package/cjs/{captions-d98c49d6.js → captions-5f9611f1.js} +1 -1
  5. package/cjs/{features-2cdc4e39.js → features-e77b2cc5.js} +1 -1
  6. package/cjs/generic-690f32fe.js +1 -0
  7. package/cjs/{index-81c8f4a1.js → index-248cea68.js} +1 -1
  8. package/cjs/{index-955b603e.js → index-9c86b65a.js} +1 -1
  9. package/cjs/{index-50e69a99.js → index-b6608461.js} +1 -1
  10. package/cjs/{index-004fc85d.js → index-ba862bae.js} +1 -1
  11. package/cjs/index.js +1 -1
  12. package/cjs/{multicamv2-1bdf2c52.js → multicamv2-420b64ce.js} +1 -1
  13. package/cjs/{multicamv2-56120328.js → multicamv2-a43f64a1.js} +1 -1
  14. package/cjs/{nextEpisodeButton-290b490f.js → nextEpisodeButton-a0c35a98.js} +1 -1
  15. package/cjs/{playlist-7b61a3c6.js → playlist-51489f94.js} +1 -1
  16. package/cjs/{renditions-6554142b.js → renditions-6f165ef5.js} +1 -1
  17. package/cjs/{resolution-c33a67fb.js → resolution-19103db5.js} +1 -1
  18. package/cjs/{series-20fe0127.js → series-9abe4870.js} +1 -1
  19. package/cjs/{series-v2-5ccc7a93.js → series-v2-4630b42f.js} +1 -1
  20. package/cjs/{series-v2-4d05ebf8.js → series-v2-828e87bd.js} +1 -1
  21. package/cjs/{settings-icon-1efd3e23.js → settings-icon-43534947.js} +1 -1
  22. package/cjs/{skin-e0cf4554.js → skin-16ae23af.js} +1 -1
  23. package/cjs/{skin-c72adb59.js → skin-25f9f101.js} +1 -1
  24. package/cjs/{skin-41b0c02d.js → skin-3abb4521.js} +1 -1
  25. package/cjs/{skin-c08b2d3f.js → skin-64830002.js} +1 -1
  26. package/cjs/{skin-1f5cd68e.js → skin-737b56f1.js} +1 -1
  27. package/cjs/{skin-12b4d86a.js → skin-7e07993b.js} +1 -1
  28. package/cjs/{skin-9d79794a.js → skin-bfa66ca0.js} +1 -1
  29. package/cjs/{skin-ac3c64df.js → skin-cf55d6a4.js} +1 -1
  30. package/cjs/{skin-ba07e8dc.js → skin-dff6e173.js} +1 -1
  31. package/cjs/{skin-00029c75.js → skin-e7515c1a.js} +1 -1
  32. package/cjs/{videoSelector-95e64eba.js → videoSelector-3d5ff1bf.js} +1 -1
  33. package/cjs/{videoSelector-ab05bccb.js → videoSelector-7b25405a.js} +1 -1
  34. package/esm/{autoNextVideo-379bbdc2.js → autoNextVideo-c799bcd9.js} +1 -1
  35. package/esm/bundle.css +572 -572
  36. package/esm/{caption-settings-a9b6581e.js → caption-settings-cfb1368b.js} +1 -1
  37. package/esm/{captions-9659ee8f.js → captions-89897207.js} +1 -1
  38. package/esm/{features-dbc6b07e.js → features-a8a9f436.js} +1 -1
  39. package/esm/generic-2e248650.js +1 -0
  40. package/esm/{index-ac572236.js → index-2621a170.js} +1 -1
  41. package/esm/{index-b62e0f74.js → index-bb7166ff.js} +1 -1
  42. package/esm/{index-8566dca0.js → index-c957fc87.js} +1 -1
  43. package/esm/{index-ae4cf675.js → index-cad73f72.js} +1 -1
  44. package/esm/index.js +1 -1
  45. package/esm/{multicamv2-de90d28f.js → multicamv2-49b2f54d.js} +1 -1
  46. package/esm/{multicamv2-a84ce8b3.js → multicamv2-acbd2e35.js} +1 -1
  47. package/esm/{nextEpisodeButton-bffd417f.js → nextEpisodeButton-f2bddf2c.js} +1 -1
  48. package/esm/{playlist-100ecdfe.js → playlist-8f26ed93.js} +1 -1
  49. package/esm/{renditions-4eddc06a.js → renditions-ee4e8582.js} +1 -1
  50. package/esm/{resolution-46076e4a.js → resolution-879fc9c0.js} +1 -1
  51. package/esm/{series-8ef8fdfa.js → series-82908795.js} +1 -1
  52. package/esm/{series-v2-551f67e8.js → series-v2-6be7f616.js} +1 -1
  53. package/esm/{series-v2-76f5001b.js → series-v2-ed3a799c.js} +1 -1
  54. package/esm/{settings-icon-60394554.js → settings-icon-851014b6.js} +1 -1
  55. package/esm/skin-0abde216.js +1 -0
  56. package/esm/{skin-a6c3353b.js → skin-503626ae.js} +1 -1
  57. package/esm/{skin-e4073063.js → skin-5cf211bb.js} +1 -1
  58. package/esm/{skin-1c1aa7a5.js → skin-739f37c9.js} +1 -1
  59. package/esm/{skin-41718675.js → skin-9061acb8.js} +1 -1
  60. package/esm/{skin-fdbbacca.js → skin-b64addd2.js} +1 -1
  61. package/esm/{skin-4280c73d.js → skin-bc25c1dc.js} +1 -1
  62. package/esm/{skin-80e062bd.js → skin-c27ab30f.js} +1 -1
  63. package/esm/{skin-dddf388c.js → skin-ece7709a.js} +1 -1
  64. package/esm/{skin-f9ec12e3.js → skin-f0691120.js} +1 -1
  65. package/esm/{videoSelector-93246044.js → videoSelector-0148241c.js} +1 -1
  66. package/esm/{videoSelector-13ae5477.js → videoSelector-ca70dece.js} +1 -1
  67. package/package.json +5 -2
  68. package/cjs/generic-5b90c727.js +0 -1
  69. package/esm/generic-b3643a73.js +0 -1
  70. package/esm/skin-e2592aa4.js +0 -1
@@ -1 +1 @@
1
- "use strict";var e,t=require("./generic-5b90c727.js"),n=require("./index-004fc85d.js"),o=require("./skin-e0cf4554.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)},h=[],v=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++,g(e)}).catch(function(t){g(s(t,u[n])),d(t)?a(i,t):setTimeout(function(){o.highlightVideo(r,i),r++,e(r,i,u)},5e3)}))},g=function(t){e&&e(t)};exports.autoPlayNext=function(u){clearTimeout(i),h=(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())>h.length-1||(t.setVideoIdx(r+1),c(r,l,h).then(function(e){o.highlightVideo(r,l),t.setCurrentVideo(e.response),r++,g(e)}).catch(function(e){g(s(e,h[idx])),o.highlightVideo(r,l),d(e)?a(l,e):(r++,i=setTimeout(function(){t.isPaused(l)&&v(r,l,h)},5e3))})))})},exports.switchToNext=v,exports.updateContent=function(e){h=e||[]};
1
+ "use strict";var e,t=require("./generic-690f32fe.js"),n=require("./index-ba862bae.js"),o=require("./skin-16ae23af.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)},h=[],v=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++,g(e)}).catch(function(t){g(s(t,u[n])),d(t)?a(i,t):setTimeout(function(){o.highlightVideo(r,i),r++,e(r,i,u)},5e3)}))},g=function(t){e&&e(t)};exports.autoPlayNext=function(u){clearTimeout(i),h=(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())>h.length-1||(t.setVideoIdx(r+1),c(r,l,h).then(function(e){o.highlightVideo(r,l),t.setCurrentVideo(e.response),r++,g(e)}).catch(function(e){g(s(e,h[idx])),o.highlightVideo(r,l),d(e)?a(l,e):(r++,i=setTimeout(function(){t.isPaused(l)&&v(r,l,h)},5e3))})))})},exports.switchToNext=v,exports.updateContent=function(e){h=e||[]};