@viewlift/player-backup 2.0.75-backup → 2.0.75-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.
- package/cjs/autoNextVideo-b2664dca.js +1 -0
- package/cjs/browser-38ff3331.js +1 -0
- package/cjs/bundle.css +1591 -47
- package/cjs/caption-settings-5944a544.js +1 -0
- package/cjs/{captions-07bd3069.js → captions-3c7ca3a7.js} +1 -1
- package/cjs/features-4324250b.js +1 -0
- package/cjs/generic-d56b38ac.js +1 -0
- package/cjs/icons-0ea2e662.js +1 -0
- package/cjs/index-510967ea.js +1 -0
- package/cjs/{index-84cce26a.js → index-8606834d.js} +1 -1
- package/cjs/index-865afc31.js +1 -0
- package/cjs/index.js +1 -1
- package/cjs/multicamv2-408075e5.js +1 -0
- package/cjs/multicamv2-96ae1bef.js +1 -0
- package/cjs/nextEpisodeButton-571ddebc.js +1 -0
- package/cjs/playlist-2a9d8c3a.js +1 -0
- package/cjs/renditions-26c6d0df.js +1 -0
- package/cjs/resolution-5a0df2be.js +1 -0
- package/cjs/series-23a6b96c.js +1 -0
- package/cjs/series-v2-656980f1.js +1 -0
- package/cjs/series-v2-a128042a.js +1 -0
- package/cjs/settings-icon-12add1fe.js +1 -0
- package/cjs/skin-2fa52c29.js +1 -0
- package/cjs/skin-3397dca5.js +1 -0
- package/cjs/skin-61950a20.js +1 -0
- package/cjs/skin-6db027fa.js +1 -0
- package/cjs/skin-95e27a9f.js +1 -0
- package/cjs/skin-b5651b5b.js +1 -0
- package/cjs/skin-d1d871d1.js +1 -0
- package/cjs/skin-edc7bca4.js +1 -0
- package/cjs/util-c1962d91.js +1 -0
- package/cjs/videoSelector-e0dbb3af.js +1 -0
- package/cjs/videoSelector-f32fc4b5.js +1 -0
- package/cjs/videojs-dash5.es-3cd3423d.js +1 -0
- package/esm/autoNextVideo-b7900abb.js +1 -0
- package/esm/browser-512cd55a.js +1 -0
- package/esm/bundle.css +1591 -47
- package/esm/caption-settings-adcfbf9d.js +1 -0
- package/esm/{captions-b7fd8308.js → captions-7996e045.js} +1 -1
- package/esm/features-58699d4f.js +1 -0
- package/esm/generic-fe8a5419.js +1 -0
- package/esm/{icons-8e47e640.js → icons-79ad4d7d.js} +1 -1
- package/esm/index-24d08aa6.js +1 -0
- package/esm/index-c4b6db11.js +1 -0
- package/esm/index-d7c8b33b.js +1 -0
- package/esm/index.js +1 -1
- package/esm/multicamv2-8354e88e.js +1 -0
- package/esm/multicamv2-99d2d9f1.js +1 -0
- package/esm/nextEpisodeButton-6a78af06.js +1 -0
- package/esm/playlist-e4aff030.js +1 -0
- package/esm/{renditions-4c09c626.js → renditions-65794079.js} +1 -1
- package/esm/resolution-ed00f17a.js +1 -0
- package/esm/series-f895bf2d.js +1 -0
- package/esm/series-v2-2505dab5.js +1 -0
- package/esm/series-v2-55b5e1d5.js +1 -0
- package/esm/settings-icon-c670ad25.js +1 -0
- package/esm/skin-1c962a23.js +1 -0
- package/esm/skin-5ccd687d.js +1 -0
- package/esm/skin-8e2c5488.js +1 -0
- package/esm/skin-a0bc6679.js +1 -0
- package/esm/skin-b3625cf2.js +1 -0
- package/esm/skin-c5fd99ed.js +1 -0
- package/esm/skin-c7bbb999.js +1 -0
- package/esm/skin-e1abdefd.js +1 -0
- package/esm/util-389babb5.js +1 -0
- package/esm/videoSelector-986c7677.js +1 -0
- package/esm/videoSelector-fd351fa1.js +1 -0
- package/esm/videojs-dash5.es-17cb6067.js +1 -0
- package/package.json +2 -2
- package/cjs/autoNextVideo-f934d8e6.js +0 -1
- package/cjs/browser-77c57718.js +0 -1
- package/cjs/caption-settings-be714e97.js +0 -1
- package/cjs/features-e3fbb6d6.js +0 -1
- package/cjs/generic-f3eb8f60.js +0 -1
- package/cjs/icons-1a3febef.js +0 -1
- package/cjs/index-bf12d76a.js +0 -1
- package/cjs/index-d8b61952.js +0 -1
- package/cjs/multicamv2-119d55f4.js +0 -1
- package/cjs/multicamv2-662528be.js +0 -1
- package/cjs/nextEpisodeButton-928cba96.js +0 -1
- package/cjs/playlist-0bc81e09.js +0 -1
- package/cjs/renditions-fed22c12.js +0 -1
- package/cjs/resolution-e46c9615.js +0 -1
- package/cjs/series-f16bd1ac.js +0 -1
- package/cjs/series-v2-39bd84b6.js +0 -1
- package/cjs/series-v2-9d5ab36c.js +0 -1
- package/cjs/settings-icon-70f8857a.js +0 -1
- package/cjs/skin-10b17803.js +0 -1
- package/cjs/skin-116b20f6.js +0 -1
- package/cjs/skin-26616259.js +0 -1
- package/cjs/skin-3544db58.js +0 -1
- package/cjs/skin-5bf517bf.js +0 -1
- package/cjs/skin-835d0cad.js +0 -1
- package/cjs/skin-ecf02525.js +0 -1
- package/cjs/util-ef2cd61e.js +0 -1
- package/cjs/videoSelector-88f739f7.js +0 -1
- package/cjs/videoSelector-e361059c.js +0 -1
- package/cjs/videojs_contrib_dash-018c8bde.js +0 -1
- package/esm/autoNextVideo-9ba822d1.js +0 -1
- package/esm/browser-d4613b36.js +0 -1
- package/esm/caption-settings-4ab479b0.js +0 -1
- package/esm/features-009dbc81.js +0 -1
- package/esm/generic-cb3b8f3e.js +0 -1
- package/esm/index-38242f80.js +0 -1
- package/esm/index-5d92eaa3.js +0 -1
- package/esm/index-bf10bea3.js +0 -1
- package/esm/multicamv2-01b2db01.js +0 -1
- package/esm/multicamv2-4db1e309.js +0 -1
- package/esm/nextEpisodeButton-a92fd5cb.js +0 -1
- package/esm/playlist-b7b51ec6.js +0 -1
- package/esm/resolution-920515d1.js +0 -1
- package/esm/series-5fadaf24.js +0 -1
- package/esm/series-v2-27dd7c1e.js +0 -1
- package/esm/series-v2-ea841c5b.js +0 -1
- package/esm/settings-icon-366126fa.js +0 -1
- package/esm/skin-1c3a30b5.js +0 -1
- package/esm/skin-58b9263c.js +0 -1
- package/esm/skin-72e88e88.js +0 -1
- package/esm/skin-8bb383ad.js +0 -1
- package/esm/skin-98fc674f.js +0 -1
- package/esm/skin-f8512219.js +0 -1
- package/esm/skin-fce3b03c.js +0 -1
- package/esm/util-80257541.js +0 -1
- package/esm/videoSelector-0fbdeb0a.js +0 -1
- package/esm/videoSelector-c7dceeb5.js +0 -1
- package/esm/videojs_contrib_dash-f7d94714.js +0 -1
package/esm/skin-f8512219.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{a as e,b as t,c as s,d as i,e as o}from"./features-009dbc81.js";import{i as r}from"./index-38242f80.js";import{S as n,M as l,a,N as m,b as d,R as p}from"./icons-8e47e640.js";import{g as u,b as c}from"./skin-58b9263c.js";import{d as b}from"./generic-cb3b8f3e.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"video.js";import"./renditions-4c09c626.js";import"./localisation-0bf399a1.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"./util-80257541.js";import"./captions-b7fd8308.js";import"./resolution-920515d1.js";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";import"./browser-d4613b36.js";import"@babel/runtime/helpers/typeof";import"@babel/runtime/helpers/slicedToArray";import"axios";import"js-cookie";import"ua-parser-js";function v(v,h){u(v).addClass("skin_default"),r(v,h),import("./skin-71be210e.js").then(function(e){var t=document.createElement("style");t.id="def_skin",t.append("".concat(e.default)),document.head.appendChild(t)}),function(e,t){0==t.liveVideo&&0==t.liveui&&i(e,"default",d());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&o(e,"default",p())}(v,h),function(i,o){var r=u(i),l=(null==o?void 0:o.sres)||null;r.on("loadeddata",function(){e(i,"default",n()),l&&import("./nextEpisodeButton-a92fd5cb.js").then(function(e){e.initaliseFunctionality(o.sres.seasons,b())})}),r.one("loadedmetadata",function(){var e;l&&(t(i,null==o||null===(e=o.sres)||void 0===e?void 0:e.seasons,o),s(o.sres,o.res,i))})}(v,h),function(e,t){var s,i,o,r,n=u(e),d=document.getElementsByClassName("vjs-current-time")[0],p=document.getElementsByClassName("vjs-duration")[0],b=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(d&&(d.style.display="none"),p&&(p.style.display="none"),b&&(b.style.display="none"));null===(s=n.controlBar.getChild("FullscreenToggle"))||void 0===s||null===(i=s.el())||void 0===i||i.appendChild(c(l(window.controlsColor))),null===(o=n.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(r=o.el())||void 0===r||r.appendChild(c(a(window.controlsColor)));var v=n.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(c(m()));var h=document.createElement("div");h.classList.add("caption-header"),v.querySelector(".vjs-menu-content").insertBefore(h,v.querySelector(".vjs-menu-item"))}(v,h)}export{v as initialiseSkin};
|
package/esm/skin-fce3b03c.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as e}from"./skin-58b9263c.js";import{f as r,n as t}from"./features-009dbc81.js";import{g as o}from"./renditions-4c09c626.js";import{r as i}from"./captions-b7fd8308.js";import"@babel/runtime/helpers/toConsumableArray";import"video.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"./generic-cb3b8f3e.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./localisation-0bf399a1.js";function s(s,n){import("./skin-271fa63f.js").then(function(e){var r=document.createElement("style");r.id="multiplayer_css",r.append("".concat(e.default)),document.head.appendChild(r)}),function(t,s){e(t).on("loadeddata",function(){var e;(null===(e=o(t))||void 0===e?void 0:e.length)>0&&r(t,s),null!=s&&s.disableCaptions&&i(t)})}(s,n),function(r){var o=e(r);o.controls(!1),t(r)}(s)}export{s as initialiseSkin};
|
package/esm/util-80257541.js
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{g as t}from"./skin-58b9263c.js";var n=function(n,a,r){var i=t(n);i?a>=0&&a<=i.duration()?(r({status:!0,msg:"Successfully seeked to timestamp : ".concat(a)}),i.currentTime(a)):r({status:!1,msg:"Out of bounds, please provide a valid timestamp"}):r("Cannot find player with id: '".concat(n,"'"))},a=function(n,a){var r=t(n);if(!r)return"Cannot find player with id: '".concat(n,"'");try{return r.playbackRate(a),"Playback speed set to ".concat(a,"x")}catch(t){return"Error: ".concat(t)}},r=function(n,a){var r=t(n);r?r.on("timeupdate",function(){return a(r.currentTime())}):a("Cannot find player with id: '".concat(n,"'"))},i=function(n,a){var r=t(n);r?r.on("ended",function(){return a(!0)}):a("Cannot find player with id: '".concat(n,"'"))},o=function(n){var a=t(n);return a?a.duration():"Cannot find player with id: '".concat(n,"'")};export{i as a,a as b,o as g,r as o,n as s};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{f as r,e as l}from"./icons-8e47e640.js";import{H as s,S as d}from"./generic-cb3b8f3e.js";import{e as c,s as m,f as p,j as u,h as v,i as h}from"./skin-58b9263c.js";import{a as f}from"./autoNextVideo-9ba822d1.js";import{g as b}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-b7fd8308.js";import"@babel/runtime/helpers/toConsumableArray";import"./util-80257541.js";function y(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(y=function(){return!!e})()}var C=a.getComponent("Component"),g=function(){o(E,C);var g,j,N=(g=E,j=y(),function(){var e,t=i(g);if(j){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function E(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,E),(i=N.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d(0),f({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(E,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("button",{className:"video-selector-icon",title:"video selector",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-def99d5e.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"))};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("button",{className:"video-selector-cross-icon",ariaLabel:"close video selector",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open")};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:b("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,n,i,r,l,p,u,f,b=a.dom.createEl("button",{className:"video -".concat(e),ariaLabel:"".concat(t.videos[e].title),type:"button"}),y=a.dom.createEl("div",{className:"recommended -".concat(e)});y.setAttribute("video-idx",e),y.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(t.playerId,t.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})};var C=document.createElement("img");C.className="related-thumbnail-image",C.src="".concat(h(null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||h(null===(i=window)||void 0===i||null===(r=i.app_data)||void 0===r||null===(l=r.appcmsMain)||void 0===l||null===(p=l.images)||void 0===p?void 0:p.placeholderCover)),C.alt="".concat((null==t||null===(u=t.videos[e])||void 0===u?void 0:u.title.trim().split(/\s+/).slice(0,2).join(" "))||""),y.append(C);var g=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(f=t.videos[e])||void 0===f?void 0:f.title)||"")});a.dom.appendContent(b,y),a.dom.appendContent(b,g),a.dom.appendContent(m,b),a.dom.appendContent(c,m)},f=0;f<this.videos.length;f++)p(f);a.dom.appendContent(n,r),a.dom.appendContent(n,i),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),E}();export{g as default};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import e from"@babel/runtime/helpers/classCallCheck";import t from"@babel/runtime/helpers/createClass";import o from"@babel/runtime/helpers/inherits";import n from"@babel/runtime/helpers/possibleConstructorReturn";import i from"@babel/runtime/helpers/getPrototypeOf";import a from"video.js";import{E as r,e as l}from"./icons-8e47e640.js";import{H as s,S as d}from"./generic-cb3b8f3e.js";import{e as c,s as m,f as p,j as u,k as v}from"./skin-58b9263c.js";import{a as h}from"./autoNextVideo-9ba822d1.js";import{g as f}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"./browser-d4613b36.js";import"js-cookie";import"ua-parser-js";import"./captions-b7fd8308.js";import"@babel/runtime/helpers/toConsumableArray";import"./util-80257541.js";function b(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(b=function(){return!!e})()}var y=a.getComponent("Component"),g=function(){o(E,y);var g,C,N=(g=E,C=b(),function(){var e,t=i(g);if(C){var o=i(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function E(t){var o,n,i,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,E),(i=N.call(this,t,a)).playerId=a.playerId,i.seriesData=a.sres,i.videos=a.related.content,i.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,i.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,i.currentVideoData=a.res,i.initialiseStructure(),i.loadCSS(),i.autoNext&&(d(0),h({playerId:i.playerId,content:i.videos,cb:i.cb})),i}return t(E,[{key:"createEl",value:function(){var e=a.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=a.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(r())});return a.dom.appendContent(e,t),e}},{key:"loadCSS",value:function(){import("./videoSelector-8e258d45.js").then(function(e){var t=document.createElement("style");t.id="video-selection",t.append("".concat(e.default)),document.head.appendChild(t)})}},{key:"initialiseStructure",value:function(){var e=this,t=this.el(),o=a.dom.createEl("div",{className:"video-selection-container hidden"});a.dom.$(".video-selector-icon",this.el()).onclick=function(){var n;null!==(n=o.classList)&&void 0!==n&&n.contains("hidden")?(c(),o.classList.remove("hidden"),t.classList.add("open"),o.style.right="0px",m(e.playerId,o)):(o.classList.add("hidden"),t.classList.remove("open"),o.style.right="-350px")};var n=document.getElementById(this.playerId);if(n){var i=window.getComputedStyle(n,null).getPropertyValue("height");o.style.height="".concat(i),a.dom.appendContent(t,o),n.style.overflow="hidden",this.addFunctionality(o),p(this.playerId,o)}}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=a.dom.createEl("div",{className:"video-selector-head"}),i=a.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(l())});i.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var r=a.dom.createEl("div",{className:"video-selector-title",innerHTML:f("relatedVideoTitle")||"Recommended"}),c=a.dom.createEl("div",{className:"video-selector-content"}),m=a.dom.createEl("div",{className:"video-container"}),p=function(e){var o,n,i,r,l,p=a.dom.createEl("div",{className:"video -".concat(e)}),u=a.dom.createEl("div",{className:"recommended -".concat(e)});u.setAttribute("video-idx",e),u.onclick=function(){d(e+1);for(var o=a.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";v(e),s(t.playerId,t.videos[e].id).then(function(e){t.cb&&t.cb(e)}).catch(function(e){t.cb&&t.cb(e)})};var h=document.createElement("img");h.className="related-thumbnail-image",h.src="".concat((null==t||null===(o=t.videos)||void 0===o||null===(n=o[e])||void 0===n?void 0:n.img)||(null===(i=window)||void 0===i||null===(r=i.customData)||void 0===r?void 0:r.fallbackImage)),h.alt="No Thumbnail Available",u.append(h);var f=a.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(l=t.videos[e])||void 0===l?void 0:l.title)||"")});a.dom.appendContent(p,u),a.dom.appendContent(p,f),a.dom.appendContent(m,p),a.dom.appendContent(c,m)},h=0;h<this.videos.length;h++)p(h);a.dom.appendContent(n,i),a.dom.appendContent(n,r),a.dom.appendContent(e,n),a.dom.appendContent(e,c),u(this.playerId,e)}}]),E}();export{g as default};
|