/**
* @license
* Video.js 7.8.4 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/master/LICENSE>
*
* Includes vtt.js <https://github.com/mozilla/vtt.js>
* Available under Apache License Version 2.0
* <https://github.com/mozilla/vtt.js/blob/master/LICENSE>
*/
(function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory(require('global/window'), require('global/document')) :
typeof define === 'function' && define.amd ? define(['global/window', 'global/document'], factory) :
(global = global || self, global.videojs = factory(global.window, global.document));
}(this, (function (window$3, document) { 'use strict';
window$3 = window$3 && Object.prototype.hasOwnProperty.call(window$3, 'default') ? window$3['default'] : window$3;
document = document && Object.prototype.hasOwnProperty.call(document, 'default') ? document['default'] : document;
var version = "7.8.4";
/**
* @file create-logger.js
* @module create-logger
*/
var history = [];
/**
* Log messages to the console and history based on the type of message
*
* @private
* @param {string} type
* The name of the console method to use.
*
* @param {Array} args
* The arguments to be passed to the matching console method.
*/
var LogByTypeFactory = function LogByTypeFactory(name, log) {
return function (type, level, args) {
var lvl = log.levels[level];
var lvlRegExp = new RegExp("^(" + lvl + ")$");
if (type !== 'log') {
// Add the type to the front of the message when it's not "log".
args.unshift(type.toUpperCase() + ':');
} // Add console prefix after adding to history.
args.unshift(name + ':'); // Add a clone of the args at this point to history.
if (history) {
history.push([].concat(args)); // only store 1000 history entries
var splice = history.length - 1000;
history.splice(0, splice > 0 ? splice : 0);
} // If there's no console then don't try to output messages, but they will
// still be stored in history.
if (!window$3.console) {
return;
} // Was setting these once outside of this function, but containing them
// in the function makes it easier to test cases where console doesn't exist
// when the module is executed.
var fn = window$3.console[type];
if (!fn && type === 'debug') {
// Certain browsers don't have support for console.debug. For those, we
// should default to the closest comparable log.
fn = window$3.console.info || window$3.console.log;
} // Bail out if there's no console or if this type is not allowed by the
// current logging level.
if (!fn || !lvl || !lvlRegExp.test(type)) {
return;
}
fn[Array.isArray(args) ? 'apply' : 'call'](window$3.console, args);
};
};
function createLogger(name) {
// This is the private tracking variable for logging level.
var level = 'info'; // the curried logByType bound to the specific log and history
var logByType;
/**
* Logs plain debug messages. Similar to `console.log`.
*
* Due to [limitations](https://github.com/jsdoc3/jsdoc/issues/955#issuecomment-313829149)
* of our JSDoc template, we cannot properly document this as both a function
* and a namespace, so its function signature is documented here.
*
* #### Arguments
* ##### *args
* Mixed[]
*
* Any combination of values that could be passed to `console.log()`.
*
* #### Return Value
*
* `undefined`
*
* @namespace
* @param {Mixed[]} args
* One or more messages or objects that should be logged.
*/
var log = function log() {
for (var _len = arguments.length, args = new Array(_len), _key = 0; _key < _len; _key++) {
args[_key] = arguments[_key];
}
logByType('log', level, args);
}; // This is the logByType helper that the logging methods below use
logByType = LogByTypeFactory(name, log);
/**
* Create a new sublogger which chains the old name to the new name.
*
* For example, doing `videojs.log.createLogger('player')` and then using that logger will log the following:
* ```js
* mylogger('foo');
* // > VIDEOJS: player: foo
* ```
*
* @param {string} name
* The name to add call the new logger
* @return {Object}
*/
log.createLogger = function (subname) {
return createLogger(name + ': ' + subname);
};
/**
* Enumeration of available logging levels, where the keys are the level names
* and the values are `|`-separated strings containing logging methods allowed
* in that logging level. These strings are used to create a regular expression
* matching the function name being called.
*
* Levels provided by Video.js are:
*
* - `off`: Matches no calls. Any value that can be cast to `false` will have
* this effect. The most restrictive.
* - `all`: Matches only Video.js-provided functions (`debug`, `log`,
* `log.warn`, and `log.error`).
* - `debug`: Matches `log.debug`, `log`, `log.warn`, and `log.error` calls.
* - `info` (default): Matches `log`, `log.warn`, and `log.error` calls.
* - `warn`: Matches `log.warn` and `log.error` calls.
* - `error`: Matches only `log.error` calls.
*
* @type {Object}
*/
log.levels = {
all: 'debug|log|warn|error',
off: '',
debug: 'debug|log|warn|error',
info: 'log|warn|error',
warn: 'warn|error',
error: 'error',
DEFAULT: level
};
/**
* Get or set the current logging level.
*
* If a string matching a key from {@link module:log.levels} is provided, acts
* as a setter.
*
* @param {string} [lvl]
* Pass a valid level to set a new logging level.
*
* @return {string}
* The current logging level.
*/
log.level = function (lvl) {
if (typeof lvl === 'string') {
if (!log.levels.hasOwnProperty(lvl)) {
throw new Error("\"" + lvl + "\" in not a valid log level");
}
level = lvl;
}
return level;
};
/**
* Returns an array containing everything that has been logged to the history.
*
* This array is a shallow clone of the internal history record. However, its
* contents are _not_ cloned; so, mutating objects inside this array will
* mutate them in history.
*
* @return {Array}
*/
log.history = function () {
return history ? [].concat(history) : [];
};
/**
* Allows you to filter the history by the given logger name
*
* @param {string} fname
* The name to filter by
*
* @return {Array}
* The filtered list to return
*/
log.history.filter = function (fname) {
return (history || []).filter(function (historyItem) {
// if the first item in each historyItem includes `fname`, then it's a match
return new RegExp(".*" + fname + ".*").test(historyItem[0]);
});
};
/**
* Clears the internal history tracking, but does not prevent further history
* tracking.
*/
log.history.clear = function () {
if (history) {
history.length = 0;
}
};
/**
* Disable history tracking if it is currently enabled.
*/
log.history.disable = function () {
if (history !== null) {
history.length = 0;
history = null;
}
};
/**
* Enable history tracking if it is currently disabled.
*/
log.history.enable = function () {
if (history === null) {
history = [];
}
没有合适的资源?快使用搜索试试~ 我知道了~
温馨提示
java项目之羽毛球馆管理系统源码(ssm+mysql+文档+lw) 系统源码包含ssm后端+前端+mysql数据库完整项目代码,能正常运行。 一、主界面:1、场地信息维护模块2、场地预约模块3、预约申请审核模块4、场地评价模块5、场地实时状态管理模块 二、场地信息维护模块:1.发布场地信息:营业时间、价格、展示图片 2.修改场地信息 3.删除场地信息 三、场地预约模块:1.预约场地 2.修改预约 3.删除预约 四、预约申请审核模块:1.管理员审核预约请求 2.根据审核结果实时显示预约情况 五、场地评价模块:1.消费之后可以提交评价 2.修改评价3.删除评价 六、场地实时状态管理模块:1.更新场地预约情况 2.更新场地实时使用情况
资源推荐
资源详情
资源评论
收起资源包目录
java项目之羽毛球馆管理系统源码(ssm+mysql+文档+lw).zip (3969个子文件)
.babelrc 104B
.babelrc 104B
changelog 496B
changelog 496B
Info.class 18KB
Info.class 18KB
db.class 13KB
db.class 13KB
DataFactory.class 11KB
DataFactory.class 11KB
RecordsController.class 10KB
RecordsController.class 10KB
VeDate.class 9KB
VeDate.class 9KB
ResourcesController.class 8KB
ResourcesController.class 8KB
UserController.class 8KB
UserController.class 8KB
AdminUsersController.class 7KB
AdminUsersController.class 7KB
BallParksController.class 7KB
BallParksController.class 7KB
UsersController.class 7KB
UsersController.class 7KB
NewsController.class 7KB
NewsController.class 7KB
Model.class 5KB
Model.class 5KB
HomeDataController.class 5KB
HomeDataController.class 5KB
AdminSetController.class 5KB
AdminSetController.class 5KB
UserLoginController.class 5KB
UserLoginController.class 5KB
RecordController.class 5KB
RecordController.class 5KB
Wechat.class 4KB
Wechat.class 4KB
CommonListServerImpi.class 4KB
CommonListServerImpi.class 4KB
LoginController.class 4KB
LoginController.class 4KB
ViewInterceptor.class 4KB
ViewInterceptor.class 4KB
StrUtil.class 4KB
StrUtil.class 4KB
NewController.class 3KB
NewController.class 3KB
UploadController.class 3KB
UploadController.class 3KB
SchoolController.class 3KB
SchoolController.class 3KB
LevelController.class 3KB
LevelController.class 3KB
AdminLoginInterceptor.class 2KB
AdminLoginInterceptor.class 2KB
HomeController.class 2KB
HomeController.class 2KB
CommonInterceptor.class 2KB
CommonInterceptor.class 2KB
UserLoginInterceptor.class 2KB
UserLoginInterceptor.class 2KB
IndexController.class 2KB
IndexController.class 2KB
SetChar.class 2KB
SetChar.class 2KB
Md5.class 2KB
Md5.class 2KB
HomeSetController.class 2KB
HomeSetController.class 2KB
Record.class 2KB
Record.class 2KB
ModelField.class 2KB
ModelField.class 2KB
User.class 2KB
User.class 2KB
Field.class 2KB
Field.class 2KB
SelectDataFactory.class 2KB
SelectDataFactory.class 2KB
AdminUser.class 2KB
AdminUser.class 2KB
Resource.class 1KB
Resource.class 1KB
BallPark.class 1KB
BallPark.class 1KB
SettingServerImpi.class 1KB
SettingServerImpi.class 1KB
Menu.class 1KB
Menu.class 1KB
RelationField.class 1KB
RelationField.class 1KB
FieldValue.class 1KB
FieldValue.class 1KB
PageBean.class 1KB
PageBean.class 1KB
PageInfo.class 1KB
PageInfo.class 1KB
testFilter.class 1KB
testFilter.class 1KB
共 3969 条
- 1
- 2
- 3
- 4
- 5
- 6
- 40
资源评论
- 紫舞2023-12-30资源内容详实,描述详尽,解决了我的问题,受益匪浅,学到了。
- pkokocl2023-10-23资源内容详尽,对我有使用价值,谢谢资源主的分享。
- m0_688086372023-10-01资源很实用,对我启发很大,有很好的参考价值,内容详细。
风月歌
- 粉丝: 1646
- 资源: 3797
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
最新资源
- (源码)基于Spring Boot框架的报表管理系统.zip
- (源码)基于树莓派和TensorFlow Lite的智能厨具环境监测系统.zip
- (源码)基于OpenCV和Arduino的面部追踪系统.zip
- (源码)基于C++和ZeroMQ的分布式系统中间件.zip
- (源码)基于SSM框架的学生信息管理系统.zip
- (源码)基于PyTorch框架的智能视频分析系统.zip
- (源码)基于STM32F1的Sybertooth电机驱动系统.zip
- (源码)基于PxMATRIX库的嵌入式系统显示与配置管理.zip
- (源码)基于虚幻引擎的舞蹈艺术节目包装系统.zip
- (源码)基于Dubbo和Redis的用户中台系统.zip
资源上传下载、课程学习等过程中有任何疑问或建议,欢迎提出宝贵意见哦~我们会及时处理!
点击此处反馈
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功