mediacms/static/lib/video-js/7.20.2/video.js

2 lines
574 KiB
JavaScript
Raw Normal View History

/*! For license information please see video.js.LICENSE.txt */
!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?module.exports=t():"function"==typeof define&&define.amd?define(t):(e="undefined"!=typeof globalThis?globalThis:e||self).videojs=t()}(this,(function(){"use strict";for(var e,t="7.20.2",i={},n=function(e,t){return i[e]=i[e]||[],t&&(i[e]=i[e].concat(t)),i[e]},r=function(e,t){var r=n(e).indexOf(t);return!(r<=-1||(i[e]=i[e].slice(),i[e].splice(r,1),0))},a={prefixed:!0},s=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],o=s[0],u=0;u<s.length;u++)if(s[u][1]in document){e=s[u];break}if(e){for(var l=0;l<e.length;l++)a[o[l]]=e[l];a.prefixed=e[0]!==o[0]}var c=[],d=function e(t){var i,n="info",r=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];i("log",n,t)};return i=function(e,t){return function(i,n,r){var a=t.levels[n],s=new RegExp("^("+a+")$");if("log"!==i&&r.unshift(i.toUpperCase()+":"),r.unshift(e+":"),c){c.push([].concat(r));var o=c.length-1e3;c.splice(0,o>0?o:0)}if(window.console){var u=window.console[i];u||"debug"!==i||(u=window.console.info||window.console.log),u&&a&&s.test(i)&&u[Array.isArray(r)?"apply":"call"](window.console,r)}}}(t,r),r.createLogger=function(i){return e(t+": "+i)},r.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:n},r.level=function(e){if("string"==typeof e){if(!r.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');n=e}return n},(r.history=function(){return c?[].concat(c):[]}).filter=function(e){return(c||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},r.history.clear=function(){c&&(c.length=0)},r.history.disable=function(){null!==c&&(c.length=0,c=null)},r.history.enable=function(){null===c&&(c=[])},r.error=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i("error",n,t)},r.warn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i("warn",n,t)},r.debug=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return i("debug",n,t)},r}("VIDEOJS"),h=d.createLogger,p="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function f(e,t){return e(t={exports:{}},t.exports),t.exports}var m=f((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var i=arguments[t];for(var n in i)Object.prototype.hasOwnProperty.call(i,n)&&(e[n]=i[n])}return e},t.apply(this,arguments)}e.exports=t})),g=Object.prototype.toString,v=function(e){return b(e)?Object.keys(e):[]};function y(e,t){v(e).forEach((function(i){return t(e[i],i)}))}function _(e){for(var t=arguments.length,i=new Array(t>1?t-1:0),n=1;n<t;n++)i[n-1]=arguments[n];return Object.assign?m.apply(void 0,[e].concat(i)):(i.forEach((function(t){t&&y(t,(function(t,i){e[i]=t}))})),e)}function b(e){return!!e&&"object"==typeof e}function T(e){return b(e)&&"[object Object]"===g.call(e)&&e.constructor===Object}function w(e,t){if(!e||!t)return"";if("function"==typeof window.getComputedStyle){var i;try{i=window.getComputedStyle(e)}catch(e){return""}return i?i.getPropertyValue(t)||i[t]:""}return""}var S,E,k,C=window.navigator&&window.navigator.userAgent||"",I=/AppleWebKit\/([\d.]+)/i.exec(C),x=I?parseFloat(I.pop()):null,A=/iPod/i.test(C),P=(S=C.match(/OS (\d+)_/i))&&S[1]?S[1]:null,L=/Android/i.test(C),D=function(){var e=C.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i