mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 02:09:22 +02:00
Update node modules
This commit is contained in:
parent
d429e6f7d8
commit
c05a371397
1993 changed files with 9729 additions and 44041 deletions
70
node_modules/@videojs/http-streaming/dist/videojs-http-streaming.cjs.js
generated
vendored
70
node_modules/@videojs/http-streaming/dist/videojs-http-streaming.cjs.js
generated
vendored
|
@ -1,4 +1,4 @@
|
|||
/*! @name @videojs/http-streaming @version 3.13.3 @license Apache-2.0 */
|
||||
/*! @name @videojs/http-streaming @version 3.14.2 @license Apache-2.0 */
|
||||
'use strict';
|
||||
|
||||
Object.defineProperty(exports, '__esModule', { value: true });
|
||||
|
@ -3856,7 +3856,7 @@ const parseMainXml = ({
|
|||
|
||||
const removeOldMediaGroupLabels = (update, newMain) => {
|
||||
forEachMediaGroup(update, (properties, type, group, label) => {
|
||||
if (!(label in newMain.mediaGroups[type][group])) {
|
||||
if (!newMain.mediaGroups[type][group] || !(label in newMain.mediaGroups[type][group])) {
|
||||
delete update.mediaGroups[type][group][label];
|
||||
}
|
||||
});
|
||||
|
@ -17339,8 +17339,7 @@ const checkAndFixTimelines = segmentLoader => {
|
|||
});
|
||||
|
||||
if (waitingForTimelineChange && shouldFixBadTimelineChanges(segmentLoader.timelineChangeController_)) {
|
||||
// Audio being behind should only happen on DASH sources.
|
||||
if (segmentLoader.sourceType_ === 'dash' && isAudioTimelineBehind(segmentLoader)) {
|
||||
if (isAudioTimelineBehind(segmentLoader)) {
|
||||
segmentLoader.timelineChangeController_.trigger('audioTimelineBehind');
|
||||
return;
|
||||
}
|
||||
|
@ -21731,7 +21730,7 @@ class VTTSegmentLoader extends SegmentLoader {
|
|||
const diff = mpegTsInSeconds - LOCAL + mappingObj.mapping;
|
||||
segmentInfo.cues.forEach(cue => {
|
||||
const duration = cue.endTime - cue.startTime;
|
||||
const startTime = MPEGTS === 0 ? cue.startTime + diff : this.handleRollover_(cue.startTime + diff, mappingObj.time);
|
||||
const startTime = this.handleRollover_(cue.startTime + diff, mappingObj.time);
|
||||
cue.startTime = Math.max(startTime, 0);
|
||||
cue.endTime = Math.max(startTime + duration, 0);
|
||||
});
|
||||
|
@ -23020,7 +23019,7 @@ const workerCode = transform(getWorkerString(function () {
|
|||
function unpad(padded) {
|
||||
return padded.subarray(0, padded.byteLength - padded[padded.byteLength - 1]);
|
||||
}
|
||||
/*! @name aes-decrypter @version 4.0.1 @license Apache-2.0 */
|
||||
/*! @name aes-decrypter @version 4.0.2 @license Apache-2.0 */
|
||||
|
||||
/**
|
||||
* @file aes.js
|
||||
|
@ -25096,7 +25095,8 @@ class PlaylistController extends videojs__default["default"].EventTarget {
|
|||
cacheEncryptionKeys,
|
||||
bufferBasedABR,
|
||||
leastPixelDiffSelector,
|
||||
captionServices
|
||||
captionServices,
|
||||
experimentalUseMMS
|
||||
} = options;
|
||||
|
||||
if (!src) {
|
||||
|
@ -25136,7 +25136,16 @@ class PlaylistController extends videojs__default["default"].EventTarget {
|
|||
};
|
||||
this.on('error', this.pauseLoading);
|
||||
this.mediaTypes_ = createMediaTypes();
|
||||
this.mediaSource = new window__default["default"].MediaSource();
|
||||
|
||||
if (experimentalUseMMS && window__default["default"].ManagedMediaSource) {
|
||||
// Airplay source not yet implemented. Remote playback must be disabled.
|
||||
this.tech_.el_.disableRemotePlayback = true;
|
||||
this.mediaSource = new window__default["default"].ManagedMediaSource();
|
||||
videojs__default["default"].log('Using ManagedMediaSource');
|
||||
} else if (window__default["default"].MediaSource) {
|
||||
this.mediaSource = new window__default["default"].MediaSource();
|
||||
}
|
||||
|
||||
this.handleDurationChange_ = this.handleDurationChange_.bind(this);
|
||||
this.handleSourceOpen_ = this.handleSourceOpen_.bind(this);
|
||||
this.handleSourceEnded_ = this.handleSourceEnded_.bind(this);
|
||||
|
@ -25842,28 +25851,25 @@ class PlaylistController extends videojs__default["default"].EventTarget {
|
|||
this.mainSegmentLoader_.on('ended', () => {
|
||||
this.logger_('main segment loader ended');
|
||||
this.onEndOfStream();
|
||||
}); // In DASH, there is the possibility of the video segment and the audio segment
|
||||
}); // There is the possibility of the video segment and the audio segment
|
||||
// at a current time to be on different timelines. When this occurs, the player
|
||||
// forwards playback to a point where these two segment types are back on the same
|
||||
// timeline. This time will be just after the end of the audio segment that is on
|
||||
// a previous timeline.
|
||||
|
||||
if (this.sourceType_ === 'dash') {
|
||||
this.timelineChangeController_.on('audioTimelineBehind', () => {
|
||||
const segmentInfo = this.audioSegmentLoader_.pendingSegment_;
|
||||
this.timelineChangeController_.on('audioTimelineBehind', () => {
|
||||
const segmentInfo = this.audioSegmentLoader_.pendingSegment_;
|
||||
|
||||
if (!segmentInfo || !segmentInfo.segment || !segmentInfo.segment.syncInfo) {
|
||||
return;
|
||||
} // Update the current time to just after the faulty audio segment.
|
||||
// This moves playback to a spot where both audio and video segments
|
||||
// are on the same timeline.
|
||||
if (!segmentInfo || !segmentInfo.segment || !segmentInfo.segment.syncInfo) {
|
||||
return;
|
||||
} // Update the current time to just after the faulty audio segment.
|
||||
// This moves playback to a spot where both audio and video segments
|
||||
// are on the same timeline.
|
||||
|
||||
|
||||
const newTime = segmentInfo.segment.syncInfo.end + 0.01;
|
||||
this.tech_.setCurrentTime(newTime);
|
||||
});
|
||||
}
|
||||
|
||||
const newTime = segmentInfo.segment.syncInfo.end + 0.01;
|
||||
this.tech_.setCurrentTime(newTime);
|
||||
});
|
||||
this.mainSegmentLoader_.on('earlyabort', event => {
|
||||
// never try to early abort with the new ABR algorithm
|
||||
if (this.bufferBasedABR) {
|
||||
|
@ -28302,15 +28308,15 @@ const reloadSourceOnError = function (options) {
|
|||
initPlugin(this, options);
|
||||
};
|
||||
|
||||
var version$4 = "3.13.3";
|
||||
var version$4 = "3.14.2";
|
||||
|
||||
var version$3 = "7.0.3";
|
||||
|
||||
var version$2 = "1.3.0";
|
||||
|
||||
var version$1 = "7.1.0";
|
||||
var version$1 = "7.2.0";
|
||||
|
||||
var version = "4.0.1";
|
||||
var version = "4.0.2";
|
||||
|
||||
const Vhs = {
|
||||
PlaylistLoader,
|
||||
|
@ -29570,7 +29576,12 @@ const VhsSourceHandler = {
|
|||
VERSION: version$4,
|
||||
|
||||
canHandleSource(srcObj, options = {}) {
|
||||
const localOptions = merge(videojs__default["default"].options, options);
|
||||
const localOptions = merge(videojs__default["default"].options, options); // If not opting to experimentalUseMMS, and playback is only supported with MediaSource, cannot handle source
|
||||
|
||||
if (!localOptions.vhs.experimentalUseMMS && !codecs_js.browserSupportsCodec('avc1.4d400d,mp4a.40.2', false)) {
|
||||
return false;
|
||||
}
|
||||
|
||||
return VhsSourceHandler.canPlayType(srcObj.type, localOptions);
|
||||
},
|
||||
|
||||
|
@ -29609,14 +29620,15 @@ const VhsSourceHandler = {
|
|||
|
||||
};
|
||||
/**
|
||||
* Check to see if the native MediaSource object exists and supports
|
||||
* an MP4 container with both H.264 video and AAC-LC audio.
|
||||
* Check to see if either the native MediaSource or ManagedMediaSource
|
||||
* objectx exist and support an MP4 container with both H.264 video
|
||||
* and AAC-LC audio.
|
||||
*
|
||||
* @return {boolean} if native media sources are supported
|
||||
*/
|
||||
|
||||
const supportsNativeMediaSources = () => {
|
||||
return codecs_js.browserSupportsCodec('avc1.4d400d,mp4a.40.2');
|
||||
return codecs_js.browserSupportsCodec('avc1.4d400d,mp4a.40.2', true);
|
||||
}; // register source handlers with the appropriate techs
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue