mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 10:19:24 +02:00
packages update
This commit is contained in:
parent
7f1acf5c5a
commit
c21ec3f698
32 changed files with 2566 additions and 2046 deletions
52
node_modules/video.js/core.es.js
generated
vendored
52
node_modules/video.js/core.es.js
generated
vendored
|
@ -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>
|
||||
|
@ -22,7 +22,7 @@ import vtt from 'videojs-vtt.js';
|
|||
import _construct from '@babel/runtime/helpers/construct';
|
||||
import _inherits from '@babel/runtime/helpers/inherits';
|
||||
|
||||
var version = "7.19.2";
|
||||
var version = "7.20.1";
|
||||
|
||||
/**
|
||||
* An Object that contains lifecycle hooks as keys which point to an array
|
||||
|
@ -2126,7 +2126,8 @@ function fixEvent(event) {
|
|||
// 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)) {
|
||||
|
@ -3843,12 +3844,19 @@ var Component = /*#__PURE__*/function () {
|
|||
* 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;
|
||||
|
@ -3892,7 +3900,11 @@ var Component = /*#__PURE__*/function () {
|
|||
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;
|
||||
|
@ -19084,7 +19096,8 @@ var ResizeManager = /*#__PURE__*/function (_Component) {
|
|||
_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'
|
||||
});
|
||||
|
@ -20022,6 +20035,8 @@ var Html5 = /*#__PURE__*/function (_Tech) {
|
|||
|
||||
_this.proxyWebkitFullscreen_();
|
||||
|
||||
_this.featuresVideoFrameCallback = _this.featuresVideoFrameCallback && _this.el_.tagName === 'VIDEO';
|
||||
|
||||
_this.triggerReady();
|
||||
|
||||
return _this;
|
||||
|
@ -22650,9 +22665,11 @@ var Player = /*#__PURE__*/function (_Component) {
|
|||
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.
|
||||
|
@ -25494,7 +25511,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|||
this.setTimeout(function () {
|
||||
this.error({
|
||||
code: 4,
|
||||
message: this.localize(this.options_.notSupportedMessage)
|
||||
message: this.options_.notSupportedMessage
|
||||
});
|
||||
}, 0);
|
||||
return;
|
||||
|
@ -25532,7 +25549,7 @@ var Player = /*#__PURE__*/function (_Component) {
|
|||
_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
|
||||
|
@ -25702,9 +25719,10 @@ var Player = /*#__PURE__*/function (_Component) {
|
|||
|
||||
_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();
|
||||
|
@ -28286,7 +28304,13 @@ function videojs(id, options, ready) {
|
|||
log.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(options));
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue