@viewlift/player-backup 1.0.61 → 1.0.62-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-50ffd441.js → autoNextVideo-81dafcd5.js} +1 -1
- package/cjs/bundle.css +1 -1
- package/cjs/{caption-settings-587c51ea.js → caption-settings-30367b99.js} +1 -1
- package/cjs/{chromecast-5dad1eb5.js → chromecast-c43dfe8f.js} +1 -1
- package/cjs/{features-e9401bd9.js → features-a946a835.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/{keyboardShortcuts-9f797b42.js → keyboardShortcuts-6b1f1884.js} +1 -1
- package/cjs/{multicam-2d048d21.js → multicam-21ee445f.js} +1 -1
- package/cjs/{multicamv2-bd5820a6.js → multicamv2-5e893bd8.js} +1 -1
- package/cjs/{mwebPotraitTray-62d82542.js → mwebPotraitTray-d6c3d95e.js} +1 -1
- package/cjs/{nextEpisodeButton-e4d73ba4.js → nextEpisodeButton-723990d6.js} +1 -1
- package/cjs/{playlist-c805bb8b.js → playlist-17d924d8.js} +1 -1
- package/cjs/{renditions-a603eee8.js → renditions-eee5b220.js} +1 -1
- package/cjs/{resolution-3354cead.js → resolution-c2f5d636.js} +1 -1
- package/cjs/{series-4aec541f.js → series-5c3c15dd.js} +1 -1
- package/cjs/{series-v2-84ef0d40.js → series-v2-b1b0e057.js} +1 -1
- package/cjs/{settings-icon-87854110.js → settings-icon-2c19e148.js} +1 -1
- package/cjs/{skin-c7ccea8f.js → skin-071eb264.js} +1 -1
- package/cjs/{skin-76fc1f46.js → skin-47f06ed0.js} +1 -1
- package/cjs/{skin-093cf3e2.js → skin-601dae50.js} +1 -1
- package/cjs/{skin-8d437032.js → skin-75438aac.js} +1 -1
- package/cjs/{skin-4f320cb6.js → skin-ac05cb75.js} +1 -1
- package/cjs/{util-835bacf7.js → util-2720e3a7.js} +1 -1
- package/cjs/{videoSelector-e5e5db6c.js → videoSelector-5cf9c9e5.js} +1 -1
- package/esm/{autoNextVideo-69d64a90.js → autoNextVideo-3d98a3c6.js} +1 -1
- package/esm/bundle.css +1 -1
- package/esm/{caption-settings-174fd3d3.js → caption-settings-79b1ee80.js} +1 -1
- package/esm/{chromecast-e2000c4e.js → chromecast-d941c74a.js} +1 -1
- package/esm/{features-c246b1d0.js → features-ce48d5ef.js} +1 -1
- package/esm/index.js +1 -1
- package/esm/{keyboardShortcuts-0650de3e.js → keyboardShortcuts-7df94fc8.js} +1 -1
- package/esm/{multicam-d7ee96ed.js → multicam-33c32e53.js} +1 -1
- package/esm/{multicamv2-1939e3f8.js → multicamv2-e44055d7.js} +1 -1
- package/esm/{mwebPotraitTray-dbdf3d1e.js → mwebPotraitTray-6fdfc363.js} +1 -1
- package/esm/{nextEpisodeButton-e6c19115.js → nextEpisodeButton-19e13600.js} +1 -1
- package/esm/{playlist-b1f69275.js → playlist-57965671.js} +1 -1
- package/esm/{renditions-4d6b5b1b.js → renditions-18852ab0.js} +1 -1
- package/esm/{resolution-908b6145.js → resolution-6079139b.js} +1 -1
- package/esm/{series-6dddebcf.js → series-267cb706.js} +1 -1
- package/esm/{series-v2-b470b0e2.js → series-v2-6def4c4a.js} +1 -1
- package/esm/{settings-icon-4c4c2a36.js → settings-icon-bb6e69bb.js} +1 -1
- package/esm/{skin-20fe3397.js → skin-16525ad7.js} +1 -1
- package/esm/{skin-0b805562.js → skin-a38487fe.js} +1 -1
- package/esm/{skin-1c5d53d8.js → skin-a7f66e6b.js} +1 -1
- package/esm/{skin-2a7ae6e4.js → skin-c3c991ef.js} +1 -1
- package/esm/{skin-1701672c.js → skin-f84b0b47.js} +1 -1
- package/esm/{util-2b4b9f11.js → util-42cd9f6e.js} +1 -1
- package/esm/{videoSelector-e7c1ca51.js → videoSelector-31a45a87.js} +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,b as t,c as n,d as o}from"./features-
|
|
1
|
+
import{a as e,b as t,c as n,d as o}from"./features-ce48d5ef.js";import{M as s,a as r,S as l,N as a}from"./icons-c2efba97.js";import{a as i,m as c,O as u}from"./chromecast-d941c74a.js";import d from"@babel/runtime/helpers/defineProperty";import{i as m}from"./keyboardShortcuts-7df94fc8.js";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-18852ab0.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function v(o,a){var m=i(o);m.one("play",(function(){var t,n,l,i;null!=a&&a.streams&&e(o,function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},a)),null!=a&&a.airplay&&"Safari"==c()&&m.addChild("airPlayButton"),null!=a&&a.chromecastReceiverId&&m.addChild("chromecastButton"),m.addChild("FullscreenToggle"),null===(t=m.getChild("FullscreenToggle"))||void 0===t||null===(n=t.el())||void 0===n||n.appendChild(u(s(window.controlsColor))),null===(l=m.getChild("FullscreenToggle"))||void 0===l||null===(i=l.el())||void 0===i||i.appendChild(u(r(window.controlsColor))),b(o)})),m.on("loadedmetadata",(function(){window.endFirstFrame(m),"Safari"!==c()&&t(o,"live",l())})),m.one("loadedmetadata",(function(){var e;null!=a&&a.streams&&(null==a||null===(e=a.streams)||void 0===e?void 0:e.length)>=2&&n(o,a)}))}function f(e,t){var n;m(e,t),(null==(n=t)||!n.liveui)&&(null==n||!n.liveVideo)||null!=n&&n.liveui&&null!=n&&n.liveVideo?import("./dvr_skin-9cc1b144.js").then((function(e){var t=document.createElement("style");t.id="dvr_skin",t.append("".concat(e.default)),document.head.appendChild(t)})):import("./nondvr_skin-64be70e5.js").then((function(e){var t=document.createElement("style");t.id="nondvr_skin",t.append("".concat(e.default)),document.head.appendChild(t)})),function(e){o(e)}(e),function(e,t){var n=i(e),o=n.controlBar.getChild("SubsCapsButton").el();document.getElementsByClassName("vjs-subs-caps-button")[1].appendChild(u(a()));var s=document.createElement("div");s.classList.add("caption-header"),o.querySelector(".vjs-menu-content").insertBefore(s,o.querySelector(".vjs-menu-item"));var r=document.createElement("div");if(r.innerText="Captions",r.className="fs14",document.getElementsByClassName("vjs-subs-caps-button")[0].appendChild(r),"Safari"==c()){document.getElementsByClassName("vjs-subs-caps-button")[0].style.left="9.5rem"}null!=t&&t.liveui||null==t||!t.liveVideo||(document.getElementsByClassName("vjs-progress-control")[0].style.display="none")}(e,t),v(e,t)}var h;function b(e){var t=i(e);j(),t.on("pause",(function(){clearTimeout(h),y()})),t.on("play",(function(){j()}));var n=document.getElementById("".concat(e));n.addEventListener("mouseenter",(function(){y(),t.paused()||j()})),n.addEventListener("touchstart",(function(){y(),j()})),n.addEventListener("mousemove",(function(){y(),t.paused()||j()}))}function y(){var e=document.getElementsByClassName("vjs-chromecast-button")[0],t=document.getElementsByClassName("vjs-airplay-button")[0],n=document.getElementsByClassName("vjs-fullscreen-control")[0];null!=e&&e.classList.contains("hideoutsidecontrols")&&(null==e||e.classList.remove("hideoutsidecontrols")),n.classList.contains("hideoutsidecontrols")&&n.classList.remove("hideoutsidecontrols"),null!=t&&t.classList.contains("hideoutsidecontrols")&&t.classList.remove("hideoutsidecontrols")}function j(){var e=document.getElementsByClassName("vjs-chromecast-button")[0],t=document.getElementsByClassName("vjs-fullscreen-control")[0],n=document.getElementsByClassName("vjs-airplay-button")[0];clearTimeout(h),h=setTimeout((function(){null==e||e.classList.add("hideoutsidecontrols"),null==t||t.classList.add("hideoutsidecontrols"),null==n||n.classList.add("hideoutsidecontrols")}),2200)}export{b as hideControls,f as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e}from"./chromecast-
|
|
1
|
+
import{a as e}from"./chromecast-d941c74a.js";import{i as r,p as t}from"./features-ce48d5ef.js";import{g as o}from"./renditions-18852ab0.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";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"./localisation-0bf399a1.js";function i(i,a){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,i){e(t).on("loadeddata",(function(){var e;(null===(e=o(t))||void 0===e?void 0:e.length)>0&&r(t,i)}))}(i,a),function(r){var o=e(r);o.controls(!1),t(r)}(i)}export{i as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{b as e,e as t,f as o,g as s,h as n}from"./features-
|
|
1
|
+
import{b as e,e as t,f as o,g as s,h as n}from"./features-ce48d5ef.js";import{i}from"./keyboardShortcuts-7df94fc8.js";import{S as r,M as l,a,N as d,b as m,R as u}from"./icons-c2efba97.js";import{a as p,b as c,O as v}from"./chromecast-d941c74a.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-18852ab0.js";import"./localisation-0bf399a1.js";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";function b(b,h){i(b,h),import("./skin-cd537931.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&&s(e,"default",m());(0==t.liveVideo&&0==t.liveui||1==t.liveui)&&n(e,"default",u())}(b,h),function(s,n){var i=p(s),l=(null==n?void 0:n.sres)||null;i.on("loadeddata",(function(){e(s,"default",r()),l&&import("./nextEpisodeButton-19e13600.js").then((function(e){e.initaliseFunctionality(n.sres.seasons,c())}))})),i.one("loadedmetadata",(function(){var e;l&&(t(s,null==n||null===(e=n.sres)||void 0===e?void 0:e.seasons,n),o(n.sres,n.res,s))}))}(b,h),function(e,t){var o,s,n,i,r=p(e),m=document.getElementsByClassName("vjs-current-time")[0],u=document.getElementsByClassName("vjs-duration")[0],c=document.getElementsByClassName("vjs-time-divider")[0];t.liveVideo&&(m&&(m.style.display="none"),u&&(u.style.display="none"),c&&(c.style.display="none"));null===(o=r.controlBar.getChild("FullscreenToggle"))||void 0===o||null===(s=o.el())||void 0===s||s.appendChild(v(l(window.controlsColor))),null===(n=r.controlBar.getChild("FullscreenToggle"))||void 0===n||null===(i=n.el())||void 0===i||i.appendChild(v(a(window.controlsColor)));var b=r.controlBar.getChild("SubsCapsButton").el();document.getElementById(e).getElementsByClassName("vjs-subs-caps-button")[1].appendChild(v(d()));var h=document.createElement("div");h.classList.add("caption-header"),b.querySelector(".vjs-menu-content").insertBefore(h,b.querySelector(".vjs-menu-item"))}(b,h)}export{b as initialiseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as e,p as t,k as r}from"./chromecast-
|
|
1
|
+
import{a as e,p as t,k as r}from"./chromecast-d941c74a.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"video.js";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";function o(o){import("./skin-2c638dc1.js").then((function(e){var t=document.createElement("style");t.id="carousel_homepage",t.append("".concat(e.default)),document.head.appendChild(t)})),n(),function(o){var n=document.getElementById("".concat(o)),a=e(o);n&&n.addEventListener("touchstart",(function(){a.paused()?t(o):r(o)}))}(o)}var n=function(){document.getElementsByClassName("vjs-control-bar")[0].style.visibility="hidden"};export{o as initaliseSkin};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
import{a as t}from"./chromecast-
|
|
1
|
+
import{a as t}from"./chromecast-d941c74a.js";var n=function(n,a,r){var o=t(n);o?a>=0&&a<=o.duration()?(r({status:!0,msg:"Successfully seeked to timestamp : ".concat(a)}),o.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,"'"))},o=function(n,a){var r=t(n);r?r.on("ended",(function(){return a(!0)})):a("Cannot find player with id: '".concat(n,"'"))},e=function(n){var a=t(n);return a?a.duration():"Cannot find player with id: '".concat(n,"'")};export{o as a,a as b,e as g,r as o,n as s};
|
|
@@ -1 +1 @@
|
|
|
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 a from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{E as l,e as r}from"./icons-c2efba97.js";import{
|
|
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 a from"@babel/runtime/helpers/getPrototypeOf";import i from"video.js";import{E as l,e as r}from"./icons-c2efba97.js";import{W as d,X as c,a as s,S as m,q as u,U as p}from"./chromecast-d941c74a.js";import{a as v}from"./autoNextVideo-3d98a3c6.js";import{g as h}from"./localisation-0bf399a1.js";import"@babel/runtime/helpers/defineProperty";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"axios";import"js-cookie";import"ua-parser-js";import"@babel/runtime/helpers/toConsumableArray";import"./util-42cd9f6e.js";function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(f=function(){return!!e})()}var y=i.getComponent("Component"),b=function(){o(E,y);var b,g,C=(b=E,g=f(),function(){var e,t=a(b);if(g){var o=a(this).constructor;e=Reflect.construct(t,arguments,o)}else e=t.apply(this,arguments);return n(this,e)});function E(t){var o,n,a,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,E),(a=C.call(this,t,i)).playerId=i.playerId,a.seriesData=i.sres,a.videos=i.related.content,a.cb=(null==i||null===(o=i.related)||void 0===o?void 0:o.cb)||null,a.autoNext=(null==i||null===(n=i.related)||void 0===n?void 0:n.autoNext)||!1,a.currentVideoData=i.res,a.initialiseStructure(),a.loadCSS(),a.autoNext&&(p(0),v({playerId:a.playerId,content:a.videos,cb:a.cb})),a}return t(E,[{key:"createEl",value:function(){var e=i.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=i.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(l())});return i.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.el(),t=i.dom.createEl("div",{className:"video-selection-container hidden"});i.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;null!==(o=t.classList)&&void 0!==o&&o.contains("hidden")?(d(),t.classList.remove("hidden"),e.classList.add("open"),t.style.right="0px"):(t.classList.add("hidden"),e.classList.remove("open"),t.style.right="-350px")};var o=window.getComputedStyle(document.getElementById(this.playerId),null).getPropertyValue("height");t.style.height="".concat(o),i.dom.appendContent(e,t),document.getElementById(this.playerId).style.overflow="hidden",this.addFunctionality(t),c(this.playerId,t)}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=i.dom.createEl("div",{className:"video-selector-head"}),a=i.dom.createEl("div",{className:"video-selector-cross-icon",innerHTML:"".concat(r())});a.onclick=function(){e.classList.add("hidden"),o.classList.remove("open"),e.style.right="-350px"};for(var l=i.dom.createEl("div",{className:"video-selector-title",innerHTML:h("relatedVideoTitle")||"Recommended"}),d=i.dom.createEl("div",{className:"video-selector-content"}),c=i.dom.createEl("div",{className:"video-container"}),v=function(e){var o,n,a,l,r,s=i.dom.createEl("div",{className:"video -".concat(e)}),v=i.dom.createEl("div",{className:"recommended -".concat(e)});v.setAttribute("video-idx",e),v.onclick=function(){p(e+1);for(var o=i.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";m(e),u(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===(a=window)||void 0===a||null===(l=a.customData)||void 0===l?void 0:l.fallbackImage)),h.alt="No Thumbnail Available",v.append(h);var f=i.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(r=t.videos[e])||void 0===r?void 0:r.title)||"")});i.dom.appendContent(s,v),i.dom.appendContent(s,f),i.dom.appendContent(c,s),i.dom.appendContent(d,c)},f=0;f<this.videos.length;f++)v(f);i.dom.appendContent(n,a),i.dom.appendContent(n,l),i.dom.appendContent(e,n),i.dom.appendContent(e,d),s(this.playerId).on("fullscreenchange",(function(){var o=window.getComputedStyle(document.getElementById(t.playerId),null).getPropertyValue("height").slice(0,-2);e.style.height="".concat(o,"px")}))}}]),E}();export{b as default};
|