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
diff options
context:
space:
mode:
Diffstat (limited to 'js/main.js.map')
-rw-r--r--js/main.js.map1
1 files changed, 0 insertions, 1 deletions
diff --git a/js/main.js.map b/js/main.js.map
deleted file mode 100644
index b70bef7..0000000
--- a/js/main.js.map
+++ /dev/null
@@ -1 +0,0 @@
-{"version":3,"sources":["webpack:///webpack/bootstrap","webpack:///./node_modules/escape-html/index.js","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","matchHtmlRegExp","string","escape","str","match","exec","html","index","lastIndex","charCodeAt","substring","__webpack_exports__","escape_html__WEBPACK_IMPORTED_MODULE_0__","escape_html__WEBPACK_IMPORTED_MODULE_0___default","__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","OCA","Files","fileActions","Viewer","register","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,gBAAkBhH,SAASgH,eAAe,YACrE,KAAIgC,EAAWhJ,SAASgH,eAAe,YAAYxE,MACnD,IAASnE,EAAI,EAAGA,EAAI2G,EAAYsC,UAAU/I,SAAUF,EACnD,GAAI2G,EAAYsC,UAAUjJ,KAAO2K,EAAU,CAC1C,IAAIE,EAAW3F,OAAO8B,SAAS0B,KAAKoC,MAAM,KAAK,GAAK,YACpDnE,EAAYgD,aAAahI,SAASgH,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 = 1);\n","/*!\n * escape-html\n * Copyright(c) 2012-2013 TJ Holowaychuk\n * Copyright(c) 2015 Andreas Lubbe\n * Copyright(c) 2015 Tiancheng \"Timothy\" Gu\n * MIT Licensed\n */\n\n'use strict';\n\n/**\n * Module variables.\n * @private\n */\n\nvar matchHtmlRegExp = /[\"'&<>]/;\n\n/**\n * Module exports.\n * @public\n */\n\nmodule.exports = escapeHtml;\n\n/**\n * Escape special characters in the given string of html.\n *\n * @param {string} string The string to escape for inserting into HTML\n * @return {string}\n * @public\n */\n\nfunction escapeHtml(string) {\n var str = '' + string;\n var match = matchHtmlRegExp.exec(str);\n\n if (!match) {\n return str;\n }\n\n var escape;\n var html = '';\n var index = 0;\n var lastIndex = 0;\n\n for (index = match.index; index < str.length; index++) {\n switch (str.charCodeAt(index)) {\n case 34: // \"\n escape = '&quot;';\n break;\n case 38: // &\n escape = '&amp;';\n break;\n case 39: // '\n escape = '&#39;';\n break;\n case 60: // <\n escape = '&lt;';\n break;\n case 62: // >\n escape = '&gt;';\n break;\n default:\n continue;\n }\n\n if (lastIndex !== index) {\n html += str.substring(lastIndex, index);\n }\n\n lastIndex = index + 1;\n html += escape;\n }\n\n return lastIndex !== index\n ? html + str.substring(lastIndex, index)\n : html;\n}\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\nimport escapeHTML from 'escape-html'\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 (OCA && OCA.Files && OCA.Files.fileActions && !OCA.Viewer) {\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.href.split('?')[0] + '/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