mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Update node modules
This commit is contained in:
parent
52a013772f
commit
09d8558456
858 changed files with 5466 additions and 544833 deletions
56
node_modules/@videojs/http-streaming/dist/videojs-http-streaming.js
generated
vendored
56
node_modules/@videojs/http-streaming/dist/videojs-http-streaming.js
generated
vendored
|
@ -1,4 +1,4 @@
|
|||
/*! @name @videojs/http-streaming @version 3.13.1 @license Apache-2.0 */
|
||||
/*! @name @videojs/http-streaming @version 3.13.2 @license Apache-2.0 */
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('video.js'), require('@xmldom/xmldom')) :
|
||||
typeof define === 'function' && define.amd ? define(['exports', 'video.js', '@xmldom/xmldom'], factory) :
|
||||
|
@ -23278,6 +23278,36 @@
|
|||
|
||||
return false;
|
||||
};
|
||||
const shouldFixBadTimelineChanges = timelineChangeController => {
|
||||
if (!timelineChangeController) {
|
||||
return false;
|
||||
}
|
||||
|
||||
const pendingAudioTimelineChange = timelineChangeController.pendingTimelineChange({
|
||||
type: 'audio'
|
||||
});
|
||||
const pendingMainTimelineChange = timelineChangeController.pendingTimelineChange({
|
||||
type: 'main'
|
||||
});
|
||||
const hasPendingTimelineChanges = pendingAudioTimelineChange && pendingMainTimelineChange;
|
||||
const differentPendingChanges = hasPendingTimelineChanges && pendingAudioTimelineChange.to !== pendingMainTimelineChange.to;
|
||||
const isNotInitialPendingTimelineChange = hasPendingTimelineChanges && pendingAudioTimelineChange.from !== -1 && pendingMainTimelineChange.from !== -1;
|
||||
|
||||
if (isNotInitialPendingTimelineChange && differentPendingChanges) {
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
};
|
||||
const fixBadTimelineChange = segmentLoader => {
|
||||
if (!segmentLoader) {
|
||||
return;
|
||||
}
|
||||
|
||||
segmentLoader.pause();
|
||||
segmentLoader.resetEverything();
|
||||
segmentLoader.load();
|
||||
};
|
||||
const mediaDuration = timingInfos => {
|
||||
let maxDuration = 0;
|
||||
['video', 'audio'].forEach(function (type) {
|
||||
|
@ -24966,6 +24996,10 @@ Fetch At Buffer: ${this.fetchAtBuffer_}
|
|||
loaderType: this.loaderType_,
|
||||
audioDisabled: this.audioDisabled_
|
||||
})) {
|
||||
if (shouldFixBadTimelineChanges(this.timelineChangeController_)) {
|
||||
fixBadTimelineChange(this);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -25017,7 +25051,8 @@ Fetch At Buffer: ${this.fetchAtBuffer_}
|
|||
|
||||
if (hasAudio && !this.audioDisabled_ && !isMuxed && !segmentInfo.audioTimingInfo) {
|
||||
return false;
|
||||
}
|
||||
} // we need to allow an append here even if we're moving to different timelines.
|
||||
|
||||
|
||||
if (shouldWaitForTimelineChange({
|
||||
timelineChangeController: this.timelineChangeController_,
|
||||
|
@ -25026,6 +25061,10 @@ Fetch At Buffer: ${this.fetchAtBuffer_}
|
|||
loaderType: this.loaderType_,
|
||||
audioDisabled: this.audioDisabled_
|
||||
})) {
|
||||
if (shouldFixBadTimelineChanges(this.timelineChangeController_)) {
|
||||
fixBadTimelineChange(this);
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
|
@ -27087,7 +27126,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|||
|
||||
videoTimestampOffset(offset) {
|
||||
if (typeof offset !== 'undefined' && this.videoBuffer && // no point in updating if it's the same
|
||||
this.videoTimestampOffset !== offset) {
|
||||
this.videoTimestampOffset_ !== offset) {
|
||||
pushQueue({
|
||||
type: 'video',
|
||||
sourceUpdater: this,
|
||||
|
@ -31866,16 +31905,11 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|||
}
|
||||
|
||||
runFastQualitySwitch_() {
|
||||
this.waitingForFastQualityPlaylistReceived_ = false; // Delete all buffered data to allow an immediate quality switch, then seek to give
|
||||
// the browser a kick to remove any cached frames from the previous rendtion (.04 seconds
|
||||
// ahead was roughly the minimum that will accomplish this across a variety of content
|
||||
// in IE and Edge, but seeking in place is sufficient on all other browsers)
|
||||
// Edge/IE bug: https://developer.microsoft.com/en-us/microsoft-edge/platform/issues/14600375/
|
||||
// Chrome bug: https://bugs.chromium.org/p/chromium/issues/detail?id=651904
|
||||
this.waitingForFastQualityPlaylistReceived_ = false; // Delete all buffered data to allow an immediate quality switch.
|
||||
|
||||
this.mainSegmentLoader_.pause();
|
||||
this.mainSegmentLoader_.resetEverything(() => {
|
||||
this.tech_.setCurrentTime(this.tech_.currentTime());
|
||||
this.mainSegmentLoader_.load();
|
||||
}); // don't need to reset audio as it is reset when media changes
|
||||
}
|
||||
/**
|
||||
|
@ -34200,7 +34234,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|||
initPlugin(this, options);
|
||||
};
|
||||
|
||||
var version$4 = "3.13.1";
|
||||
var version$4 = "3.13.2";
|
||||
|
||||
var version$3 = "7.0.3";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue