@viewlift/player-backup 2.0.52-backup → 2.0.53-smarttv

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 (261) hide show
  1. package/cjs/autoNextVideo-58724888.js +1 -0
  2. package/cjs/autoNextVideo-84ee5558.js +1 -0
  3. package/cjs/autoNextVideo-8650870a.js +1 -0
  4. package/cjs/autoNextVideo-b00a72ae.js +1 -0
  5. package/cjs/autoNextVideo-be3e65ec.js +1 -0
  6. package/cjs/browser-38ff3331.js +1 -0
  7. package/cjs/bundle.css +1629 -48
  8. package/cjs/caption-settings-80941f4e.js +1 -0
  9. package/cjs/captions-e4d4dc7d.js +1 -0
  10. package/cjs/features-1b5c0e20.js +1 -0
  11. package/cjs/features-2f5ae901.js +1 -0
  12. package/cjs/{features-97b9ddd3.js → features-7653f224.js} +1 -1
  13. package/cjs/features-e047b8a6.js +1 -0
  14. package/cjs/features-e59c5ffb.js +1 -0
  15. package/cjs/generic-3aabf0f9.js +1 -0
  16. package/cjs/generic-6361cf15.js +1 -0
  17. package/cjs/generic-8894bcb8.js +1 -0
  18. package/cjs/generic-8da08075.js +1 -0
  19. package/cjs/generic-e19da081.js +1 -0
  20. package/cjs/index-45b51a42.js +1 -0
  21. package/cjs/index-55d54d34.js +1 -0
  22. package/cjs/index-572bba67.js +1 -0
  23. package/cjs/index-5aa36681.js +1 -0
  24. package/cjs/index-5d161695.js +1 -0
  25. package/cjs/index-68b3b866.js +1 -0
  26. package/cjs/index-7911a119.js +1 -0
  27. package/cjs/index-8d3ac5d7.js +1 -0
  28. package/cjs/index-9e6f23ec.js +1 -0
  29. package/cjs/index-a0844086.js +1 -0
  30. package/cjs/index-d889e7e4.js +1 -0
  31. package/cjs/index-ed5e46af.js +1 -0
  32. package/cjs/index.js +1 -1
  33. package/cjs/multicamv2-23b170c8.js +1 -0
  34. package/cjs/multicamv2-320f0cdd.js +1 -0
  35. package/cjs/multicamv2-360c4491.js +1 -0
  36. package/cjs/{multicamv2-e061b01b.js → multicamv2-404e28df.js} +1 -1
  37. package/cjs/multicamv2-587a967a.js +1 -0
  38. package/cjs/multicamv2-5d84e384.js +1 -0
  39. package/cjs/{multicamv2-27a1f79a.js → multicamv2-6b668bdd.js} +1 -1
  40. package/cjs/multicamv2-c33454fb.js +1 -0
  41. package/cjs/multicamv2-dc160d36.js +1 -0
  42. package/cjs/multicamv2-f12ad2f4.js +1 -0
  43. package/cjs/{nextEpisodeButton-9149040d.js → nextEpisodeButton-6c1ae3b5.js} +1 -1
  44. package/cjs/nextEpisodeButton-79be6f9f.js +1 -0
  45. package/cjs/nextEpisodeButton-81cb8354.js +1 -0
  46. package/cjs/nextEpisodeButton-c92562d7.js +1 -0
  47. package/cjs/nextEpisodeButton-ce704bca.js +1 -0
  48. package/cjs/{playlist-f9f44391.js → playlist-4df96080.js} +1 -1
  49. package/cjs/playlist-5806e7e2.js +1 -0
  50. package/cjs/playlist-9e632d8e.js +1 -0
  51. package/cjs/playlist-afd7facc.js +1 -0
  52. package/cjs/playlist-c8e9407f.js +1 -0
  53. package/cjs/renditions-41110253.js +1 -0
  54. package/cjs/resolution-5e1f1897.js +1 -0
  55. package/cjs/{resolution-e46c9615.js → resolution-9d6ff5e5.js} +1 -1
  56. package/cjs/series-14707a5e.js +1 -0
  57. package/cjs/series-1afb3f34.js +1 -0
  58. package/cjs/{series-0ddcd078.js → series-92fbf821.js} +1 -1
  59. package/cjs/series-9ccf2a24.js +1 -0
  60. package/cjs/series-dd8c37c7.js +1 -0
  61. package/cjs/series-v2-1a7bd847.js +1 -0
  62. package/cjs/series-v2-2a2f6f57.js +1 -0
  63. package/cjs/series-v2-33024d49.js +1 -0
  64. package/cjs/{series-v2-e23e32e1.js → series-v2-433e58b1.js} +1 -1
  65. package/cjs/series-v2-4f86c625.js +1 -0
  66. package/cjs/series-v2-5637c835.js +1 -0
  67. package/cjs/series-v2-73d4b750.js +1 -0
  68. package/cjs/series-v2-838b08f9.js +1 -0
  69. package/cjs/{series-v2-9caf000c.js → series-v2-97508a20.js} +1 -1
  70. package/cjs/series-v2-f5987414.js +1 -0
  71. package/cjs/{settings-icon-70f8857a.js → settings-icon-aa5f507b.js} +1 -1
  72. package/cjs/settings-icon-ef10c2b2.js +1 -0
  73. package/cjs/skin-0361563a.js +1 -0
  74. package/cjs/skin-059b7a1a.js +1 -0
  75. package/cjs/skin-0b39bb57.js +1 -0
  76. package/cjs/skin-0b421219.js +1 -0
  77. package/cjs/{skin-1d925909.js → skin-0daf9f9b.js} +1 -1
  78. package/cjs/skin-0e864338.js +1 -0
  79. package/cjs/skin-1d1ac7f1.js +1 -0
  80. package/cjs/skin-2652331c.js +1 -0
  81. package/cjs/skin-2984658f.js +1 -0
  82. package/cjs/skin-2a6987cb.js +1 -0
  83. package/cjs/{skin-9337f348.js → skin-2a9cd9f4.js} +1 -1
  84. package/cjs/skin-302913cb.js +1 -0
  85. package/cjs/skin-3384bc85.js +1 -0
  86. package/cjs/skin-3a5c0c5b.js +1 -0
  87. package/cjs/skin-3d19725a.js +1 -0
  88. package/cjs/skin-4777f76d.js +1 -0
  89. package/cjs/skin-5145a6f1.js +1 -0
  90. package/cjs/skin-583f5849.js +1 -0
  91. package/cjs/{skin-0385f5c0.js → skin-5ab1654f.js} +1 -1
  92. package/cjs/skin-615ca1b6.js +1 -0
  93. package/cjs/skin-6819a118.js +1 -0
  94. package/cjs/skin-7929c0f3.js +1 -0
  95. package/cjs/skin-7d0316ad.js +1 -0
  96. package/cjs/skin-7e6474c6.js +1 -0
  97. package/cjs/skin-80a75f42.js +1 -0
  98. package/cjs/skin-94c19815.js +1 -0
  99. package/cjs/skin-98177388.js +1 -0
  100. package/cjs/skin-9986b879.js +1 -0
  101. package/cjs/skin-a2efa402.js +1 -0
  102. package/cjs/{skin-8bfd28a5.js → skin-a988ddba.js} +1 -1
  103. package/cjs/skin-b4c2035e.js +1 -0
  104. package/cjs/skin-b8d97e1b.js +1 -0
  105. package/cjs/skin-ba7be3b0.js +1 -0
  106. package/cjs/skin-bf7792e2.js +1 -0
  107. package/cjs/skin-c49c6a48.js +1 -0
  108. package/cjs/skin-d63ad20f.js +1 -0
  109. package/cjs/{skin-788c01cd.js → skin-ed052a54.js} +1 -1
  110. package/cjs/skin-ed05a864.js +1 -0
  111. package/cjs/skin-f87e1c22.js +1 -0
  112. package/cjs/util-1bae0f60.js +1 -0
  113. package/cjs/videoSelector-1da32538.js +1 -0
  114. package/cjs/{videoSelector-2f34f31e.js → videoSelector-536cfefd.js} +1 -1
  115. package/cjs/videoSelector-8aee6625.js +1 -0
  116. package/cjs/{videoSelector-62fd5fa1.js → videoSelector-93129ccd.js} +1 -1
  117. package/cjs/videoSelector-9b8ed70e.js +1 -0
  118. package/cjs/videoSelector-a9df8a24.js +1 -0
  119. package/cjs/videoSelector-b2c5841e.js +1 -0
  120. package/cjs/videoSelector-c22bd812.js +1 -0
  121. package/cjs/videoSelector-e05b155c.js +1 -0
  122. package/cjs/videoSelector-f983bed7.js +1 -0
  123. package/cjs/{videojs_contrib_dash-5ac53a44.js → videojs_contrib_dash-018c8bde.js} +1 -1
  124. package/esm/autoNextVideo-487b2161.js +1 -0
  125. package/esm/autoNextVideo-aaaf0eb1.js +1 -0
  126. package/esm/autoNextVideo-e411e0e7.js +1 -0
  127. package/esm/autoNextVideo-e4bf6a7b.js +1 -0
  128. package/esm/autoNextVideo-f1ccc7b1.js +1 -0
  129. package/esm/browser-512cd55a.js +1 -0
  130. package/esm/bundle.css +1629 -48
  131. package/esm/{caption-settings-4ab479b0.js → caption-settings-370d8b1e.js} +1 -1
  132. package/esm/caption-settings-4f1c1a37.js +1 -0
  133. package/esm/captions-d155b725.js +1 -0
  134. package/esm/{features-ce8f391c.js → features-58c68988.js} +1 -1
  135. package/esm/features-d7525f76.js +1 -0
  136. package/esm/features-d96c2ef7.js +1 -0
  137. package/esm/features-dea240ac.js +1 -0
  138. package/esm/features-fb138f87.js +1 -0
  139. package/esm/generic-09329d10.js +1 -0
  140. package/esm/generic-2fc3b831.js +1 -0
  141. package/esm/generic-479669e7.js +1 -0
  142. package/esm/generic-77035a87.js +1 -0
  143. package/esm/generic-e1be64b1.js +1 -0
  144. package/esm/{icons-8e47e640.js → icons-3bd3bd8f.js} +1 -1
  145. package/esm/index-26840ca9.js +1 -0
  146. package/esm/index-361d63d8.js +1 -0
  147. package/esm/index-38edadbc.js +1 -0
  148. package/esm/index-42184fc5.js +1 -0
  149. package/esm/index-538ea1b5.js +1 -0
  150. package/esm/index-5d0e3cce.js +1 -0
  151. package/esm/index-7cde70b7.js +1 -0
  152. package/esm/index-90febbdf.js +1 -0
  153. package/esm/index-ad71faa9.js +1 -0
  154. package/esm/index-d328aa6a.js +1 -0
  155. package/esm/index-e55e5f34.js +1 -0
  156. package/esm/index-fe1444e9.js +1 -0
  157. package/esm/index.js +1 -1
  158. package/esm/multicamv2-064b27d7.js +1 -0
  159. package/esm/multicamv2-0e77d8c6.js +1 -0
  160. package/esm/multicamv2-3b0877a1.js +1 -0
  161. package/esm/multicamv2-52705666.js +1 -0
  162. package/esm/{multicamv2-8b4670ee.js → multicamv2-610ca2a5.js} +1 -1
  163. package/esm/{multicamv2-d46580c3.js → multicamv2-64f40f44.js} +1 -1
  164. package/esm/multicamv2-691974ef.js +1 -0
  165. package/esm/multicamv2-86dcc76f.js +1 -0
  166. package/esm/multicamv2-c2a4e668.js +1 -0
  167. package/esm/multicamv2-ec4acb18.js +1 -0
  168. package/esm/nextEpisodeButton-51ec8b29.js +1 -0
  169. package/esm/{nextEpisodeButton-1016717d.js → nextEpisodeButton-67aaa73d.js} +1 -1
  170. package/esm/nextEpisodeButton-67dc12af.js +1 -0
  171. package/esm/nextEpisodeButton-d85e9947.js +1 -0
  172. package/esm/nextEpisodeButton-e234d384.js +1 -0
  173. package/esm/{playlist-5874bf55.js → playlist-130b4909.js} +1 -1
  174. package/esm/playlist-16164635.js +1 -0
  175. package/esm/playlist-39c6b7e3.js +1 -0
  176. package/esm/playlist-3ae1b290.js +1 -0
  177. package/esm/playlist-c6174dc7.js +1 -0
  178. package/esm/renditions-30df958b.js +1 -0
  179. package/esm/{resolution-920515d1.js → resolution-552f1dbe.js} +1 -1
  180. package/esm/resolution-69172876.js +1 -0
  181. package/esm/series-199c6000.js +1 -0
  182. package/esm/series-226ef0c7.js +1 -0
  183. package/esm/series-3e329d8a.js +1 -0
  184. package/esm/series-a87ade78.js +1 -0
  185. package/esm/{series-c42e7202.js → series-bc1bc4fb.js} +1 -1
  186. package/esm/series-v2-19a54cf3.js +1 -0
  187. package/esm/{series-v2-1d2ad120.js → series-v2-29dd56ac.js} +1 -1
  188. package/esm/series-v2-3e3aef03.js +1 -0
  189. package/esm/series-v2-3e5bfc13.js +1 -0
  190. package/esm/series-v2-4855c673.js +1 -0
  191. package/esm/series-v2-76ff4bf5.js +1 -0
  192. package/esm/series-v2-78d674e0.js +1 -0
  193. package/esm/series-v2-96b2860f.js +1 -0
  194. package/esm/series-v2-b330ac1f.js +1 -0
  195. package/esm/{series-v2-0329b92a.js → series-v2-d1881ea9.js} +1 -1
  196. package/esm/{settings-icon-366126fa.js → settings-icon-01406155.js} +1 -1
  197. package/esm/settings-icon-0238b861.js +1 -0
  198. package/esm/{skin-7cb0aacc.js → skin-050e63bb.js} +1 -1
  199. package/esm/skin-05c57cc6.js +1 -0
  200. package/esm/skin-0edd4c6f.js +1 -0
  201. package/esm/skin-1c49eaf6.js +1 -0
  202. package/esm/skin-1e17469b.js +1 -0
  203. package/esm/skin-1f720d5b.js +1 -0
  204. package/esm/skin-2d9bc783.js +1 -0
  205. package/esm/skin-32efd931.js +1 -0
  206. package/esm/skin-3df91b3b.js +1 -0
  207. package/esm/skin-45824514.js +1 -0
  208. package/esm/skin-47dbec1a.js +1 -0
  209. package/esm/skin-5bbdd431.js +1 -0
  210. package/esm/skin-5d581101.js +1 -0
  211. package/esm/skin-782442a9.js +1 -0
  212. package/esm/skin-7afab86b.js +1 -0
  213. package/esm/skin-7c216ea9.js +1 -0
  214. package/esm/skin-86e7e2b5.js +1 -0
  215. package/esm/skin-8f0cd4f0.js +1 -0
  216. package/esm/skin-92ea164c.js +1 -0
  217. package/esm/skin-9b83274f.js +1 -0
  218. package/esm/skin-9c155216.js +1 -0
  219. package/esm/skin-ae62bcb2.js +1 -0
  220. package/esm/{skin-e696b89d.js → skin-b8ab618a.js} +1 -1
  221. package/esm/skin-bac5af08.js +1 -0
  222. package/esm/{skin-f88f5f66.js → skin-bd7a3dd1.js} +1 -1
  223. package/esm/skin-be8a02e7.js +1 -0
  224. package/esm/skin-c090f244.js +1 -0
  225. package/esm/skin-c30842dc.js +1 -0
  226. package/esm/skin-d3624ad9.js +1 -0
  227. package/esm/skin-d38710e4.js +1 -0
  228. package/esm/{skin-f790ba88.js → skin-d83c1d9d.js} +1 -1
  229. package/esm/skin-d958409a.js +1 -0
  230. package/esm/skin-e19c56bc.js +1 -0
  231. package/esm/skin-e2ae2805.js +1 -0
  232. package/esm/skin-ebb3617f.js +1 -0
  233. package/esm/{skin-f66d3f4d.js → skin-f0e96993.js} +1 -1
  234. package/esm/skin-fdf12be2.js +1 -0
  235. package/esm/skin-fe225d0d.js +1 -0
  236. package/esm/skin-ffea0ba5.js +1 -0
  237. package/esm/util-bf07d6ad.js +1 -0
  238. package/esm/videoSelector-251380b8.js +1 -0
  239. package/esm/{videoSelector-fe5e1c99.js → videoSelector-63662915.js} +1 -1
  240. package/esm/{videoSelector-2feea699.js → videoSelector-6f3d8213.js} +1 -1
  241. package/esm/videoSelector-8fff66a0.js +1 -0
  242. package/esm/videoSelector-9a4cdfe6.js +1 -0
  243. package/esm/videoSelector-a7f651ac.js +1 -0
  244. package/esm/videoSelector-b8a5ac9f.js +1 -0
  245. package/esm/videoSelector-bd618168.js +1 -0
  246. package/esm/videoSelector-e3df553f.js +1 -0
  247. package/esm/videoSelector-e5dbbe4a.js +1 -0
  248. package/esm/{videojs_contrib_dash-a82e8b26.js → videojs_contrib_dash-f7d94714.js} +1 -1
  249. package/package.json +5 -3
  250. package/cjs/autoNextVideo-f43d3c6b.js +0 -1
  251. package/cjs/browser-77c57718.js +0 -1
  252. package/cjs/generic-d5a358b3.js +0 -1
  253. package/cjs/index-8b1af9b8.js +0 -1
  254. package/cjs/index-9419bcb2.js +0 -1
  255. package/cjs/skin-159b2753.js +0 -1
  256. package/esm/autoNextVideo-a02e0bce.js +0 -1
  257. package/esm/browser-d4613b36.js +0 -1
  258. package/esm/generic-c74188d9.js +0 -1
  259. package/esm/index-6d832f1c.js +0 -1
  260. package/esm/index-b814cfa3.js +0 -1
  261. package/esm/skin-a6d8d2a7.js +0 -1
@@ -1 +0,0 @@
1
- import e from"@babel/runtime/helpers/toConsumableArray";import{g as t,p as n,t as r}from"./skin-58b9263c.js";import{Q as i,b as o,d as a}from"./generic-c74188d9.js";import{s as l}from"./autoNextVideo-a02e0bce.js";import{e as u}from"./icons-8e47e640.js";import s from"@babel/runtime/helpers/typeof";import c from"video.js";import d from"@babel/runtime/helpers/asyncToGenerator";import p from"@babel/runtime/regenerator";import m from"@babel/runtime/helpers/defineProperty";import v from"@babel/runtime/helpers/slicedToArray";var f,g,h,b,y=[],x=!1,w=function(r,a){var l;if(x=!1,null!=a&&null!==(l=a.series)&&void 0!==l&&l.enable){var s;y=[];var c=o();null==c||c.map(function(t){var n;return(n=y).push.apply(n,e(t.episodes))}),null==a||null===(s=a.series)||void 0===s||s.cb}else{var d,p;y=(null==a||null===(d=a.relatedVideos)||void 0===d?void 0:d.content)||[],null==a||null===(p=a.relatedVideos)||void 0===p||p.cb}var m=t(r);m.on("timeupdate",function(){var e,t;if(!x){var n=Math.floor(m.currentTime()),r=m.duration(),o=null===(e=document.getElementsByClassName("next-ep-preview"))||void 0===e?void 0:e[0];r-n<=10&&i()<=(null===(t=y)||void 0===t?void 0:t.length)-1?o&&(o.style.visibility="visible"):o&&(o.style.visibility="hidden")}});var v,f=y.filter(function(e,t){return t==i()});if((null==f?void 0:f.length)>0)if(null!==(v=document.getElementsByClassName("next-ep-preview"))&&void 0!==v&&v[0]){var g,h,b,w,A,N,j,k,C,O,T,B;(null===(g=document.getElementsByClassName("next-ep-preview"))||void 0===g?void 0:g[0]).style.visibility="hidden";var I=null===(h=document.getElementsByClassName("next-ep-title"))||void 0===h?void 0:h[0],L=null===(b=document.getElementsByClassName("next-ep-img"))||void 0===b?void 0:b[0],S=null===(w=document.getElementsByClassName("next-ep-content"))||void 0===w?void 0:w[0],M=null===(A=f[0])||void 0===A?void 0:A.title;(null===(N=M)||void 0===N?void 0:N.length)>60&&(M=M.substr(0,60)+"..."),I.textContent="".concat(M),L.src=(null===(j=f[0])||void 0===j||null===(k=j.gist)||void 0===k||null===(C=k.imageGist)||void 0===C?void 0:C.r16x9)||(null==f||null===(O=f[0])||void 0===O?void 0:O.img)||(null===(T=window)||void 0===T||null===(B=T.customData)||void 0===B?void 0:B.fallbackImage),S.onclick=function(){return E(r)}}else{var P,R,D,$,X,U,F,_,q=document.createElement("div");q.className="next-ep-preview",q.style.visibility="hidden",document.getElementById(r).append(q);var G=document.createElement("div");G.className="next-heading-wrapper";var V=document.createElement("div");V.className="next-ep-header",V.textContent="Next up";var z=document.createElement("div");z.className="next-ep-close",z.onclick=function(){q.style.visibility="hidden",x=!0},z.appendChild(n(u())),G.append(V),G.append(z);var H=null===(P=f[0])||void 0===P?void 0:P.title,Q=document.createElement("img");Q.className="next-ep-img",Q.src=(null===(R=f[0])||void 0===R||null===(D=R.gist)||void 0===D||null===($=D.imageGist)||void 0===$?void 0:$.r16x9)||(null==f||null===(X=f[0])||void 0===X?void 0:X.img)||(null===(U=window)||void 0===U||null===(F=U.customData)||void 0===F?void 0:F.fallbackImage);var W=document.createElement("div");W.className="next-ep-title",(null===(_=H)||void 0===_?void 0:_.length)>60&&(H=H.substr(0,60)+"..."),W.textContent="".concat(H);var Y=document.createElement("div");Y.className="next-ep-content",Y.append(Q),Y.append(W),Y.onclick=function(){return E(r)},q.append(G),q.append(Y)}},E=function(e,n){var r=t(e),o=Math.floor(r.currentTime());if(Math.floor(r.duration())!=o){r.pause(e);var a=i();l(a,e,y)}};function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function N(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach(function(t){m(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}f={0:{src:"data:image/gif;base64,R0lGODlhAQABAPAAAP///wAAACH5BAAAAAAALAAAAAABAAEAAAICRAEAOw==",alt:"loading"}},g=function e(){var t,n,r,i,o;for(r in n=(t=Array.prototype.slice.call(arguments)).shift()||{},t)for(o in i=t[r])i.hasOwnProperty(o)&&("object"===s(i[o])?n[o]=e(n[o],i[o]):n[o]=i[o]);return n},h=function(e,t){return function(n){return window.getComputedStyle?window.getComputedStyle(e,t)[n]:e.currentStyle[n]}},b=function e(t){return"HTML"!==t.nodeName&&"static"===h(t)("position")?e(t.offsetParent):t},c.registerPlugin("thumbnails",function(e){var t,n,r,i,o,a,l,u;function s(){document.removeEventListener("pointermove",l),document.removeEventListener("pointerup",s),u()}n=g({},f,e),i=this,function(){var e,t,n;-1!==navigator.userAgent.toLowerCase().indexOf("android")&&(t=function(){e.addClass("fake-active")},n=function(){e.removeClass("fake-active")},(e=i.controlBar.progressControl).on("touchstart",t),e.on("touchend",n),e.on("touchcancel",n))}(),(t=document.createElement("div")).className="vjs-thumbnail-holder",r=document.createElement("img"),t.appendChild(r),r.src=n[0].src,r.className="vjs-thumbnail",g(r.style,n[0].style),r.style.left||r.style.right||(r.onload=function(){r.style.left=-r.naturalWidth/2+"px"}),a=i.duration(),i.on("durationchange",function(e){a=i.duration()}),i.on("loadedmetadata",function(e){a=i.duration()}),(o=i.controlBar.progressControl).el().appendChild(t),l=function(e){var i,l,u,s,c,d,p,m,v,f;for(l in u=0,v=(window.pageXOffset?{x:window.pageXOffset,y:window.pageYOffset}:{x:document.documentElement.scrollLeft,y:document.documentElement.scrollTop}).x,p=((f=b(o.el()).getBoundingClientRect()).width||f.right)+v,d=e.pageX,e.changedTouches&&(d=e.changedTouches[0].pageX),s=d||e.clientX+document.body.scrollLeft+document.documentElement.scrollLeft,s-=b(o.el()).getBoundingClientRect().left+v,i=Math.floor((s-o.el().offsetLeft)/o.width()*a),n)i>l&&(u=Math.max(u,l));(c=n[u]).src&&r.src!=c.src&&(r.src=c.src),c.style&&r.style!=c.style&&g(r.style,c.style),s+(m=function(e,t){var n;return t?parseFloat(t):"auto"!==(n=h(e)("clip"))&&"inherit"!==n&&4===(n=n.split(/(?:\(|\))/)[1].split(/(?:,| )/)).length?parseFloat(n[1])-parseFloat(n[3]):0}(r,c.width||n[0].width)/2)>p?s-=s+m-p:s<m&&(s=m),t.style.left=s+"px"},o.on("mousemove",l),o.on("touchmove",l),o.on("pointerdown",function(e){document.addEventListener("pointermove",l),document.addEventListener("pointerup",s)}),u=function(e){t.style.left="-1000px"},o.on("mouseout",u),o.on("touchcancel",u),o.on("touchend",u),i.on("userinactive",u)});var j="my-player";function k(e){var t=e.split("\n"),n=[];return t.forEach(function(e){if((e=e.trim()).startsWith("#EXT-X-IMAGE-STREAM-INF")){var t=e.split(","),r={resolution:null,uri:null};t.forEach(function(e){e.includes("RESOLUTION")&&(r.resolution=e.split("=")[1]),e.includes("URI")&&(r.uri=e.split("=")[1].replace(/"/g,""))}),n.push(r)}}),n}function C(){return(C=d(p.mark(function e(t){var n,r,i,o,a,l,u,s,c,d,m,f,g,h,b,y,x,w,E,A,N,j,k,C;return p.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(!t._tiles){e.next=2;break}return e.abrupt("return",t._tiles);case 2:return e.prev=2,e.next=5,fetch(t.uri,{mode:"cors"});case 5:return n=e.sent,e.next=8,n.blob();case 8:return r=e.sent,e.next=11,createImageBitmap(r);case 11:for(i=e.sent,o=t.layout.split("x").map(Number),a=v(o,2),l=a[0],u=a[1],s=i.width/u,c=i.height/l,d=[],m=0;m<l;m++)for(f=0;f<u;f++)(g=document.createElement("canvas")).width=s,g.height=c,g.getContext("2d").drawImage(i,f*s,m*c,s,c,0,0,s,c),h=g.toDataURL("image/png"),d.push({uri:h,duration:t.duration}),t._tiles=d;return e.abrupt("return",d);case 20:for(e.prev=20,e.t0=e.catch(2),b=t.layout.split("x").map(Number),y=v(b,2),x=y[0],w=y[1],E=[],A=0;A<x*w;A++)E.push({uri:null===(N=window)||void 0===N||null===(j=N.app_data)||void 0===j||null===(k=j.appcmsMain)||void 0===k||null===(C=k.images)||void 0===C?void 0:C.placeholderCover,duration:t.duration});return e.abrupt("return",E);case 26:case"end":return e.stop()}},e,null,[[2,20]])}))).apply(this,arguments)}function O(e,t){return T.apply(this,arguments)}function T(){return(T=d(p.mark(function e(t,n){var r,i;return p.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return j=n,e.prev=1,e.next=4,fetch(t);case 4:return r=e.sent,e.next=7,r.text();case 7:return i=e.sent,e.abrupt("return",k(i));case 11:e.prev=11,e.t0=e.catch(1),console.error("Error fetching the M3U8 manifest:",e.t0);case 14:case"end":return e.stop()}},e,null,[[1,11]])}))).apply(this,arguments)}function B(e,n,r){var i=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"),o=t(j);if(i&&o){var a=i.getBoundingClientRect(),l=(e.clientX-a.left)/a.width,u=function(e,t){var n,r;if(!t||0===t.length)return null;var i=0,o=t.length-1;for(;i<=o;){var a=Math.floor((i+o)/2),l=t[a];if(l===e)return l;l<e?i=a+1:o=a-1}var u=null!==(n=t[i])&&void 0!==n?n:1/0,s=null!==(r=t[o])&&void 0!==r?r:-1/0;return Math.abs(u-e)<Math.abs(s-e)?u:s}(Math.round(l*o.duration()),r),s=n[u];s&&!s.loading&&(s.loading=!0,function(e){return C.apply(this,arguments)}(s).then(function(e){var t=e[s.tileIndex],n=document.querySelector(".vjs-thumbnail-holder img");n&&t.uri&&(n.src=t.uri),s.loading=!1,s.src=t.uri}))}}function I(e){return L.apply(this,arguments)}function L(){return(L=d(p.mark(function e(t){var n,i,o,a;return p.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return n={},t.forEach(function(e,t){for(var r=e.layout.split("x").map(Number),i=v(r,2),o=i[0]*i[1],a=e.duration,l=0;l<o;l++){var u,s=Math.round((t*o+l)*a);n[s]=N(N({},e),{},{duration:e.duration,tileIndex:l,loading:!1,style:(u={left:"-60px",height:"85px",width:"130px"},m(u,"left","-60px"),m(u,"border","1px solid transparent"),m(u,"borderRadius","4px"),u)})}}),i=Object.keys(n).map(Number).sort(function(e,t){return e-t}),null==(o=document.querySelector(".vjs-progress-holder.vjs-slider.vjs-slider-horizontal"))||o.addEventListener("mousemove",r(function(e){return B(e,n,i)},500)),null==(a=document.querySelector(".vjs-progress-control.vjs-control"))||a.addEventListener("pointerdown",function(e){document.addEventListener("pointermove",r(function(e){return B(e,n,i)},500))}),e.abrupt("return",n);case 8:case"end":return e.stop()}},e)}))).apply(this,arguments)}var S=function(){var e=d(p.mark(function e(t,n){var r,i,o,a;return p.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.next=2,fetch(t+n);case 2:return r=e.sent,e.next=5,r.text();case 5:return i=e.sent,o=i.split("\n"),a=[],o.forEach(function(e,n){e=e.trim();var r={resolution:null,duration:null,uri:null,layout:null};n>0&&o[n-1].includes("#EXT-X-TILES")&&(o[n-1]=o[n-1].split(","),r.uri=t+e,o[n-1].forEach(function(e){(e.includes(":")?e.split(":")[1]:e).split(",").forEach(function(e){var t=e.split("="),n=v(t,2),i=n[0],o=n[1];i=i.toLowerCase(),r[i]=o})}),a.push(r))}),e.abrupt("return",a);case 10:case"end":return e.stop()}},e)}));return function(t,n){return e.apply(this,arguments)}}();function M(e){return e.replace(/AdSegmentFilter\/markers=\(.+?\)\//,"")}function P(e,t){return R.apply(this,arguments)}function R(){return(R=d(p.mark(function e(n,r){var i,o,l,u,s,c,d,m,f,g,h,b,y,x,w,E,A,N,k,C,O,T,B,I,L,S,P,R,X,U,F,_,q,G,V,z,H,Q,W,Y,J,K,Z,ee,te,ne,re,ie,oe,ae,le,ue,se,ce,de,pe,me,ve;return p.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return j=r,i=t(r),o=n.split("/"),l=o.findIndex(function(e){return"dash"===e.toLowerCase()}),u=M(-1!==l?o.slice(0,l+1).join("/"):new URL(n).origin),e.prev=5,e.next=8,fetch(n);case 8:return m=e.sent,e.next=11,m.text();case 11:f=e.sent,g=new DOMParser,h=g.parseFromString(f,"application/xml"),b=(null==i?void 0:i.duration())||(null===(s=a())||void 0===s||null===(c=s.video)||void 0===c?void 0:c.runtime),y=(null==h||null===(d=h.querySelector("MPD > BaseURL"))||void 0===d?void 0:d.textContent)||u+"/",x=h.getElementsByTagName("AdaptationSet"),w=0;case 18:if(!(w<x.length)){e.next=72;break}if(("image"!==(E=x[w]).getAttribute("contentType")||"image/png"!==E.getAttribute("mimeType"))&&"image/jpeg"!==E.getAttribute("mimeType")){e.next=69;break}if(N=E.getElementsByTagName("SegmentTemplate")[0],k=null===(A=N.getElementsByTagName("SegmentTimeline"))||void 0===A?void 0:A[0],!N||!k){e.next=48;break}if(T=k.getElementsByTagName("S"),B=parseInt(null===(C=T[0])||void 0===C?void 0:C.getAttribute("t")),I=parseInt(null===(O=T[0])||void 0===O?void 0:O.getAttribute("d")),L=E.getElementsByTagName("Representation")[0],S=L.getElementsByTagName("EssentialProperty")[0],P=S.getAttribute("value"),R=null==P?void 0:P.split("x"),X=v(R,2),U=X[0],F=X[1],!N){e.next=46;break}if(N.getAttribute("media"),_=N.getAttribute("timescale"),q=(_?I/_:I)/(U*F),G=L.getAttribute("id"),V=Math.round(b/q),z=Math.ceil(V/(U*F)),H=N.getAttribute("media"),parseInt(N.getAttribute("startNumber")),!isNaN(parseInt(z))){e.next=43;break}return e.abrupt("return");case 43:for(Q=[],w=0;w<z;w++)Y="/"==(W=H)[0]?new URL(u).origin:u+"/",Q.push({duration:q,layout:P,uri:Y+W.replace("$Time$",B+w*I).replace("$RepresentationID$",G)});return e.abrupt("return",Q);case 46:e.next=69;break;case 48:if(J=E.getElementsByTagName("Representation")[0],K=J.getElementsByTagName("EssentialProperty")[0],Z=K.getAttribute("value"),ee=null==Z?void 0:Z.split("x"),te=v(ee,2),ne=te[0],re=te[1],!N){e.next=69;break}if(N.getAttribute("media"),ie=N.getAttribute("duration"),oe=N.getAttribute("timescale"),ae=(oe?ie/oe:ie)/(ne*re),le=J.getAttribute("id"),ue=Math.round(b/ae),se=Math.ceil(ue/(ne*re)),ce=N.getAttribute("media"),de=parseInt(N.getAttribute("startNumber"))||0,!isNaN(parseInt(se))){e.next=65;break}return e.abrupt("return");case 65:for(pe=[],me=D(ce),w=0;w<se;w++)ve=me?$(me,w+de):ce,pe.push({duration:ae,layout:Z,uri:y+ve.replace("$Number$",w+de).replace("$RepresentationID$",le)});return e.abrupt("return",pe);case 69:w++,e.next=18;break;case 72:return console.log("No trickplay segment found."),e.abrupt("return",null);case 76:e.prev=76,e.t0=e.catch(5),console.error("Error fetching or parsing MPD:",e.t0);case 79:case"end":return e.stop()}},e,null,[[5,76]])}))).apply(this,arguments)}function D(e){var t=e.match(/Thumbnail_\$Number%0\d+d\$\.\w+/);return t?t[0]:null}function $(e,t){var n=e.match(/%0(\d+)d/);if(!n)return e;var r=parseInt(n[1],10),i=String(t).padStart(r,"0");return e.replace(/\$Number%0\d+d\$/,i)}function X(e){return U.apply(this,arguments)}function U(){return(U=d(p.mark(function e(n){var r,i,o,a,l,u,s,c,d,m,v,f,g,h,b,y;return p.wrap(function(e){for(;;)switch(e.prev=e.next){case 0:if(u=t(n),s=u.currentSource(),c=s.src,c=null!==(r=c)&&void 0!==r&&r.includes("blob")?null===(i=window)||void 0===i||null===(o=i.player)||void 0===o?void 0:o.getSource():c,null===(a=c)||void 0===a||!a.includes("m3u8")){e.next=19;break}return e.next=6,O(c,n);case 6:if(!((null==(d=e.sent)?void 0:d.length)>0)){e.next=17;break}return m=(null==d?void 0:d[0])||null,v=m.uri,f=c.substring(0,c.lastIndexOf("/"))+"/",e.next=12,S(f,v);case 12:return g=e.sent,e.next=15,I(g);case 15:h=e.sent,u.thumbnails(h);case 17:e.next=28;break;case 19:if(null===(l=c)||void 0===l||!l.includes("mpd")){e.next=28;break}return e.next=22,P(c,n);case 22:if(!((null==(b=e.sent)?void 0:b.length)>0)){e.next=28;break}return e.next=26,I(b);case 26:y=e.sent,u.thumbnails(y);case 28:case"end":return e.stop()}},e)}))).apply(this,arguments)}function F(e,n){var r=t(e),i=null==n?void 0:n.tvProviderLogoUrl;if(i){var o=document.createElement("div");o.className="tvProviderImage";var a=document.createElement("img");a.src="".concat(i),a.alt="Provider Image",o.append(a),r.el().appendChild(o),r.on("useractive",function(){o.classList.remove("vjs-fade")}),r.on("userinactive",function(){r.paused()||o.classList.add("vjs-fade")}),r.on("fullscreenchange",function(){r.isFullscreen_?o.style.top="3.2rem":o.style.top="1rem"})}}export{w as a,F as b,X as i};
@@ -1 +0,0 @@
1
- import{h as o,o as l,p as i,q as e}from"./features-ce8f391c.js";import{g as r}from"./skin-58b9263c.js";import{a as n,i as a,b as t}from"./index-b814cfa3.js";import{i as s}from"./browser-d4613b36.js";import"videojs-contrib-quality-menu";import u from"video.js";import{i as d,s as p}from"./index-6d832f1c.js";import{e as m}from"./generic-c74188d9.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/classCallCheck";import"@babel/runtime/helpers/createClass";import"@babel/runtime/helpers/inherits";import"@babel/runtime/helpers/possibleConstructorReturn";import"@babel/runtime/helpers/getPrototypeOf";import"./renditions-4c09c626.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/toConsumableArray";import"./autoNextVideo-a02e0bce.js";import"./util-80257541.js";import"./icons-8e47e640.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/slicedToArray";import"video.js/dist/video-js.min.css";import"./captions-b7fd8308.js";import"./resolution-920515d1.js";import"@babel/runtime/helpers/assertThisInitialized";import"axios";import"js-cookie";import"ua-parser-js";function v(l,i){var e=r(l);e&&(e.on("loadeddata",function(){var o,e,t,u,d;!function(o){var l=r(o);l&&(null==l||l.qualityMenu,l.qualityMenu({useResolutionLabels:!0}))}(l),!(null!=i&&null!==(o=i.series)&&void 0!==o&&o.enable||null!==(e=window)&&void 0!==e&&null!==(t=e.app_data)&&void 0!==t&&null!==(u=t.appcmsMain)&&void 0!==u&&null!==(d=u.features)&&void 0!==d&&d.auto_play)||null!=i&&i.liveVideo||n(l,i),null!=i&&i.liveVideo||s()||a(l)}),e.one("play",function(){var i,e,r,n;null!==(i=window)&&void 0!==i&&null!==(e=i.customData)&&void 0!==e&&e.iframeOverlayUrl&&o(l,null===(r=window)||void 0===r||null===(n=r.customData)||void 0===n?void 0:n.iframeOverlayUrl)}))}function b(o,n){r(o).addClass("skin_vlone"),v(o,n),function(o,r){var n,a,s,u,v,b,c=null==r||null===(n=r.res)||void 0===n||null===(a=n.video)||void 0===a?void 0:a.isSSAIEnabled,y=m(null==r?void 0:r.res,o)||{},j=y.src;(null==r||null===(s=r.relatedVideos)||void 0===s||null===(u=s.content)||void 0===u?void 0:u.length)>0&&l(o,null==r?void 0:r.relatedVideos);null!=r&&null!==(v=r.series)&&void 0!==v&&v.enable&&i(o,r);(null==r||null===(b=r.streams)||void 0===b?void 0:b.length)>1&&e(o,null==r?void 0:r.streams);t(o,r),d(o,r),c&&p(o,j)}(o,n),c(o,n)}var c=function(o,l){var i,e,n,a,t,s,d,p,m,v,b,c,y=r(o),j=(null==l?void 0:l.theme)||{},f=u.dom.$(".vjs-play-progress"),h=u.dom.$(".video-js .vjs-big-play-button .vjs-icon-placeholder");h&&(h.style.color="".concat(null===(i=window)||void 0===i||null===(e=i.app_data)||void 0===e||null===(n=e.appcmsMain)||void 0===n||null===(a=n.brand)||void 0===a||null===(t=a.cta)||void 0===t||null===(s=t.primary)||void 0===s?void 0:s.backgroundColor)),f&&(f.style.background="".concat(null===(d=window)||void 0===d||null===(p=d.app_data)||void 0===p||null===(m=p.appcmsMain)||void 0===m||null===(v=m.brand)||void 0===v||null===(b=v.cta)||void 0===b||null===(c=b.primary)||void 0===c?void 0:c.backgroundColor));var g=y.getChild("BigPlayButton")||null;(null==j?void 0:j.progressBarColor)&&f&&(f.style.background=j.progressBarColor),(null==j?void 0:j.playButtonBackgroundColor)&&g&&(g.el().style.background=j.playButtonBackgroundColor),(null==j?void 0:j.playButtonColor)&&h&&(h.style.color=j.playButtonColor),(null==j?void 0:j.playButtonType)&&("square"==(null==j?void 0:j.playButtonType)?g.el().style.borderRadius=".3em":g.el().style.borderRadius="1.3em")};export{b as initialiseSkin};