Select Git revision
video.novtt.js
Julian Rother authored and
Andreas Valder
committed
Plugins: * videojs-contrib-hls: Dropped for native hls/dash support * videojs-resolution-switcher: No longer maintained. Manually fixed to work with new version * videojs-markers: No longer maintained. Still works as expected. * videojs-hotkeys: Updated The (manually fixed) resolution switcher still looks a bit different. Also video.js dropped support for older Internet Explorer and their flash support.
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
video.novtt.js 1.66 MiB
/**
* @license
* Video.js 7.6.5 <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$1, document) {
window$1 = window$1 && window$1.hasOwnProperty('default') ? window$1['default'] : window$1;
document = document && document.hasOwnProperty('default') ? document['default'] : document;
var version = "7.6.5";
/**
* @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));
} // If there's no console then don't try to output messages, but they will
// still be stored in history.
if (!window$1.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$1.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.