Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/files_videoplayer.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/js
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2019-02-11 19:04:11 +0300
committerJulius Härtl <jus@bitgrid.net>2019-02-11 19:04:11 +0300
commitcea3a920bc42d63ff4da971a69a730bf91ab9cc8 (patch)
treeb7d51b56e9c043340d7db48b0223c7dda40a95fe /js
parenta91c264b616ddc5c567be13e8eac96acdfbcfbc4 (diff)
Bump bundles
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'js')
-rw-r--r--js/main.js4
-rw-r--r--js/main.js.map2
-rw-r--r--js/videojs.js2
-rw-r--r--js/videojs.js.map2
4 files changed, 5 insertions, 5 deletions
diff --git a/js/main.js b/js/main.js
index 957d2c7..6e054bf 100644
--- a/js/main.js
+++ b/js/main.js
@@ -1,4 +1,4 @@
-!function(e){function n(n){for(var i,o,l=n[0],r=n[1],a=0,s=[];a<l.length;a++)o=l[a],t[o]&&s.push(t[o][0]),t[o]=0;for(i in r)Object.prototype.hasOwnProperty.call(r,i)&&(e[i]=r[i]);for(d&&d(n);s.length;)s.shift()()}var i={},t={0:0};function o(n){if(i[n])return i[n].exports;var t=i[n]={i:n,l:!1,exports:{}};return e[n].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var n=[],i=t[e];if(0!==i)if(i)n.push(i[2]);else{var l=new Promise(function(n,o){i=t[e]=[n,o]});n.push(i[2]=l);var r,a=document.createElement("script");a.charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.src=function(e){return o.p+""+({1:"vendors~videojs",2:"videojs"}[e]||e)+".js"}(e),r=function(n){a.onerror=a.onload=null,clearTimeout(d);var i=t[e];if(0!==i){if(i){var o=n&&("load"===n.type?"missing":n.type),l=n&&n.target&&n.target.src,r=new Error("Loading chunk "+e+" failed.\n("+o+": "+l+")");r.type=o,r.request=l,i[1](r)}t[e]=void 0}};var d=setTimeout(function(){r({type:"timeout",target:a})},12e4);a.onerror=a.onload=r,document.head.appendChild(a)}return Promise.all(n)},o.m=e,o.c=i,o.d=function(e,n,i){o.o(e,n)||Object.defineProperty(e,n,{enumerable:!0,get:i})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,n){if(1&n&&(e=o(e)),8&n)return e;if(4&n&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(o.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&n&&"string"!=typeof e)for(var t in e)o.d(i,t,function(n){return e[n]}.bind(null,t));return i},o.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(n,"a",n),n},o.o=function(e,n){return Object.prototype.hasOwnProperty.call(e,n)},o.p="/js/",o.oe=function(e){throw console.error(e),e};var l=window.webpackJsonp=window.webpackJsonp||[],r=l.push.bind(l);l.push=n,l=l.slice();for(var a=0;a<l.length;a++)n(l[a]);var d=r;o(o.s=0)}([function(e,n,i){
+!function(e){function i(i){for(var n,o,l=i[0],r=i[1],a=0,s=[];a<l.length;a++)o=l[a],t[o]&&s.push(t[o][0]),t[o]=0;for(n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n]);for(d&&d(i);s.length;)s.shift()()}var n={},t={0:0};function o(i){if(n[i])return n[i].exports;var t=n[i]={i:i,l:!1,exports:{}};return e[i].call(t.exports,t,t.exports,o),t.l=!0,t.exports}o.e=function(e){var i=[],n=t[e];if(0!==n)if(n)i.push(n[2]);else{var l=new Promise(function(i,o){n=t[e]=[i,o]});i.push(n[2]=l);var r,a=document.createElement("script");a.charset="utf-8",a.timeout=120,o.nc&&a.setAttribute("nonce",o.nc),a.src=function(e){return o.p+""+({1:"vendors~videojs",2:"videojs"}[e]||e)+".js"}(e),r=function(i){a.onerror=a.onload=null,clearTimeout(d);var n=t[e];if(0!==n){if(n){var o=i&&("load"===i.type?"missing":i.type),l=i&&i.target&&i.target.src,r=new Error("Loading chunk "+e+" failed.\n("+o+": "+l+")");r.type=o,r.request=l,n[1](r)}t[e]=void 0}};var d=setTimeout(function(){r({type:"timeout",target:a})},12e4);a.onerror=a.onload=r,document.head.appendChild(a)}return Promise.all(i)},o.m=e,o.c=n,o.d=function(e,i,n){o.o(e,i)||Object.defineProperty(e,i,{enumerable:!0,get:n})},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},o.t=function(e,i){if(1&i&&(e=o(e)),8&i)return e;if(4&i&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&i&&"string"!=typeof e)for(var t in e)o.d(n,t,function(i){return e[i]}.bind(null,t));return n},o.n=function(e){var i=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(i,"a",i),i},o.o=function(e,i){return Object.prototype.hasOwnProperty.call(e,i)},o.p="/js/",o.oe=function(e){throw console.error(e),e};var l=window.webpackJsonp=window.webpackJsonp||[],r=l.push.bind(l);l.push=i,l=l.slice();for(var a=0;a<l.length;a++)i(l[a]);var d=r;o(o.s=0)}([function(e,i,n){
/*
* @copyright 2018 Christoph Wurst <christoph@winzerhof-wurst.at>
*
@@ -19,5 +19,5 @@
* You should have received a copy of the GNU Affero General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
-i.nc=btoa(OC.requestToken),i.p=OC.filePath("files_videoplayer","","js/");var t=null,o={UI:{show:function(){var e=document.createElement("source");e.src=escapeHTML(o.location).replace("&amp;","&"),o.mime&&(e.type=escapeHTML(o.mime));var n=document.createElement("video");if(n.id="my_video_1",n.classList.add("video-js"),n.classList.add("vjs-fill"),n.classList.add("vjs-big-play-centered"),n.controls=!0,n.preload="auto",n.width="100%",n.height="100%",n.poster=OC.filePath("files_videoplayer","","img")+"/poster.png",n.setAttribute("data-setup",'{"techOrder": ["html5"]}'),n.appendChild(e),null===o.inline){var i=document.createElement("div");i.id="videoplayer_overlay",i.style.display="none";var l=document.createElement("div");l.id="videoplayer_outer_container";var r=document.createElement("div");r.id="videoplayer_container";var a=document.createElement("div");a.id="videoplayer",r.appendChild(a),l.appendChild(r),i.appendChild(l),a.appendChild(n),document.body.appendChild(i),i.addEventListener("click",function(e){e.target===this&&o.hidePlayer()}),i.style.display="block"}else{var d=document.createElement("div");d.id="videoplayer_view",d.appendChild(n),o.inline.appendChild(d)}t("my_video_1",{fill:!0}).ready(function(){if(o.player=this,null===o.inline){var e=document.createElement("a");e.className="icon-view-close",e.id="box-close",e.href="#",e.addEventListener("click",function(){o.hidePlayer()}),document.getElementById("my_video_1").appendChild(e)}null===document.getElementById("body-public")&&o.player.play()})},hide:function(){var e=document.getElementById("videoplayer_overlay");e.style.display="none",e.parentElement.removeChild(e)}},mime:null,file:null,location:null,player:null,inline:null,mimeTypes:["video/mp4","video/x-m4v","video/webm","video/x-flv","video/ogg","video/quicktime","video/x-matroska"],mimeTypeAliasses:{"video/x-matroska":"video/webm"},onView:function(e,n){o.file=e,o.dir=n.dir,o.location=n.fileList.getDownloadUrl(e,o.dir),o.mime=n.$file.attr("data-mime"),o.mimeTypeAliasses.hasOwnProperty(o.mime)&&(o.mime=o.mimeTypeAliasses[o.mime]),o.showPlayer()},onViewInline:function(e,n,i){o.location=n,o.mime=i,o.mimeTypeAliasses.hasOwnProperty(o.mime)&&(o.mime=o.mimeTypeAliasses[o.mime]),o.inline=e,o.showPlayer()},showPlayer:function(){Promise.all([i.e(1),i.e(2)]).then(i.bind(null,3)).then(e=>{t=e.default,Promise.all([Promise.all([i.e(1),i.e(2)]).then(i.t.bind(null,1,7)),Promise.all([i.e(1),i.e(2)]).then(i.t.bind(null,2,7))]).then(()=>{o.UI.show()})})},hidePlayer:function(){null!==o.player&&!1!==o.player&&null===o.inline&&(o.player.dispose(),o.player=!1,o.UI.hide())},log:function(e){console.log(e)}};document.addEventListener("DOMContentLoaded",function(){if(document.addEventListener("keyup",function(e){(void 0!==e.key&&"Escape"===e.key||void 0!==e.keyCode&&27===e.keyCode)&&o.hidePlayer()}),"undefined"!=typeof FileActions)for(var e=0;e<o.mimeTypes.length;++e){var n=o.mimeTypes[e];OCA.Files.fileActions.register(n,"View",OC.PERMISSION_READ,"",o.onView),OCA.Files.fileActions.setDefault(n,"View"),n===i&&(isSupportedMimetype=!0)}if(document.getElementById("body-public")&&document.getElementById("imgframe")){var i=document.getElementById("mimetype").value;for(e=0;e<o.mimeTypes.length;++e)if(o.mimeTypes[e]===i){var t=window.location+"/download";o.onViewInline(document.getElementById("imgframe"),t,i);break}}})}]);
+n.nc=btoa(OC.requestToken),n.p=OC.filePath("files_videoplayer","","js/");var t=null,o={UI:{show:function(){var e=document.createElement("source");e.src=escapeHTML(o.location).replace("&amp;","&"),o.mime&&(e.type=escapeHTML(o.mime));var i=document.createElement("video");if(i.id="my_video_1",i.classList.add("video-js"),i.classList.add("vjs-fill"),i.classList.add("vjs-big-play-centered"),i.controls=!0,i.preload="auto",i.width="100%",i.height="100%",i.poster=OC.filePath("files_videoplayer","","img")+"/poster.png",i.setAttribute("data-setup",'{"techOrder": ["html5"]}'),i.appendChild(e),null===o.inline){var n=document.createElement("div");n.id="videoplayer_overlay";var l=document.createElement("div");l.id="videoplayer_outer_container";var r=document.createElement("div");r.id="videoplayer_container";var a=document.createElement("div");a.id="videoplayer",r.appendChild(a),l.appendChild(r),n.appendChild(l),a.appendChild(i),document.body.appendChild(n),n.addEventListener("click",function(e){e.target===this&&o.hidePlayer()}),setTimeout(()=>{n.className="show"},0)}else{var d=document.createElement("div");d.id="videoplayer_view",d.appendChild(i),o.inline.appendChild(d)}t("my_video_1",{fill:!0}).ready(function(){if(o.player=this,null===o.inline){var e=document.createElement("a");e.className="icon-view-close",e.id="box-close",e.href="#",e.addEventListener("click",function(){o.hidePlayer()}),document.getElementById("my_video_1").appendChild(e)}null===document.getElementById("body-public")&&o.player.play()})},hide:function(){var e=document.getElementById("videoplayer_overlay");e.className="",setTimeout(()=>{e.parentElement.removeChild(e)},500)}},mime:null,file:null,location:null,player:null,inline:null,mimeTypes:["video/mp4","video/x-m4v","video/webm","video/x-flv","video/ogg","video/quicktime","video/x-matroska"],mimeTypeAliasses:{"video/x-matroska":"video/webm"},onView:function(e,i){o.file=e,o.dir=i.dir,o.location=i.fileList.getDownloadUrl(e,o.dir),o.mime=i.$file.attr("data-mime"),o.mimeTypeAliasses.hasOwnProperty(o.mime)&&(o.mime=o.mimeTypeAliasses[o.mime]),o.showPlayer()},onViewInline:function(e,i,n){o.location=i,o.mime=n,o.mimeTypeAliasses.hasOwnProperty(o.mime)&&(o.mime=o.mimeTypeAliasses[o.mime]),o.inline=e,o.showPlayer()},showPlayer:function(){Promise.all([n.e(1),n.e(2)]).then(n.bind(null,3)).then(e=>{t=e.default,Promise.all([Promise.all([n.e(1),n.e(2)]).then(n.t.bind(null,1,7)),Promise.all([n.e(1),n.e(2)]).then(n.t.bind(null,2,7))]).then(()=>{o.UI.show()})})},hidePlayer:function(){null!==o.player&&!1!==o.player&&null===o.inline&&(o.player.dispose(),o.player=!1,o.UI.hide())},log:function(e){console.log(e)}};document.addEventListener("DOMContentLoaded",function(){if(document.addEventListener("keyup",function(e){(void 0!==e.key&&"Escape"===e.key||void 0!==e.keyCode&&27===e.keyCode)&&o.hidePlayer()}),"undefined"!=typeof FileActions)for(var e=0;e<o.mimeTypes.length;++e){var i=o.mimeTypes[e];OCA.Files.fileActions.register(i,"View",OC.PERMISSION_READ,"",o.onView),OCA.Files.fileActions.setDefault(i,"View"),i===n&&(isSupportedMimetype=!0)}if(document.getElementById("body-public")&&document.getElementById("imgframe")){var n=document.getElementById("mimetype").value;for(e=0;e<o.mimeTypes.length;++e)if(o.mimeTypes[e]===n){var t=window.location+"/download";o.onViewInline(document.getElementById("imgframe"),t,n);break}}})}]);
//# sourceMappingURL=main.js.map \ No newline at end of file
diff --git a/js/main.js.map b/js/main.js.map
index 62a7f60..c46560d 100644
--- a/js/main.js.map
+++ b/js/main.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/viewer.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","installedModules","0","__webpack_require__","exports","module","l","e","promises","installedChunkData","promise","Promise","resolve","reject","onScriptComplete","script","document","createElement","charset","timeout","nc","setAttribute","src","p","1","2","jsonpScriptSrc","event","onerror","onload","clearTimeout","chunk","errorType","type","realSrc","target","error","Error","request","undefined","setTimeout","head","appendChild","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","err","console","jsonpArray","window","oldJsonpFunction","slice","s","__webpack_nonce__","btoa","OC","requestToken","__webpack_public_path__","filePath","videojs","videoViewer","UI","show","source","escapeHTML","location","replace","mime","playerView","id","classList","add","controls","preload","width","height","poster","inline","overlay","style","display","outer_container","container","player","body","addEventListener","this","hidePlayer","wrapper","fill","ready","closeButton","className","href","getElementById","play","hide","parentElement","removeChild","file","mimeTypes","mimeTypeAliasses","video/x-matroska","onView","dir","fileList","getDownloadUrl","$file","attr","showPlayer","onViewInline","element","then","_videojs","default","dispose","log","message","keyCode","FileActions","OCA","Files","fileActions","register","PERMISSION_READ","setDefault","mimetype","isSupportedMimetype","videoUrl"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GAKAK,EAAA,EAAAC,EAAA,GACQD,EAAAF,EAAAI,OAAoBF,IAC5BH,EAAAC,EAAAE,GACAG,EAAAN,IACAI,EAAAG,KAAAD,EAAAN,GAAA,IAEAM,EAAAN,GAAA,EAEA,IA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UAAUnI,SAAUF,EAAG,CACtD,IAAIoG,EAAOP,EAAYwC,UAAUrI,GACjCyJ,IAAIC,MAAMC,YAAYC,SAASxD,EAAM,OAAQZ,GAAGqE,gBAAiB,GAAIhE,EAAY2C,QACjFiB,IAAIC,MAAMC,YAAYG,WAAW1D,EAAM,QACnCA,IAAS2D,IACZC,qBAAsB,GAMzB,GAAIrI,SAASoG,eAAe,gBAAkBpG,SAASoG,eAAe,YACrE,KAAIgC,EAAWpI,SAASoG,eAAe,YAAY5D,MACnD,IAASnE,EAAI,EAAGA,EAAI6F,EAAYwC,UAAUnI,SAAUF,EACnD,GAAI6F,EAAYwC,UAAUrI,KAAO+J,EAAU,CAC1C,IAAIE,EAAW/E,OAAOgB,SAAW,YACjCL,EAAYkD,aAAapH,SAASoG,eAAe,YAAakC,EAAUF,GACxE","file":"main.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t};\n\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t0: 0\n \t};\n\n\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"\" + ({\"1\":\"vendors~videojs\",\"2\":\"videojs\"}[chunkId]||chunkId) + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/js/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","/*\n * @copyright 2018 Christoph Wurst <christoph@winzerhof-wurst.at>\n *\n * @author 2018 Christoph Wurst <christoph@winzerhof-wurst.at>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n__webpack_nonce__ = btoa(OC.requestToken)\n__webpack_public_path__ = OC.filePath('files_videoplayer', '', 'js/')\n\nvar videojs = null;\n\nvar videoViewer = {\n\tUI: {\n\t\tshow: function () {\n\n\t\t\tvar source = document.createElement('source');\n\t\t\tsource.src = escapeHTML(videoViewer.location).replace('&amp;', '&');\n\n\t\t\tif (videoViewer.mime) {\n\t\t\t\tsource.type = escapeHTML(videoViewer.mime);\n\t\t\t}\n\n\t\t\tvar playerView = document.createElement('video');\n\t\t\tplayerView.id = 'my_video_1';\n\t\t\tplayerView.classList.add('video-js');\n\t\t\tplayerView.classList.add('vjs-fill');\n\t\t\tplayerView.classList.add('vjs-big-play-centered');\n\t\t\tplayerView.controls = true;\n\t\t\tplayerView.preload = \"auto\";\n\t\t\tplayerView.width = \"100%\";\n\t\t\tplayerView.height = \"100%\";\n\t\t\tplayerView.poster = OC.filePath('files_videoplayer', '', 'img') + '/poster.png';\n\t\t\tplayerView.setAttribute('data-setup', '{\"techOrder\": [\"html5\"]}');\n\t\t\tplayerView.appendChild(source);\n\n\t\t\tif (videoViewer.inline === null) {\n\t\t\t\tvar overlay = document.createElement('div');\n\t\t\t\toverlay.id = 'videoplayer_overlay';\n\t\t\t\toverlay.style.display = 'none';\n\n\t\t\t\tvar outer_container = document.createElement('div');\n\t\t\t\touter_container.id = 'videoplayer_outer_container';\n\n\t\t\t\tvar container = document.createElement('div');\n\t\t\t\tcontainer.id = 'videoplayer_container';\n\n\t\t\t\tvar player = document.createElement('div');\n\t\t\t\tplayer.id = 'videoplayer';\n\n\t\t\t\tcontainer.appendChild(player);\n\t\t\t\touter_container.appendChild(container);\n\t\t\t\toverlay.appendChild(outer_container);\n\n\t\t\t\tplayer.appendChild(playerView);\n\t\t\t\tdocument.body.appendChild(overlay);\n\n\t\t\t\t// close when clicking on the overlay\n\t\t\t\toverlay.addEventListener('click', function(e) {\n\t\t\t\t\tif (e.target === this) {\n\t\t\t\t\t\tvideoViewer.hidePlayer();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\t// show elements\n\t\t\t\toverlay.style.display = 'block';\n\t\t\t\t//overlay.fadeIn('fast'); TODO: convert to fadein!\n\t\t\t} else {\n\t\t\t\tvar wrapper = document.createElement('div');\n\t\t\t\twrapper.id = 'videoplayer_view';\n\t\t\t\twrapper.appendChild(playerView);\n\t\t\t\tvideoViewer.inline.appendChild(wrapper);\n\t\t\t}\n\t\t\t// initialize player\n\t\t\tvideojs(\"my_video_1\", {\n\t\t\t\tfill: true,\n\t\t\t}).ready(function () {\n\t\t\t\tvideoViewer.player = this;\n\t\t\t\tif (videoViewer.inline === null) {\n\t\t\t\t\t// append close button to video element\n\t\t\t\t\tvar closeButton = document.createElement('a');\n\t\t\t\t\tcloseButton.className = 'icon-view-close';\n\t\t\t\t\tcloseButton.id = 'box-close';\n\t\t\t\t\tcloseButton.href = '#';\n\t\t\t\t\tcloseButton.addEventListener('click', function () {\n\t\t\t\t\t\tvideoViewer.hidePlayer();\n\t\t\t\t\t});\n\t\t\t\t\tdocument.getElementById('my_video_1').appendChild(closeButton);\n\t\t\t\t}\n\t\t\t\t// autoplay\n\t\t\t\tif (document.getElementById('body-public') === null) {\n\t\t\t\t\tvideoViewer.player.play();\n\t\t\t\t}\n\t\t\t});\n\n\t\t},\n\t\thide: function () {\n\t\t\t/* TODO: it was, so put the fade back in\n\t\t\t$('#videoplayer_overlay').fadeOut('fast', function () {\n\t\t\t\t$('#videoplayer_overlay').remove();\n\t\t\t});\n\t\t\t*/\n\t\t\tvar overlay = document.getElementById('videoplayer_overlay');\n\t\t\toverlay.style.display = 'none';\n\t\t\toverlay.parentElement.removeChild(overlay);\n\t\t}\n\t},\n\tmime: null,\n\tfile: null,\n\tlocation: null,\n\tplayer: null,\n\tinline: null,\n\tmimeTypes: [\n\t\t'video/mp4',\n\t\t'video/x-m4v',\n\t\t'video/webm',\n\t\t'video/x-flv',\n\t\t'video/ogg',\n\t\t'video/quicktime',\n\t\t'video/x-matroska'\n\t],\n\tmimeTypeAliasses: {\n\t\t'video/x-matroska': 'video/webm' // mkv support for Chrome. webm uses the same container format\n\t},\n\tonView: function (file, data) {\n\t\tvideoViewer.file = file;\n\t\tvideoViewer.dir = data.dir;\n\t\tvideoViewer.location = data.fileList.getDownloadUrl(file, videoViewer.dir);\n\t\tvideoViewer.mime = data.$file.attr('data-mime');\n\t\tif (videoViewer.mimeTypeAliasses.hasOwnProperty(videoViewer.mime)) {\n\t\t\tvideoViewer.mime = videoViewer.mimeTypeAliasses[videoViewer.mime];\n\t\t}\n\t\tvideoViewer.showPlayer();\n\t},\n\tonViewInline: function (element, file, mime) {\n\t\tvideoViewer.location = file;\n\t\tvideoViewer.mime = mime;\n\t\tif (videoViewer.mimeTypeAliasses.hasOwnProperty(videoViewer.mime)) {\n\t\t\tvideoViewer.mime = videoViewer.mimeTypeAliasses[videoViewer.mime];\n\t\t}\n\t\tvideoViewer.inline = element;\n\t\tvideoViewer.showPlayer();\n\t},\n\tshowPlayer: function () {\n\t\timport(/* webpackChunkName: \"videojs\" */ 'video.js').then((_videojs) => {\n\t\t\tvideojs = _videojs.default;\n\t\t\tPromise.all([\n\t\t\t\timport(/* webpackChunkName: \"videojs\" */ '../css/style.css'),\n\t\t\t\timport(/* webpackChunkName: \"videojs\" */'!style-loader!css-loader!video.js/dist/video-js.css')\n\t\t\t]).then(() => {\n\t\t\t\tvideoViewer.UI.show();\n\t\t\t});\n\t\t});\n\t},\n\thidePlayer: function () {\n\t\tif (videoViewer.player !== null && videoViewer.player !== false && videoViewer.inline === null) {\n\t\t\tvideoViewer.player.dispose();\n\t\t\tvideoViewer.player = false;\n\t\t\tvideoViewer.UI.hide();\n\t\t}\n\t},\n\tlog: function (message) {\n\t\tconsole.log(message);\n\t}\n};\n\ndocument.addEventListener('DOMContentLoaded', function () {\n\n\t// add event to ESC key\n\tdocument.addEventListener('keyup', function(e) {\n\t\tif ((e.key !== undefined && e.key === 'Escape') ||\n\t\t\t(e.keyCode !== undefined && e.keyCode === 27)) {\n\t\t\tvideoViewer.hidePlayer();\n\t\t}\n\t});\n\n\tif (typeof FileActions !== 'undefined') {\n\t\tfor (var i = 0; i < videoViewer.mimeTypes.length; ++i) {\n\t\t\tvar mime = videoViewer.mimeTypes[i];\n\t\t\tOCA.Files.fileActions.register(mime, 'View', OC.PERMISSION_READ, '', videoViewer.onView);\n\t\t\tOCA.Files.fileActions.setDefault(mime, 'View');\n\t\t\tif (mime === mimetype) {\n\t\t\t\tisSupportedMimetype = true;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Public page magic\n\tif (document.getElementById('body-public') && document.getElementById('imgframe')) {\n\t\tvar mimetype = document.getElementById('mimetype').value;\n\t\tfor (var i = 0; i < videoViewer.mimeTypes.length; ++i) {\n\t\t\tif (videoViewer.mimeTypes[i] === mimetype) {\n\t\t\t\tvar videoUrl = window.location + '/download';\n\t\t\t\tvideoViewer.onViewInline(document.getElementById('imgframe'), videoUrl, mimetype);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n});\n"],"sourceRoot":""} \ No newline at end of file
+{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./src/viewer.js"],"names":["webpackJsonpCallback","data","moduleId","chunkId","chunkIds","moreModules","i","resolves","length","installedChunks","push","Object","prototype","hasOwnProperty","call","modules","parentJsonpFunction","shift","installedModules","0","__webpack_require__","exports","module","l","e","promises","installedChunkData","promise","Promise","resolve","reject","onScriptComplete","script","document","createElement","charset","timeout","nc","setAttribute","src","p","1","2","jsonpScriptSrc","event","onerror","onload","clearTimeout","chunk","errorType","type","realSrc","target","error","Error","request","undefined","setTimeout","head","appendChild","all","m","c","d","name","getter","o","defineProperty","enumerable","get","r","Symbol","toStringTag","value","t","mode","__esModule","ns","create","key","bind","n","object","property","oe","err","console","jsonpArray","window","oldJsonpFunction","slice","s","__webpack_nonce__","btoa","OC","requestToken","__webpack_public_path__","filePath","videojs","videoViewer","UI","show","source","escapeHTML","location","replace","mime","playerView","id","classList","add","controls","preload","width","height","poster","inline","overlay","outer_container","container","player","body","addEventListener","this","hidePlayer","className","wrapper","fill","ready","closeButton","href","getElementById","play","hide","parentElement","removeChild","file","mimeTypes","mimeTypeAliasses","video/x-matroska","onView","dir","fileList","getDownloadUrl","$file","attr","showPlayer","onViewInline","element","then","_videojs","default","dispose","log","message","keyCode","FileActions","OCA","Files","fileActions","register","PERMISSION_READ","setDefault","mimetype","isSupportedMimetype","videoUrl"],"mappings":"aACA,SAAAA,EAAAC,GAQA,IAPA,IAMAC,EAAAC,EANAC,EAAAH,EAAA,GACAI,EAAAJ,EAAA,GAKAK,EAAA,EAAAC,EAAA,GACQD,EAAAF,EAAAI,OAAoBF,IAC5BH,EAAAC,EAAAE,GACAG,EAAAN,IACAI,EAAAG,KAAAD,EAAAN,GAAA,IAEAM,EAAAN,GAAA,EAEA,IAAAD,KAAAG,EACAM,OAAAC,UAAAC,eAAAC,KAAAT,EAAAH,KACAa,EAAAb,GAAAG,EAAAH,IAKA,IAFAc,KAAAf,GAEAM,EAAAC,QACAD,EAAAU,OAAAV,GAOA,IAAAW,EAAA,GAKAT,EAAA,CACAU,EAAA,GAWA,SAAAC,EAAAlB,GAGA,GAAAgB,EAAAhB,GACA,OAAAgB,EAAAhB,GAAAmB,QAGA,IAAAC,EAAAJ,EAAAhB,GAAA,CACAI,EAAAJ,EACAqB,GAAA,EACAF,QAAA,IAUA,OANAN,EAAAb,GAAAY,KAAAQ,EAAAD,QAAAC,IAAAD,QAAAD,GAGAE,EAAAC,GAAA,EAGAD,EAAAD,QAKAD,EAAAI,EAAA,SAAArB,GACA,IAAAsB,EAAA,GAKAC,EAAAjB,EAAAN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C,EAAUF,GACxE","file":"main.js","sourcesContent":[" \t// install a JSONP callback for chunk loading\n \tfunction webpackJsonpCallback(data) {\n \t\tvar chunkIds = data[0];\n \t\tvar moreModules = data[1];\n\n\n \t\t// add \"moreModules\" to the modules object,\n \t\t// then flag all \"chunkIds\" as loaded and fire callback\n \t\tvar moduleId, chunkId, i = 0, resolves = [];\n \t\tfor(;i < chunkIds.length; i++) {\n \t\t\tchunkId = chunkIds[i];\n \t\t\tif(installedChunks[chunkId]) {\n \t\t\t\tresolves.push(installedChunks[chunkId][0]);\n \t\t\t}\n \t\t\tinstalledChunks[chunkId] = 0;\n \t\t}\n \t\tfor(moduleId in moreModules) {\n \t\t\tif(Object.prototype.hasOwnProperty.call(moreModules, moduleId)) {\n \t\t\t\tmodules[moduleId] = moreModules[moduleId];\n \t\t\t}\n \t\t}\n \t\tif(parentJsonpFunction) parentJsonpFunction(data);\n\n \t\twhile(resolves.length) {\n \t\t\tresolves.shift()();\n \t\t}\n\n \t};\n\n\n \t// The module cache\n \tvar installedModules = {};\n\n \t// object to store loaded and loading chunks\n \t// undefined = chunk not loaded, null = chunk preloaded/prefetched\n \t// Promise = chunk loading, 0 = chunk loaded\n \tvar installedChunks = {\n \t\t0: 0\n \t};\n\n\n\n \t// script path function\n \tfunction jsonpScriptSrc(chunkId) {\n \t\treturn __webpack_require__.p + \"\" + ({\"1\":\"vendors~videojs\",\"2\":\"videojs\"}[chunkId]||chunkId) + \".js\"\n \t}\n\n \t// The require function\n \tfunction __webpack_require__(moduleId) {\n\n \t\t// Check if module is in cache\n \t\tif(installedModules[moduleId]) {\n \t\t\treturn installedModules[moduleId].exports;\n \t\t}\n \t\t// Create a new module (and put it into the cache)\n \t\tvar module = installedModules[moduleId] = {\n \t\t\ti: moduleId,\n \t\t\tl: false,\n \t\t\texports: {}\n \t\t};\n\n \t\t// Execute the module function\n \t\tmodules[moduleId].call(module.exports, module, module.exports, __webpack_require__);\n\n \t\t// Flag the module as loaded\n \t\tmodule.l = true;\n\n \t\t// Return the exports of the module\n \t\treturn module.exports;\n \t}\n\n \t// This file contains only the entry chunk.\n \t// The chunk loading function for additional chunks\n \t__webpack_require__.e = function requireEnsure(chunkId) {\n \t\tvar promises = [];\n\n\n \t\t// JSONP chunk loading for javascript\n\n \t\tvar installedChunkData = installedChunks[chunkId];\n \t\tif(installedChunkData !== 0) { // 0 means \"already installed\".\n\n \t\t\t// a Promise means \"currently loading\".\n \t\t\tif(installedChunkData) {\n \t\t\t\tpromises.push(installedChunkData[2]);\n \t\t\t} else {\n \t\t\t\t// setup Promise in chunk cache\n \t\t\t\tvar promise = new Promise(function(resolve, reject) {\n \t\t\t\t\tinstalledChunkData = installedChunks[chunkId] = [resolve, reject];\n \t\t\t\t});\n \t\t\t\tpromises.push(installedChunkData[2] = promise);\n\n \t\t\t\t// start chunk loading\n \t\t\t\tvar script = document.createElement('script');\n \t\t\t\tvar onScriptComplete;\n\n \t\t\t\tscript.charset = 'utf-8';\n \t\t\t\tscript.timeout = 120;\n \t\t\t\tif (__webpack_require__.nc) {\n \t\t\t\t\tscript.setAttribute(\"nonce\", __webpack_require__.nc);\n \t\t\t\t}\n \t\t\t\tscript.src = jsonpScriptSrc(chunkId);\n\n \t\t\t\tonScriptComplete = function (event) {\n \t\t\t\t\t// avoid mem leaks in IE.\n \t\t\t\t\tscript.onerror = script.onload = null;\n \t\t\t\t\tclearTimeout(timeout);\n \t\t\t\t\tvar chunk = installedChunks[chunkId];\n \t\t\t\t\tif(chunk !== 0) {\n \t\t\t\t\t\tif(chunk) {\n \t\t\t\t\t\t\tvar errorType = event && (event.type === 'load' ? 'missing' : event.type);\n \t\t\t\t\t\t\tvar realSrc = event && event.target && event.target.src;\n \t\t\t\t\t\t\tvar error = new Error('Loading chunk ' + chunkId + ' failed.\\n(' + errorType + ': ' + realSrc + ')');\n \t\t\t\t\t\t\terror.type = errorType;\n \t\t\t\t\t\t\terror.request = realSrc;\n \t\t\t\t\t\t\tchunk[1](error);\n \t\t\t\t\t\t}\n \t\t\t\t\t\tinstalledChunks[chunkId] = undefined;\n \t\t\t\t\t}\n \t\t\t\t};\n \t\t\t\tvar timeout = setTimeout(function(){\n \t\t\t\t\tonScriptComplete({ type: 'timeout', target: script });\n \t\t\t\t}, 120000);\n \t\t\t\tscript.onerror = script.onload = onScriptComplete;\n \t\t\t\tdocument.head.appendChild(script);\n \t\t\t}\n \t\t}\n \t\treturn Promise.all(promises);\n \t};\n\n \t// expose the modules object (__webpack_modules__)\n \t__webpack_require__.m = modules;\n\n \t// expose the module cache\n \t__webpack_require__.c = installedModules;\n\n \t// define getter function for harmony exports\n \t__webpack_require__.d = function(exports, name, getter) {\n \t\tif(!__webpack_require__.o(exports, name)) {\n \t\t\tObject.defineProperty(exports, name, { enumerable: true, get: getter });\n \t\t}\n \t};\n\n \t// define __esModule on exports\n \t__webpack_require__.r = function(exports) {\n \t\tif(typeof Symbol !== 'undefined' && Symbol.toStringTag) {\n \t\t\tObject.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });\n \t\t}\n \t\tObject.defineProperty(exports, '__esModule', { value: true });\n \t};\n\n \t// create a fake namespace object\n \t// mode & 1: value is a module id, require it\n \t// mode & 2: merge all properties of value into the ns\n \t// mode & 4: return value when already ns object\n \t// mode & 8|1: behave like require\n \t__webpack_require__.t = function(value, mode) {\n \t\tif(mode & 1) value = __webpack_require__(value);\n \t\tif(mode & 8) return value;\n \t\tif((mode & 4) && typeof value === 'object' && value && value.__esModule) return value;\n \t\tvar ns = Object.create(null);\n \t\t__webpack_require__.r(ns);\n \t\tObject.defineProperty(ns, 'default', { enumerable: true, value: value });\n \t\tif(mode & 2 && typeof value != 'string') for(var key in value) __webpack_require__.d(ns, key, function(key) { return value[key]; }.bind(null, key));\n \t\treturn ns;\n \t};\n\n \t// getDefaultExport function for compatibility with non-harmony modules\n \t__webpack_require__.n = function(module) {\n \t\tvar getter = module && module.__esModule ?\n \t\t\tfunction getDefault() { return module['default']; } :\n \t\t\tfunction getModuleExports() { return module; };\n \t\t__webpack_require__.d(getter, 'a', getter);\n \t\treturn getter;\n \t};\n\n \t// Object.prototype.hasOwnProperty.call\n \t__webpack_require__.o = function(object, property) { return Object.prototype.hasOwnProperty.call(object, property); };\n\n \t// __webpack_public_path__\n \t__webpack_require__.p = \"/js/\";\n\n \t// on error function for async loading\n \t__webpack_require__.oe = function(err) { console.error(err); throw err; };\n\n \tvar jsonpArray = window[\"webpackJsonp\"] = window[\"webpackJsonp\"] || [];\n \tvar oldJsonpFunction = jsonpArray.push.bind(jsonpArray);\n \tjsonpArray.push = webpackJsonpCallback;\n \tjsonpArray = jsonpArray.slice();\n \tfor(var i = 0; i < jsonpArray.length; i++) webpackJsonpCallback(jsonpArray[i]);\n \tvar parentJsonpFunction = oldJsonpFunction;\n\n\n \t// Load entry module and return exports\n \treturn __webpack_require__(__webpack_require__.s = 0);\n","/*\n * @copyright 2018 Christoph Wurst <christoph@winzerhof-wurst.at>\n *\n * @author 2018 Christoph Wurst <christoph@winzerhof-wurst.at>\n *\n * @license GNU AGPL version 3 or any later version\n *\n * This program is free software: you can redistribute it and/or modify\n * it under the terms of the GNU Affero General Public License as\n * published by the Free Software Foundation, either version 3 of the\n * License, or (at your option) any later version.\n *\n * This program is distributed in the hope that it will be useful,\n * but WITHOUT ANY WARRANTY; without even the implied warranty of\n * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n * GNU Affero General Public License for more details.\n *\n * You should have received a copy of the GNU Affero General Public License\n * along with this program. If not, see <http://www.gnu.org/licenses/>.\n */\n\n__webpack_nonce__ = btoa(OC.requestToken)\n__webpack_public_path__ = OC.filePath('files_videoplayer', '', 'js/')\n\nvar videojs = null;\n\nvar videoViewer = {\n\tUI: {\n\t\tshow: function () {\n\n\t\t\tvar source = document.createElement('source');\n\t\t\tsource.src = escapeHTML(videoViewer.location).replace('&amp;', '&');\n\n\t\t\tif (videoViewer.mime) {\n\t\t\t\tsource.type = escapeHTML(videoViewer.mime);\n\t\t\t}\n\n\t\t\tvar playerView = document.createElement('video');\n\t\t\tplayerView.id = 'my_video_1';\n\t\t\tplayerView.classList.add('video-js');\n\t\t\tplayerView.classList.add('vjs-fill');\n\t\t\tplayerView.classList.add('vjs-big-play-centered');\n\t\t\tplayerView.controls = true;\n\t\t\tplayerView.preload = \"auto\";\n\t\t\tplayerView.width = \"100%\";\n\t\t\tplayerView.height = \"100%\";\n\t\t\tplayerView.poster = OC.filePath('files_videoplayer', '', 'img') + '/poster.png';\n\t\t\tplayerView.setAttribute('data-setup', '{\"techOrder\": [\"html5\"]}');\n\t\t\tplayerView.appendChild(source);\n\n\t\t\tif (videoViewer.inline === null) {\n\t\t\t\tvar overlay = document.createElement('div');\n\t\t\t\toverlay.id = 'videoplayer_overlay';\n\n\t\t\t\tvar outer_container = document.createElement('div');\n\t\t\t\touter_container.id = 'videoplayer_outer_container';\n\n\t\t\t\tvar container = document.createElement('div');\n\t\t\t\tcontainer.id = 'videoplayer_container';\n\n\t\t\t\tvar player = document.createElement('div');\n\t\t\t\tplayer.id = 'videoplayer';\n\n\t\t\t\tcontainer.appendChild(player);\n\t\t\t\touter_container.appendChild(container);\n\t\t\t\toverlay.appendChild(outer_container);\n\n\t\t\t\tplayer.appendChild(playerView);\n\t\t\t\tdocument.body.appendChild(overlay);\n\n\t\t\t\t// close when clicking on the overlay\n\t\t\t\toverlay.addEventListener('click', function(e) {\n\t\t\t\t\tif (e.target === this) {\n\t\t\t\t\t\tvideoViewer.hidePlayer();\n\t\t\t\t\t}\n\t\t\t\t});\n\n\t\t\t\tsetTimeout(() => { overlay.className = 'show'; }, 0);\n\t\t\t} else {\n\t\t\t\tvar wrapper = document.createElement('div');\n\t\t\t\twrapper.id = 'videoplayer_view';\n\t\t\t\twrapper.appendChild(playerView);\n\t\t\t\tvideoViewer.inline.appendChild(wrapper);\n\t\t\t}\n\t\t\t// initialize player\n\t\t\tvideojs(\"my_video_1\", {\n\t\t\t\tfill: true,\n\t\t\t}).ready(function () {\n\t\t\t\tvideoViewer.player = this;\n\t\t\t\tif (videoViewer.inline === null) {\n\t\t\t\t\t// append close button to video element\n\t\t\t\t\tvar closeButton = document.createElement('a');\n\t\t\t\t\tcloseButton.className = 'icon-view-close';\n\t\t\t\t\tcloseButton.id = 'box-close';\n\t\t\t\t\tcloseButton.href = '#';\n\t\t\t\t\tcloseButton.addEventListener('click', function () {\n\t\t\t\t\t\tvideoViewer.hidePlayer();\n\t\t\t\t\t});\n\t\t\t\t\tdocument.getElementById('my_video_1').appendChild(closeButton);\n\t\t\t\t}\n\t\t\t\t// autoplay\n\t\t\t\tif (document.getElementById('body-public') === null) {\n\t\t\t\t\tvideoViewer.player.play();\n\t\t\t\t}\n\t\t\t});\n\n\t\t},\n\t\thide: function () {\n\t\t\tvar overlay = document.getElementById('videoplayer_overlay');\n\t\t\toverlay.className = '';\n\t\t\tsetTimeout(() => {\n\t\t\t\toverlay.parentElement.removeChild(overlay);\n\t\t\t}, 500);\n\t\t}\n\t},\n\tmime: null,\n\tfile: null,\n\tlocation: null,\n\tplayer: null,\n\tinline: null,\n\tmimeTypes: [\n\t\t'video/mp4',\n\t\t'video/x-m4v',\n\t\t'video/webm',\n\t\t'video/x-flv',\n\t\t'video/ogg',\n\t\t'video/quicktime',\n\t\t'video/x-matroska'\n\t],\n\tmimeTypeAliasses: {\n\t\t'video/x-matroska': 'video/webm' // mkv support for Chrome. webm uses the same container format\n\t},\n\tonView: function (file, data) {\n\t\tvideoViewer.file = file;\n\t\tvideoViewer.dir = data.dir;\n\t\tvideoViewer.location = data.fileList.getDownloadUrl(file, videoViewer.dir);\n\t\tvideoViewer.mime = data.$file.attr('data-mime');\n\t\tif (videoViewer.mimeTypeAliasses.hasOwnProperty(videoViewer.mime)) {\n\t\t\tvideoViewer.mime = videoViewer.mimeTypeAliasses[videoViewer.mime];\n\t\t}\n\t\tvideoViewer.showPlayer();\n\t},\n\tonViewInline: function (element, file, mime) {\n\t\tvideoViewer.location = file;\n\t\tvideoViewer.mime = mime;\n\t\tif (videoViewer.mimeTypeAliasses.hasOwnProperty(videoViewer.mime)) {\n\t\t\tvideoViewer.mime = videoViewer.mimeTypeAliasses[videoViewer.mime];\n\t\t}\n\t\tvideoViewer.inline = element;\n\t\tvideoViewer.showPlayer();\n\t},\n\tshowPlayer: function () {\n\t\timport(/* webpackChunkName: \"videojs\" */ 'video.js').then((_videojs) => {\n\t\t\tvideojs = _videojs.default;\n\t\t\tPromise.all([\n\t\t\t\timport(/* webpackChunkName: \"videojs\" */ '../css/style.css'),\n\t\t\t\timport(/* webpackChunkName: \"videojs\" */'!style-loader!css-loader!video.js/dist/video-js.css')\n\t\t\t]).then(() => {\n\t\t\t\tvideoViewer.UI.show();\n\t\t\t});\n\t\t});\n\t},\n\thidePlayer: function () {\n\t\tif (videoViewer.player !== null && videoViewer.player !== false && videoViewer.inline === null) {\n\t\t\tvideoViewer.player.dispose();\n\t\t\tvideoViewer.player = false;\n\t\t\tvideoViewer.UI.hide();\n\t\t}\n\t},\n\tlog: function (message) {\n\t\tconsole.log(message);\n\t}\n};\n\ndocument.addEventListener('DOMContentLoaded', function () {\n\n\t// add event to ESC key\n\tdocument.addEventListener('keyup', function(e) {\n\t\tif ((e.key !== undefined && e.key === 'Escape') ||\n\t\t\t(e.keyCode !== undefined && e.keyCode === 27)) {\n\t\t\tvideoViewer.hidePlayer();\n\t\t}\n\t});\n\n\tif (typeof FileActions !== 'undefined') {\n\t\tfor (var i = 0; i < videoViewer.mimeTypes.length; ++i) {\n\t\t\tvar mime = videoViewer.mimeTypes[i];\n\t\t\tOCA.Files.fileActions.register(mime, 'View', OC.PERMISSION_READ, '', videoViewer.onView);\n\t\t\tOCA.Files.fileActions.setDefault(mime, 'View');\n\t\t\tif (mime === mimetype) {\n\t\t\t\tisSupportedMimetype = true;\n\t\t\t}\n\t\t}\n\t}\n\n\t// Public page magic\n\tif (document.getElementById('body-public') && document.getElementById('imgframe')) {\n\t\tvar mimetype = document.getElementById('mimetype').value;\n\t\tfor (var i = 0; i < videoViewer.mimeTypes.length; ++i) {\n\t\t\tif (videoViewer.mimeTypes[i] === mimetype) {\n\t\t\t\tvar videoUrl = window.location + '/download';\n\t\t\t\tvideoViewer.onViewInline(document.getElementById('imgframe'), videoUrl, mimetype);\n\t\t\t\tbreak;\n\t\t\t}\n\t\t}\n\t}\n\n});\n"],"sourceRoot":""} \ No newline at end of file
diff --git a/js/videojs.js b/js/videojs.js
index c2778a6..d038d1f 100644
--- a/js/videojs.js
+++ b/js/videojs.js
@@ -1,2 +1,2 @@
-(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1:function(n,t,o){var e=o(51);"string"==typeof e&&(e=[[n.i,e,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};o(16)(e,s);e.locals&&(n.exports=e.locals)},32:function(n,t){},51:function(n,t,o){(n.exports=o(15)(!1)).push([n.i,'#videoplayer_overlay video {\n\toutline: none;\n}\n\n#videoplayer_overlay {\n\tposition: fixed;\n\ttop: 0px;\n\tbottom: 0px;\n\tleft: 0px;\n\tright: 0px;\n\tbackground-color: #4c4c4c;\n\tbackground-color: rgba(0, 0, 0, .7);\n\tz-index: 3000;\n}\n\n#videoplayer_outer_container {\n\tposition: fixed;\n\ttop: 50%;\n\tleft: 50%;\n\twidth: 95%;\n\tmax-width: 854px;\n\ttransform: translate(-50%, -50%);\n}\n\n#videoplayer_container {\n\tposition: relative;\n\twidth: 95%;\n\tmax-width: 854px;\n\tmargin: 0 auto;\n\tcolor: #4d4d4d;\n\tbackground: #fff;\n\tbox-shadow: 0 0 20px #222;\n\tz-index: 3001;\n}\n\n#videoplayer_container:before {\n\tcontent: "";\n\tdisplay: block;\n\tpadding-top: 56.25%;\n}\n\n#videoplayer {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n}\n\n#box-close {\n\tposition: absolute;\n\ttop: 10px;\n\tright: 10px;\n\twidth: 30px;\n\theight: 30px;\n\topacity: .35;\n\tcursor: pointer;\n}\n\n#box-close:hover {\n\topacity: .75;\n}\n\n.vjs-sublime-skin.vjs-has-started.vjs-user-inactive.vjs-playing #box-close {\n\topacity: 0;\n\ttransition: opacity 1s cubic-bezier(.455,.03,.515,.955);\n}\n\n\n/* Video.js adjustments */\n\n.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline {\n\twidth: 10em\n}\n\n.video-js .vjs-controls-disabled .vjs-big-play-button {\n\tdisplay: none!important\n}\n\n.video-js .vjs-control {\n\twidth: 3em\n}\n\n.video-js .vjs-menu-button-inline:before {\n\twidth: 1.5em\n}\n\n.vjs-menu-button-inline .vjs-menu {\n\tleft: 3em\n}\n\n.vjs-paused.vjs-has-started.video-js .vjs-big-play-button,.video-js.vjs-ended .vjs-big-play-button,.video-js.vjs-paused .vjs-big-play-button {\n\tdisplay: block\n}\n\n.video-js .vjs-load-progress div,.vjs-seeking .vjs-big-play-button,.vjs-waiting .vjs-big-play-button {\n\tdisplay: none!important\n}\n\n.video-js .vjs-mouse-display:after,.video-js .vjs-play-progress:after {\n\tpadding: 0 .4em .3em\n}\n\n.video-js.vjs-ended .vjs-loading-spinner {\n\tdisplay: none;\n}\n\n.video-js.vjs-ended .vjs-big-play-button {\n\tdisplay: block !important;\n}\n\nvideo-js.vjs-ended .vjs-big-play-button,.video-js.vjs-paused .vjs-big-play-button,.vjs-paused.vjs-has-started.video-js .vjs-big-play-button {\n\tdisplay: block\n}\n\n.video-js .vjs-big-play-button {\n\ttop: 50%;\n\tleft: 50%;\n}\n\n.video-js.vjs-big-play-centered .vjs-big-play-button {\n\tbackground-color: rgba(0,0,0,0.35);\n\tfont-size: 3em;\n\tborder-radius: 50%;\n\theight: 2em !important;\n\tline-height: 2em !important;\n\tmargin-top: -1em !important;\n\tmargin-left: -1em !important;\n}\n\n.video-js:hover .vjs-big-play-button,.video-js .vjs-big-play-button:focus,.video-js .vjs-big-play-button:active {\n\tbackground-color: rgba(0,0,0,0.35)\n}\n\n.video-js .vjs-loading-spinner {\n\tborder-color: rgba(255,255,255,0.7)\n}\n\n.video-js .vjs-control-bar2 {\n\tbackground-color: transparent\n}\n\n.video-js .vjs-control-bar {\n\tbackground-color: rgba(0,0,0,0) !important;\n\tcolor: #ffffff;\n\tfont-size: 18px\n}\n\n.video-js .vjs-play-progress,.video-js .vjs-volume-level {\n\tbackground-color: #2483d5\n}\n\n.video-js .vjs-big-play-button {\n\theight: 2em !important;\n\twidth: 2em !important;\n\tline-height: 1.9em !important;\n\tmargin-top: -1em !important;\n\tmargin-left: -1em;\n\tborder-width: 3px\n}\n\n.video-js .vjs-icon-play:before, .video-js .vjs-big-play-button:before {\n\tfont-size: 50px;\n}\n\n.video-js .vjs-progress-holder {\n\tfont-size: 1.7em;\n\tborder-radius: 10px;\n}\n\n.video-js .vjs-progress-holder .vjs-play-progress, .video-js .vjs-progress-holder .vjs-load-progress, .video-js .vjs-progress-holder .vjs-load-progress div, .video-js .vjs-slider,.vjs-volume-level {\n\tborder-radius: 10px;\n}\n\n.video-js .vjs-load-progress {\n\tbackground: rgba(255,255,255,0.5);\n}\n\n.video-js .vjs-big-play-button {\n\theight: 2em !important;\n\twidth: 2em !important;\n\tline-height: 1.9em !important;\n\tmargin-top: -1em !important;\n\tmargin-left: -1em;\n\tborder-width:3px\n}\n.video-js .vjs-icon-play:before, .video-js .vjs-big-play-button:before {\n\tfont-size: 50px;\n}\n.video-js .vjs-progress-holder {\n\tfont-size: 1.7em;\n\tborder-radius: 10px;\n}\n.video-js .vjs-progress-holder .vjs-play-progress, .video-js .vjs-progress-holder .vjs-load-progress, .video-js .vjs-progress-holder .vjs-load-progress div, .video-js .vjs-slider,.vjs-volume-level {\n\tborder-radius: 10px;\n}\n.video-js .vjs-load-progress {\n\tbackground: rgba(255,255,255,0.5);\n}\n\n.video-js button:active {\n\tbackground: transparent !important;\n\tcolor: #fff !important;\n}\n\n/* hide error icon */\n.vjs-error .vjs-error-display::before {\n\tcontent: "" !important;\n}\n\n/* fix for fluid size of the player */\n#imgframe #videoplayer_view {\n\tdisplay: inline-block;\n}\n\n/* public sharing view styles */\n#imgframe .video-js .vjs-tech {\n\tposition: relative;\n\twidth: auto;\n\theight: auto;\n}\n\n/* fullscreen public videos see https://github.com/nextcloud/files_videoplayer/issues/77 */\n#imgframe .video-js.vjs-fullscreen .vjs-tech {\n\twidth:100%;\n\theight:100%;\n}\n\n#imgframe .video-js:not(.vjs-fullscreen),\n#imgframe .video-js:not(.vjs-fullscreen) .vjs-tech {\n\tmax-height: calc(100vh - 280px) !important;\n\tmin-width: 300px;\n\tmax-width: 100% !important;\n}\n',""])}}]);
+(window.webpackJsonp=window.webpackJsonp||[]).push([[2],{1:function(n,t,o){var e=o(51);"string"==typeof e&&(e=[[n.i,e,""]]);var s={hmr:!0,transform:void 0,insertInto:void 0};o(16)(e,s);e.locals&&(n.exports=e.locals)},32:function(n,t){},51:function(n,t,o){(n.exports=o(15)(!1)).push([n.i,'#videoplayer_overlay video {\n\toutline: none;\n}\n\n#videoplayer_overlay {\n\tposition: fixed;\n\ttop: 0px;\n\tbottom: 0px;\n\tleft: 0px;\n\tright: 0px;\n\tbackground-color: #4c4c4c;\n\tbackground-color: rgba(0, 0, 0, .7);\n\tz-index: 3000;\n\topacity: 0;\n\ttransition: opacity 250ms ease-in;\n}\n\n#videoplayer_overlay.show {\n\topacity: 1;\n}\n\n#videoplayer_outer_container {\n\tposition: fixed;\n\ttop: 50%;\n\tleft: 50%;\n\twidth: 95%;\n\tmax-width: 854px;\n\ttransform: translate(-50%, -50%);\n}\n\n#videoplayer_container {\n\tposition: relative;\n\twidth: 95%;\n\tmax-width: 854px;\n\tmargin: 0 auto;\n\tcolor: #4d4d4d;\n\tbackground: #fff;\n\tbox-shadow: 0 0 20px #222;\n\tz-index: 3001;\n}\n\n#videoplayer_container:before {\n\tcontent: "";\n\tdisplay: block;\n\tpadding-top: 56.25%;\n}\n\n#videoplayer {\n\tposition: absolute;\n\ttop: 0;\n\tright: 0;\n\tbottom: 0;\n\tleft: 0;\n}\n\n#box-close {\n\tposition: absolute;\n\ttop: 10px;\n\tright: 10px;\n\twidth: 30px;\n\theight: 30px;\n\topacity: .35;\n\tcursor: pointer;\n}\n\n#box-close:hover {\n\topacity: .75;\n}\n\n.vjs-sublime-skin.vjs-has-started.vjs-user-inactive.vjs-playing #box-close {\n\topacity: 0;\n\ttransition: opacity 1s cubic-bezier(.455,.03,.515,.955);\n}\n\n\n/* Video.js adjustments */\n\n.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline {\n\twidth: 10em\n}\n\n.video-js .vjs-controls-disabled .vjs-big-play-button {\n\tdisplay: none!important\n}\n\n.video-js .vjs-control {\n\twidth: 3em\n}\n\n.video-js .vjs-menu-button-inline:before {\n\twidth: 1.5em\n}\n\n.vjs-menu-button-inline .vjs-menu {\n\tleft: 3em\n}\n\n.vjs-paused.vjs-has-started.video-js .vjs-big-play-button,.video-js.vjs-ended .vjs-big-play-button,.video-js.vjs-paused .vjs-big-play-button {\n\tdisplay: block\n}\n\n.video-js .vjs-load-progress div,.vjs-seeking .vjs-big-play-button,.vjs-waiting .vjs-big-play-button {\n\tdisplay: none!important\n}\n\n.video-js .vjs-mouse-display:after,.video-js .vjs-play-progress:after {\n\tpadding: 0 .4em .3em\n}\n\n.video-js.vjs-ended .vjs-loading-spinner {\n\tdisplay: none;\n}\n\n.video-js.vjs-ended .vjs-big-play-button {\n\tdisplay: block !important;\n}\n\nvideo-js.vjs-ended .vjs-big-play-button,.video-js.vjs-paused .vjs-big-play-button,.vjs-paused.vjs-has-started.video-js .vjs-big-play-button {\n\tdisplay: block\n}\n\n.video-js .vjs-big-play-button {\n\ttop: 50%;\n\tleft: 50%;\n}\n\n.video-js.vjs-big-play-centered .vjs-big-play-button {\n\tbackground-color: rgba(0,0,0,0.35);\n\tfont-size: 3em;\n\tborder-radius: 50%;\n\theight: 2em !important;\n\tline-height: 2em !important;\n\tmargin-top: -1em !important;\n\tmargin-left: -1em !important;\n}\n\n.video-js:hover .vjs-big-play-button,.video-js .vjs-big-play-button:focus,.video-js .vjs-big-play-button:active {\n\tbackground-color: rgba(0,0,0,0.35)\n}\n\n.video-js .vjs-loading-spinner {\n\tborder-color: rgba(255,255,255,0.7)\n}\n\n.video-js .vjs-control-bar2 {\n\tbackground-color: transparent\n}\n\n.video-js .vjs-control-bar {\n\tbackground-color: rgba(0,0,0,0) !important;\n\tcolor: #ffffff;\n\tfont-size: 18px\n}\n\n.video-js .vjs-play-progress,.video-js .vjs-volume-level {\n\tbackground-color: #2483d5\n}\n\n.video-js .vjs-big-play-button {\n\theight: 2em !important;\n\twidth: 2em !important;\n\tline-height: 1.9em !important;\n\tmargin-top: -1em !important;\n\tmargin-left: -1em;\n\tborder-width: 3px\n}\n\n.video-js .vjs-icon-play:before, .video-js .vjs-big-play-button:before {\n\tfont-size: 50px;\n}\n\n.video-js .vjs-progress-holder {\n\tfont-size: 1.7em;\n\tborder-radius: 10px;\n}\n\n.video-js .vjs-progress-holder .vjs-play-progress, .video-js .vjs-progress-holder .vjs-load-progress, .video-js .vjs-progress-holder .vjs-load-progress div, .video-js .vjs-slider,.vjs-volume-level {\n\tborder-radius: 10px;\n}\n\n.video-js .vjs-load-progress {\n\tbackground: rgba(255,255,255,0.5);\n}\n\n.video-js .vjs-big-play-button {\n\theight: 2em !important;\n\twidth: 2em !important;\n\tline-height: 1.9em !important;\n\tmargin-top: -1em !important;\n\tmargin-left: -1em;\n\tborder-width:3px\n}\n.video-js .vjs-icon-play:before, .video-js .vjs-big-play-button:before {\n\tfont-size: 50px;\n}\n.video-js .vjs-progress-holder {\n\tfont-size: 1.7em;\n\tborder-radius: 10px;\n}\n.video-js .vjs-progress-holder .vjs-play-progress, .video-js .vjs-progress-holder .vjs-load-progress, .video-js .vjs-progress-holder .vjs-load-progress div, .video-js .vjs-slider,.vjs-volume-level {\n\tborder-radius: 10px;\n}\n.video-js .vjs-load-progress {\n\tbackground: rgba(255,255,255,0.5);\n}\n\n.video-js button:active {\n\tbackground: transparent !important;\n\tcolor: #fff !important;\n}\n\n/* hide error icon */\n.vjs-error .vjs-error-display::before {\n\tcontent: "" !important;\n}\n\n/* fix for fluid size of the player */\n#imgframe #videoplayer_view {\n\tdisplay: inline-block;\n}\n\n/* public sharing view styles */\n#imgframe .video-js .vjs-tech {\n\tposition: relative;\n\twidth: auto;\n\theight: auto;\n}\n\n/* fullscreen public videos see https://github.com/nextcloud/files_videoplayer/issues/77 */\n#imgframe .video-js.vjs-fullscreen .vjs-tech {\n\twidth:100%;\n\theight:100%;\n}\n\n#imgframe .video-js:not(.vjs-fullscreen),\n#imgframe .video-js:not(.vjs-fullscreen) .vjs-tech {\n\tmax-height: calc(100vh - 280px) !important;\n\tmin-width: 300px;\n\tmax-width: 100% !important;\n}\n',""])}}]);
//# sourceMappingURL=videojs.js.map \ No newline at end of file
diff --git a/js/videojs.js.map b/js/videojs.js.map
index bf8c170..9e3a898 100644
--- a/js/videojs.js.map
+++ b/js/videojs.js.map
@@ -1 +1 @@
-{"version":3,"sources":["webpack:///./css/style.css?e85f","webpack:///./css/style.css"],"names":["content","__webpack_require__","module","i","options","hmr","transform","insertInto","undefined","locals","exports","push"],"mappings":"2EACA,IAAAA,EAAcC,EAAQ,IAEtB,iBAAAD,MAAA,EAA4CE,EAAAC,EAASH,EAAA,MAOrD,IAAAI,EAAA,CAAeC,KAAA,EAEfC,eAPAA,EAQAC,gBAAAC,GAEaP,EAAQ,GAARA,CAAwDD,EAAAI,GAErEJ,EAAAS,SAAAP,EAAAQ,QAAAV,EAAAS,gDCjBAP,EAAAQ,QAA2BT,EAAQ,GAARA,EAAwD,IAEnFU,KAAA,CAAcT,EAAAC,EAAS,mvKAAqvK","file":"videojs.js","sourcesContent":["\nvar content = require(\"!!../node_modules/css-loader/dist/cjs.js!./style.css\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../node_modules/css-loader/dist/cjs.js!./style.css\", function() {\n\t\tvar newContent = require(\"!!../node_modules/css-loader/dist/cjs.js!./style.css\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","exports = module.exports = require(\"../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \"#videoplayer_overlay video {\\n\\toutline: none;\\n}\\n\\n#videoplayer_overlay {\\n\\tposition: fixed;\\n\\ttop: 0px;\\n\\tbottom: 0px;\\n\\tleft: 0px;\\n\\tright: 0px;\\n\\tbackground-color: #4c4c4c;\\n\\tbackground-color: rgba(0, 0, 0, .7);\\n\\tz-index: 3000;\\n}\\n\\n#videoplayer_outer_container {\\n\\tposition: fixed;\\n\\ttop: 50%;\\n\\tleft: 50%;\\n\\twidth: 95%;\\n\\tmax-width: 854px;\\n\\ttransform: translate(-50%, -50%);\\n}\\n\\n#videoplayer_container {\\n\\tposition: relative;\\n\\twidth: 95%;\\n\\tmax-width: 854px;\\n\\tmargin: 0 auto;\\n\\tcolor: #4d4d4d;\\n\\tbackground: #fff;\\n\\tbox-shadow: 0 0 20px #222;\\n\\tz-index: 3001;\\n}\\n\\n#videoplayer_container:before {\\n\\tcontent: \\\"\\\";\\n\\tdisplay: block;\\n\\tpadding-top: 56.25%;\\n}\\n\\n#videoplayer {\\n\\tposition: absolute;\\n\\ttop: 0;\\n\\tright: 0;\\n\\tbottom: 0;\\n\\tleft: 0;\\n}\\n\\n#box-close {\\n\\tposition: absolute;\\n\\ttop: 10px;\\n\\tright: 10px;\\n\\twidth: 30px;\\n\\theight: 30px;\\n\\topacity: .35;\\n\\tcursor: pointer;\\n}\\n\\n#box-close:hover {\\n\\topacity: .75;\\n}\\n\\n.vjs-sublime-skin.vjs-has-started.vjs-user-inactive.vjs-playing #box-close {\\n\\topacity: 0;\\n\\ttransition: opacity 1s cubic-bezier(.455,.03,.515,.955);\\n}\\n\\n\\n/* Video.js adjustments */\\n\\n.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline {\\n\\twidth: 10em\\n}\\n\\n.video-js .vjs-controls-disabled .vjs-big-play-button {\\n\\tdisplay: none!important\\n}\\n\\n.video-js .vjs-control {\\n\\twidth: 3em\\n}\\n\\n.video-js .vjs-menu-button-inline:before {\\n\\twidth: 1.5em\\n}\\n\\n.vjs-menu-button-inline .vjs-menu {\\n\\tleft: 3em\\n}\\n\\n.vjs-paused.vjs-has-started.video-js .vjs-big-play-button,.video-js.vjs-ended .vjs-big-play-button,.video-js.vjs-paused .vjs-big-play-button {\\n\\tdisplay: block\\n}\\n\\n.video-js .vjs-load-progress div,.vjs-seeking .vjs-big-play-button,.vjs-waiting .vjs-big-play-button {\\n\\tdisplay: none!important\\n}\\n\\n.video-js .vjs-mouse-display:after,.video-js .vjs-play-progress:after {\\n\\tpadding: 0 .4em .3em\\n}\\n\\n.video-js.vjs-ended .vjs-loading-spinner {\\n\\tdisplay: none;\\n}\\n\\n.video-js.vjs-ended .vjs-big-play-button {\\n\\tdisplay: block !important;\\n}\\n\\nvideo-js.vjs-ended .vjs-big-play-button,.video-js.vjs-paused .vjs-big-play-button,.vjs-paused.vjs-has-started.video-js .vjs-big-play-button {\\n\\tdisplay: block\\n}\\n\\n.video-js .vjs-big-play-button {\\n\\ttop: 50%;\\n\\tleft: 50%;\\n}\\n\\n.video-js.vjs-big-play-centered .vjs-big-play-button {\\n\\tbackground-color: rgba(0,0,0,0.35);\\n\\tfont-size: 3em;\\n\\tborder-radius: 50%;\\n\\theight: 2em !important;\\n\\tline-height: 2em !important;\\n\\tmargin-top: -1em !important;\\n\\tmargin-left: -1em !important;\\n}\\n\\n.video-js:hover .vjs-big-play-button,.video-js .vjs-big-play-button:focus,.video-js .vjs-big-play-button:active {\\n\\tbackground-color: rgba(0,0,0,0.35)\\n}\\n\\n.video-js .vjs-loading-spinner {\\n\\tborder-color: rgba(255,255,255,0.7)\\n}\\n\\n.video-js .vjs-control-bar2 {\\n\\tbackground-color: transparent\\n}\\n\\n.video-js .vjs-control-bar {\\n\\tbackground-color: rgba(0,0,0,0) !important;\\n\\tcolor: #ffffff;\\n\\tfont-size: 18px\\n}\\n\\n.video-js .vjs-play-progress,.video-js .vjs-volume-level {\\n\\tbackground-color: #2483d5\\n}\\n\\n.video-js .vjs-big-play-button {\\n\\theight: 2em !important;\\n\\twidth: 2em !important;\\n\\tline-height: 1.9em !important;\\n\\tmargin-top: -1em !important;\\n\\tmargin-left: -1em;\\n\\tborder-width: 3px\\n}\\n\\n.video-js .vjs-icon-play:before, .video-js .vjs-big-play-button:before {\\n\\tfont-size: 50px;\\n}\\n\\n.video-js .vjs-progress-holder {\\n\\tfont-size: 1.7em;\\n\\tborder-radius: 10px;\\n}\\n\\n.video-js .vjs-progress-holder .vjs-play-progress, .video-js .vjs-progress-holder .vjs-load-progress, .video-js .vjs-progress-holder .vjs-load-progress div, .video-js .vjs-slider,.vjs-volume-level {\\n\\tborder-radius: 10px;\\n}\\n\\n.video-js .vjs-load-progress {\\n\\tbackground: rgba(255,255,255,0.5);\\n}\\n\\n.video-js .vjs-big-play-button {\\n\\theight: 2em !important;\\n\\twidth: 2em !important;\\n\\tline-height: 1.9em !important;\\n\\tmargin-top: -1em !important;\\n\\tmargin-left: -1em;\\n\\tborder-width:3px\\n}\\n.video-js .vjs-icon-play:before, .video-js .vjs-big-play-button:before {\\n\\tfont-size: 50px;\\n}\\n.video-js .vjs-progress-holder {\\n\\tfont-size: 1.7em;\\n\\tborder-radius: 10px;\\n}\\n.video-js .vjs-progress-holder .vjs-play-progress, .video-js .vjs-progress-holder .vjs-load-progress, .video-js .vjs-progress-holder .vjs-load-progress div, .video-js .vjs-slider,.vjs-volume-level {\\n\\tborder-radius: 10px;\\n}\\n.video-js .vjs-load-progress {\\n\\tbackground: rgba(255,255,255,0.5);\\n}\\n\\n.video-js button:active {\\n\\tbackground: transparent !important;\\n\\tcolor: #fff !important;\\n}\\n\\n/* hide error icon */\\n.vjs-error .vjs-error-display::before {\\n\\tcontent: \\\"\\\" !important;\\n}\\n\\n/* fix for fluid size of the player */\\n#imgframe #videoplayer_view {\\n\\tdisplay: inline-block;\\n}\\n\\n/* public sharing view styles */\\n#imgframe .video-js .vjs-tech {\\n\\tposition: relative;\\n\\twidth: auto;\\n\\theight: auto;\\n}\\n\\n/* fullscreen public videos see https://github.com/nextcloud/files_videoplayer/issues/77 */\\n#imgframe .video-js.vjs-fullscreen .vjs-tech {\\n\\twidth:100%;\\n\\theight:100%;\\n}\\n\\n#imgframe .video-js:not(.vjs-fullscreen),\\n#imgframe .video-js:not(.vjs-fullscreen) .vjs-tech {\\n\\tmax-height: calc(100vh - 280px) !important;\\n\\tmin-width: 300px;\\n\\tmax-width: 100% !important;\\n}\\n\", \"\"]);\n\n"],"sourceRoot":""} \ No newline at end of file
+{"version":3,"sources":["webpack:///./css/style.css?e85f","webpack:///./css/style.css"],"names":["content","__webpack_require__","module","i","options","hmr","transform","insertInto","undefined","locals","exports","push"],"mappings":"2EACA,IAAAA,EAAcC,EAAQ,IAEtB,iBAAAD,MAAA,EAA4CE,EAAAC,EAASH,EAAA,MAOrD,IAAAI,EAAA,CAAeC,KAAA,EAEfC,eAPAA,EAQAC,gBAAAC,GAEaP,EAAQ,GAARA,CAAwDD,EAAAI,GAErEJ,EAAAS,SAAAP,EAAAQ,QAAAV,EAAAS,gDCjBAP,EAAAQ,QAA2BT,EAAQ,GAARA,EAAwD,IAEnFU,KAAA,CAAcT,EAAAC,EAAS,y1KAA21K","file":"videojs.js","sourcesContent":["\nvar content = require(\"!!../node_modules/css-loader/dist/cjs.js!./style.css\");\n\nif(typeof content === 'string') content = [[module.id, content, '']];\n\nvar transform;\nvar insertInto;\n\n\n\nvar options = {\"hmr\":true}\n\noptions.transform = transform\noptions.insertInto = undefined;\n\nvar update = require(\"!../node_modules/style-loader/lib/addStyles.js\")(content, options);\n\nif(content.locals) module.exports = content.locals;\n\nif(module.hot) {\n\tmodule.hot.accept(\"!!../node_modules/css-loader/dist/cjs.js!./style.css\", function() {\n\t\tvar newContent = require(\"!!../node_modules/css-loader/dist/cjs.js!./style.css\");\n\n\t\tif(typeof newContent === 'string') newContent = [[module.id, newContent, '']];\n\n\t\tvar locals = (function(a, b) {\n\t\t\tvar key, idx = 0;\n\n\t\t\tfor(key in a) {\n\t\t\t\tif(!b || a[key] !== b[key]) return false;\n\t\t\t\tidx++;\n\t\t\t}\n\n\t\t\tfor(key in b) idx--;\n\n\t\t\treturn idx === 0;\n\t\t}(content.locals, newContent.locals));\n\n\t\tif(!locals) throw new Error('Aborting CSS HMR due to changed css-modules locals.');\n\n\t\tupdate(newContent);\n\t});\n\n\tmodule.hot.dispose(function() { update(); });\n}","exports = module.exports = require(\"../node_modules/css-loader/dist/runtime/api.js\")(false);\n// Module\nexports.push([module.id, \"#videoplayer_overlay video {\\n\\toutline: none;\\n}\\n\\n#videoplayer_overlay {\\n\\tposition: fixed;\\n\\ttop: 0px;\\n\\tbottom: 0px;\\n\\tleft: 0px;\\n\\tright: 0px;\\n\\tbackground-color: #4c4c4c;\\n\\tbackground-color: rgba(0, 0, 0, .7);\\n\\tz-index: 3000;\\n\\topacity: 0;\\n\\ttransition: opacity 250ms ease-in;\\n}\\n\\n#videoplayer_overlay.show {\\n\\topacity: 1;\\n}\\n\\n#videoplayer_outer_container {\\n\\tposition: fixed;\\n\\ttop: 50%;\\n\\tleft: 50%;\\n\\twidth: 95%;\\n\\tmax-width: 854px;\\n\\ttransform: translate(-50%, -50%);\\n}\\n\\n#videoplayer_container {\\n\\tposition: relative;\\n\\twidth: 95%;\\n\\tmax-width: 854px;\\n\\tmargin: 0 auto;\\n\\tcolor: #4d4d4d;\\n\\tbackground: #fff;\\n\\tbox-shadow: 0 0 20px #222;\\n\\tz-index: 3001;\\n}\\n\\n#videoplayer_container:before {\\n\\tcontent: \\\"\\\";\\n\\tdisplay: block;\\n\\tpadding-top: 56.25%;\\n}\\n\\n#videoplayer {\\n\\tposition: absolute;\\n\\ttop: 0;\\n\\tright: 0;\\n\\tbottom: 0;\\n\\tleft: 0;\\n}\\n\\n#box-close {\\n\\tposition: absolute;\\n\\ttop: 10px;\\n\\tright: 10px;\\n\\twidth: 30px;\\n\\theight: 30px;\\n\\topacity: .35;\\n\\tcursor: pointer;\\n}\\n\\n#box-close:hover {\\n\\topacity: .75;\\n}\\n\\n.vjs-sublime-skin.vjs-has-started.vjs-user-inactive.vjs-playing #box-close {\\n\\topacity: 0;\\n\\ttransition: opacity 1s cubic-bezier(.455,.03,.515,.955);\\n}\\n\\n\\n/* Video.js adjustments */\\n\\n.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover,.video-js.vjs-no-flex .vjs-menu-button-inline {\\n\\twidth: 10em\\n}\\n\\n.video-js .vjs-controls-disabled .vjs-big-play-button {\\n\\tdisplay: none!important\\n}\\n\\n.video-js .vjs-control {\\n\\twidth: 3em\\n}\\n\\n.video-js .vjs-menu-button-inline:before {\\n\\twidth: 1.5em\\n}\\n\\n.vjs-menu-button-inline .vjs-menu {\\n\\tleft: 3em\\n}\\n\\n.vjs-paused.vjs-has-started.video-js .vjs-big-play-button,.video-js.vjs-ended .vjs-big-play-button,.video-js.vjs-paused .vjs-big-play-button {\\n\\tdisplay: block\\n}\\n\\n.video-js .vjs-load-progress div,.vjs-seeking .vjs-big-play-button,.vjs-waiting .vjs-big-play-button {\\n\\tdisplay: none!important\\n}\\n\\n.video-js .vjs-mouse-display:after,.video-js .vjs-play-progress:after {\\n\\tpadding: 0 .4em .3em\\n}\\n\\n.video-js.vjs-ended .vjs-loading-spinner {\\n\\tdisplay: none;\\n}\\n\\n.video-js.vjs-ended .vjs-big-play-button {\\n\\tdisplay: block !important;\\n}\\n\\nvideo-js.vjs-ended .vjs-big-play-button,.video-js.vjs-paused .vjs-big-play-button,.vjs-paused.vjs-has-started.video-js .vjs-big-play-button {\\n\\tdisplay: block\\n}\\n\\n.video-js .vjs-big-play-button {\\n\\ttop: 50%;\\n\\tleft: 50%;\\n}\\n\\n.video-js.vjs-big-play-centered .vjs-big-play-button {\\n\\tbackground-color: rgba(0,0,0,0.35);\\n\\tfont-size: 3em;\\n\\tborder-radius: 50%;\\n\\theight: 2em !important;\\n\\tline-height: 2em !important;\\n\\tmargin-top: -1em !important;\\n\\tmargin-left: -1em !important;\\n}\\n\\n.video-js:hover .vjs-big-play-button,.video-js .vjs-big-play-button:focus,.video-js .vjs-big-play-button:active {\\n\\tbackground-color: rgba(0,0,0,0.35)\\n}\\n\\n.video-js .vjs-loading-spinner {\\n\\tborder-color: rgba(255,255,255,0.7)\\n}\\n\\n.video-js .vjs-control-bar2 {\\n\\tbackground-color: transparent\\n}\\n\\n.video-js .vjs-control-bar {\\n\\tbackground-color: rgba(0,0,0,0) !important;\\n\\tcolor: #ffffff;\\n\\tfont-size: 18px\\n}\\n\\n.video-js .vjs-play-progress,.video-js .vjs-volume-level {\\n\\tbackground-color: #2483d5\\n}\\n\\n.video-js .vjs-big-play-button {\\n\\theight: 2em !important;\\n\\twidth: 2em !important;\\n\\tline-height: 1.9em !important;\\n\\tmargin-top: -1em !important;\\n\\tmargin-left: -1em;\\n\\tborder-width: 3px\\n}\\n\\n.video-js .vjs-icon-play:before, .video-js .vjs-big-play-button:before {\\n\\tfont-size: 50px;\\n}\\n\\n.video-js .vjs-progress-holder {\\n\\tfont-size: 1.7em;\\n\\tborder-radius: 10px;\\n}\\n\\n.video-js .vjs-progress-holder .vjs-play-progress, .video-js .vjs-progress-holder .vjs-load-progress, .video-js .vjs-progress-holder .vjs-load-progress div, .video-js .vjs-slider,.vjs-volume-level {\\n\\tborder-radius: 10px;\\n}\\n\\n.video-js .vjs-load-progress {\\n\\tbackground: rgba(255,255,255,0.5);\\n}\\n\\n.video-js .vjs-big-play-button {\\n\\theight: 2em !important;\\n\\twidth: 2em !important;\\n\\tline-height: 1.9em !important;\\n\\tmargin-top: -1em !important;\\n\\tmargin-left: -1em;\\n\\tborder-width:3px\\n}\\n.video-js .vjs-icon-play:before, .video-js .vjs-big-play-button:before {\\n\\tfont-size: 50px;\\n}\\n.video-js .vjs-progress-holder {\\n\\tfont-size: 1.7em;\\n\\tborder-radius: 10px;\\n}\\n.video-js .vjs-progress-holder .vjs-play-progress, .video-js .vjs-progress-holder .vjs-load-progress, .video-js .vjs-progress-holder .vjs-load-progress div, .video-js .vjs-slider,.vjs-volume-level {\\n\\tborder-radius: 10px;\\n}\\n.video-js .vjs-load-progress {\\n\\tbackground: rgba(255,255,255,0.5);\\n}\\n\\n.video-js button:active {\\n\\tbackground: transparent !important;\\n\\tcolor: #fff !important;\\n}\\n\\n/* hide error icon */\\n.vjs-error .vjs-error-display::before {\\n\\tcontent: \\\"\\\" !important;\\n}\\n\\n/* fix for fluid size of the player */\\n#imgframe #videoplayer_view {\\n\\tdisplay: inline-block;\\n}\\n\\n/* public sharing view styles */\\n#imgframe .video-js .vjs-tech {\\n\\tposition: relative;\\n\\twidth: auto;\\n\\theight: auto;\\n}\\n\\n/* fullscreen public videos see https://github.com/nextcloud/files_videoplayer/issues/77 */\\n#imgframe .video-js.vjs-fullscreen .vjs-tech {\\n\\twidth:100%;\\n\\theight:100%;\\n}\\n\\n#imgframe .video-js:not(.vjs-fullscreen),\\n#imgframe .video-js:not(.vjs-fullscreen) .vjs-tech {\\n\\tmax-height: calc(100vh - 280px) !important;\\n\\tmin-width: 300px;\\n\\tmax-width: 100% !important;\\n}\\n\", \"\"]);\n\n"],"sourceRoot":""} \ No newline at end of file