@viewlift/player-backup 0.0.53 → 0.0.54
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-b0678df5.js → autoNextVideo-f55c3bc8.js} +1 -1
- package/cjs/{caption-settings-1c87ef8f.js → caption-settings-b9a2170a.js} +1 -1
- package/cjs/{icons-ae4c91fa.js → icons-1195a883.js} +1 -1
- package/cjs/{index-757ddcde.js → index-35f2609e.js} +1 -1
- package/cjs/index.js +1 -1
- package/cjs/{keyboardShortcuts-d1f4cdf6.js → keyboardShortcuts-1bc55d0a.js} +1 -1
- package/cjs/{multicam-e992bdd4.js → multicam-2dd43be4.js} +1 -1
- package/cjs/{multicamv2-f8ecd8c9.js → multicamv2-99239817.js} +1 -1
- package/cjs/{mwebPotraitTray-463dd7d1.js → mwebPotraitTray-0f9fede7.js} +1 -1
- package/cjs/{nextEpisodeButton-1794c1db.js → nextEpisodeButton-ffdb48cd.js} +1 -1
- package/cjs/{playlist-e145412e.js → playlist-161c7d4a.js} +1 -1
- package/cjs/{series-c17160ba.js → series-822b7eed.js} +1 -1
- package/cjs/{settings-icon-0c0e2633.js → settings-icon-0893e0bb.js} +1 -1
- package/cjs/{skin-5e5c3983.js → skin-4a3719d5.js} +1 -1
- package/cjs/{skin-135b56e1.js → skin-98340a9c.js} +1 -1
- package/cjs/{skin-29f7cf38.js → skin-c3a22b43.js} +1 -1
- package/cjs/{skin-51a60622.js → skin-c5ee7ba1.js} +1 -1
- package/cjs/{videoSelector-97b00dd6.js → videoSelector-8effcb69.js} +1 -1
- package/esm/{autoNextVideo-75c8f6c0.js → autoNextVideo-d7f0041c.js} +1 -1
- package/esm/{caption-settings-7f4b96b5.js → caption-settings-2c794555.js} +1 -1
- package/esm/{icons-357be619.js → icons-b6b8da26.js} +1 -1
- package/esm/{index-0c6b4c3e.js → index-3069088b.js} +1 -1
- package/esm/index.js +1 -1
- package/esm/{keyboardShortcuts-dc1976f7.js → keyboardShortcuts-a40a5a79.js} +1 -1
- package/esm/{multicam-af9c7229.js → multicam-7597d47e.js} +1 -1
- package/esm/{multicamv2-35cb609d.js → multicamv2-db918729.js} +1 -1
- package/esm/{mwebPotraitTray-be5ed397.js → mwebPotraitTray-b2054a48.js} +1 -1
- package/esm/{nextEpisodeButton-9d4a4c4e.js → nextEpisodeButton-e556915c.js} +1 -1
- package/esm/{playlist-3b06b60b.js → playlist-c0dbcd28.js} +1 -1
- package/esm/{series-26bc0037.js → series-22075091.js} +1 -1
- package/esm/{settings-icon-9d0c7764.js → settings-icon-d6c78a08.js} +1 -1
- package/esm/{skin-de605ff1.js → skin-40779dd2.js} +1 -1
- package/esm/{skin-fb1757f1.js → skin-46f4b33c.js} +1 -1
- package/esm/{skin-e17591b3.js → skin-7cb348d5.js} +1 -1
- package/esm/{skin-05b3c464.js → skin-84f469fb.js} +1 -1
- package/esm/{videoSelector-ebeccb6f.js → videoSelector-4639c53e.js} +1 -1
- package/package.json +1 -1
|
@@ -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 i from"@babel/runtime/helpers/getPrototypeOf";import r from"video.js";import{E as a,r as l}from"./icons-
|
|
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 r from"video.js";import{E as a,r as l}from"./icons-b6b8da26.js";import{j as s,g as c,k as d,l as m,m as u}from"./index-3069088b.js";import{a as p}from"./autoNextVideo-d7f0041c.js";import"video.js/dist/video-js.min.css";import"@babel/runtime/helpers/defineProperty";import"axios";import"@babel/runtime/helpers/asyncToGenerator";import"@babel/runtime/regenerator";import"@babel/runtime/helpers/toConsumableArray";import"@babel/runtime/helpers/assertThisInitialized";function v(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var o,r=i(e);if(t){var a=i(this).constructor;o=Reflect.construct(r,arguments,a)}else o=r.apply(this,arguments);return n(this,o)}}var h=r.getComponent("Component"),f=function(n){o(f,h);var i=v(f);function f(t){var o,n,r,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return e(this,f),(r=i.call(this,t,a)).playerId=a.playerId,r.seriesData=a.sres,r.videos=a.related.content,r.cb=(null==a||null===(o=a.related)||void 0===o?void 0:o.cb)||null,r.autoNext=(null==a||null===(n=a.related)||void 0===n?void 0:n.autoNext)||!1,r.currentVideoData=a.res,r.initialiseStructure(),r.loadCSS(),r.autoNext&&p({playerId:r.playerId,content:r.videos,cb:r.cb}),r}return t(f,[{key:"createEl",value:function(){var e=r.dom.createEl("div",{className:"video-selection vjs-control vjs-button"});e.style.position="unset";var t=r.dom.createEl("div",{className:"video-selector-icon",innerHTML:"".concat(a())});return r.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=r.dom.createEl("div",{className:"video-selection-container hidden"});r.dom.$(".video-selector-icon",this.el()).onclick=function(){var o;null!==(o=t.classList)&&void 0!==o&&o.contains("hidden")?(s(),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").slice(0,-2);t.style.height="".concat(o,"px"),r.dom.appendContent(e,t),document.getElementById(this.playerId).style.overflow="hidden",this.addFunctionality(t)}},{key:"toggleOpenClose",value:function(){}},{key:"addFunctionality",value:function(e){var t=this,o=this.el(),n=r.dom.createEl("div",{className:"video-selector-head"}),i=r.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 a=r.dom.createEl("div",{className:"video-selector-title",innerHTML:"Recommended"}),s=r.dom.createEl("div",{className:"video-selector-content"}),p=r.dom.createEl("div",{className:"video-container"}),v=function(e){var o,n=r.dom.createEl("div",{className:"video -".concat(e)}),i=r.dom.createEl("div",{className:"recommended -".concat(e)});i.setAttribute("video-idx",e),i.onclick=function(){u(e+1);for(var o=r.dom.$$(".recommended"),n=0;n<o.length;n++)o[n].style.border="none";d(e),m(t.playerId,t.videos[e].id,sessionStorage.getItem("token")).then((function(e){t.cb&&t.cb(e)})).catch((function(e){t.cb&&t.cb(e)}))};var a=document.createElement("img");a.className="related-thumbnail-image",a.src="".concat(t.videos[e].img),a.alt="No Thumbnail Available",i.append(a);var l=r.dom.createEl("div",{className:"info -".concat(e),innerHTML:"".concat((null==t||null===(o=t.videos[e])||void 0===o?void 0:o.title)||"")});r.dom.appendContent(n,i),r.dom.appendContent(n,l),r.dom.appendContent(p,n),r.dom.appendContent(s,p)},h=0;h<this.videos.length;h++)v(h);r.dom.appendContent(n,i),r.dom.appendContent(n,a),r.dom.appendContent(e,n),r.dom.appendContent(e,s),c(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")}))}}]),f}();export{f as default};
|