1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-06 03:50:04 +02:00

packages update

This commit is contained in:
DanieL 2022-07-26 20:24:53 -03:00
parent 7f1acf5c5a
commit c21ec3f698
32 changed files with 2566 additions and 2046 deletions

View file

@ -1,6 +1,6 @@
/**
* @license
* Video.js 7.19.2 <http://videojs.com/>
* Video.js 7.20.1 <http://videojs.com/>
* Copyright Brightcove, Inc. <https://www.brightcove.com/>
* Available under Apache License Version 2.0
* <https://github.com/videojs/video.js/blob/main/LICENSE>
@ -16,7 +16,7 @@
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.videojs = factory());
}(this, (function () { 'use strict';
var version$5 = "7.19.2";
var version$5 = "7.20.1";
/**
* An Object that contains lifecycle hooks as keys which point to an array
@ -2148,7 +2148,8 @@
// Safari 6.0.3 warns you if you try to copy deprecated layerX/Y
// Chrome warns you if you try to copy deprecated keyboardEvent.keyLocation
// and webkitMovementX/Y
if (key !== 'layerX' && key !== 'layerY' && key !== 'keyLocation' && key !== 'webkitMovementX' && key !== 'webkitMovementY') {
// Lighthouse complains if Event.path is copied
if (key !== 'layerX' && key !== 'layerY' && key !== 'keyLocation' && key !== 'webkitMovementX' && key !== 'webkitMovementY' && key !== 'path') {
// Chrome 32+ warns if you try to copy deprecated returnValue, but
// we still want to if preventDefault isn't supported (IE8).
if (!(key === 'returnValue' && old.preventDefault)) {
@ -4060,12 +4061,19 @@
* Dispose of the `Component` and all child components.
*
* @fires Component#dispose
*
* @param {Object} options
* @param {Element} options.originalEl element with which to replace player element
*/
var _proto = Component.prototype;
_proto.dispose = function dispose() {
_proto.dispose = function dispose(options) {
if (options === void 0) {
options = {};
}
// Bail out if the component has already been disposed.
if (this.isDisposed_) {
return;
@ -4109,7 +4117,11 @@
if (this.el_) {
// Remove element from DOM
if (this.el_.parentNode) {
this.el_.parentNode.removeChild(this.el_);
if (options.restoreEl) {
this.el_.parentNode.replaceChild(options.restoreEl, this.el_);
} else {
this.el_.parentNode.removeChild(this.el_);
}
}
this.el_ = null;
@ -21585,7 +21597,8 @@
_proto.createEl = function createEl() {
return _Component.prototype.createEl.call(this, 'iframe', {
className: 'vjs-resize-manager',
tabIndex: -1
tabIndex: -1,
title: this.localize('No content')
}, {
'aria-hidden': 'true'
});
@ -22523,6 +22536,8 @@
_this.proxyWebkitFullscreen_();
_this.featuresVideoFrameCallback = _this.featuresVideoFrameCallback && _this.el_.tagName === 'VIDEO';
_this.triggerReady();
return _this;
@ -25151,9 +25166,11 @@
if (list && list.off) {
list.off();
}
}); // the actual .el_ is removed here
}); // the actual .el_ is removed here, or replaced if
_Component.prototype.dispose.call(this);
_Component.prototype.dispose.call(this, {
restoreEl: this.options_.restoreEl
});
}
/**
* Create the `Player`'s DOM element.
@ -27995,7 +28012,7 @@
this.setTimeout(function () {
this.error({
code: 4,
message: this.localize(this.options_.notSupportedMessage)
message: this.options_.notSupportedMessage
});
}, 0);
return;
@ -28033,7 +28050,7 @@
_this15.setTimeout(function () {
this.error({
code: 4,
message: this.localize(this.options_.notSupportedMessage)
message: this.options_.notSupportedMessage
});
}, 0); // we could not find an appropriate tech, but let's still notify the delegate that this is it
// this needs a better comment about why this is needed
@ -28203,9 +28220,10 @@
_proto.resetProgressBar_ = function resetProgressBar_() {
this.currentTime(0);
var _this$controlBar = this.controlBar,
durationDisplay = _this$controlBar.durationDisplay,
remainingTimeDisplay = _this$controlBar.remainingTimeDisplay;
var _ref3 = this.controlBar || {},
durationDisplay = _ref3.durationDisplay,
remainingTimeDisplay = _ref3.remainingTimeDisplay;
if (durationDisplay) {
durationDisplay.updateContent();
@ -30853,7 +30871,13 @@
log$1.warn('The element supplied is not included in the DOM');
}
options = options || {};
options = options || {}; // Store a copy of the el before modification, if it is to be restored in destroy()
// If div ingest, store the parent div
if (options.restoreEl === true) {
options.restoreEl = (el.parentNode && el.parentNode.hasAttribute('data-vjs-player') ? el.parentNode : el).cloneNode(true);
}
hooks('beforesetup').forEach(function (hookFunction) {
var opts = hookFunction(el, mergeOptions$3(options));