1
0
Fork 0
mirror of https://github.com/DanielnetoDotCom/YouPHPTube synced 2025-10-03 09:49:28 +02:00

Add Calendar

This commit is contained in:
Daniel Neto 2024-05-03 12:16:27 -03:00
parent be8ebd1227
commit 47a4532d0b
1165 changed files with 156626 additions and 11163 deletions

View file

@ -1,4 +1,4 @@
/*! @name @videojs/http-streaming @version 3.12.0 @license Apache-2.0 */
/*! @name @videojs/http-streaming @version 3.12.2 @license Apache-2.0 */
'use strict';
Object.defineProperty(exports, '__esModule', { value: true });
@ -17718,9 +17718,12 @@ bufferedEnd: ${lastBufferedEnd(this.buffered_())}
this.partIndex = null;
this.syncPoint_ = null;
this.isPendingTimestampOffset_ = false; // this is mainly to sync timing-info when switching between renditions with and without timestamp-rollover,
// so we don't want it for DASH
// so we don't want it for DASH or fragmented mp4 segments.
if (this.sourceType_ === 'hls') {
const isFmp4 = this.currentMediaInfo_ && this.currentMediaInfo_.isFmp4;
const isHlsTs = this.sourceType_ === 'hls' && !isFmp4;
if (isHlsTs) {
this.shouldForceTimestampOffsetAfterResync_ = true;
}
@ -21348,7 +21351,7 @@ class MediaSequenceSync {
constructor() {
/**
* @type {Map<number, SyncInfoData>}
* @private
* @protected
*/
this.storage_ = new Map();
this.diagnostics_ = '';
@ -21428,6 +21431,10 @@ class MediaSequenceSync {
return null;
}
getSyncInfoForMediaSequence(mediaSequence) {
return this.storage_.get(mediaSequence);
}
updateStorage_(segments, startingMediaSequence, startingTime) {
const newStorage = new Map();
let newDiagnostics = '\n';
@ -21493,6 +21500,27 @@ class MediaSequenceSync {
return mediaSequence !== undefined && mediaSequence !== null && Array.isArray(segments) && segments.length;
}
}
class DependantMediaSequenceSync extends MediaSequenceSync {
constructor(parent) {
super();
this.parent_ = parent;
}
calculateBaseTime_(mediaSequence, fallback) {
if (!this.storage_.size) {
const info = this.parent_.getSyncInfoForMediaSequence(mediaSequence);
if (info) {
return info.segmentSyncInfo.start;
}
return 0;
}
return super.calculateBaseTime_(mediaSequence, fallback);
}
}
/**
@ -21712,10 +21740,13 @@ class SyncController extends videojs__default["default"].EventTarget {
// Moreover if we disable this map for MPEG-DASH - quality switch will be broken.
// MPEG-DASH should have its own separate sync strategy
const main = new MediaSequenceSync();
const audio = new DependantMediaSequenceSync(main);
const vtt = new DependantMediaSequenceSync(main);
this.mediaSequenceStorage_ = {
main: new MediaSequenceSync(),
audio: new MediaSequenceSync(),
vtt: new MediaSequenceSync()
main,
audio,
vtt
};
this.logger_ = logger('SyncController');
}
@ -26691,7 +26722,7 @@ const enableFunction = (loader, playlistID, changePlaylistFn) => enable => {
if (enable !== currentlyEnabled && !incompatible) {
// Ensure the outside world knows about our changes
changePlaylistFn();
changePlaylistFn(playlist);
if (enable) {
loader.trigger('renditionenabled');
@ -27496,7 +27527,7 @@ const reloadSourceOnError = function (options) {
initPlugin(this, options);
};
var version$4 = "3.12.0";
var version$4 = "3.12.2";
var version$3 = "7.0.3";