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 */
(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) :
@ -23735,9 +23735,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;
}
@ -27365,7 +27368,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
constructor() {
/**
* @type {Map<number, SyncInfoData>}
* @private
* @protected
*/
this.storage_ = new Map();
this.diagnostics_ = '';
@ -27445,6 +27448,10 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
return null;
}
getSyncInfoForMediaSequence(mediaSequence) {
return this.storage_.get(mediaSequence);
}
updateStorage_(segments, startingMediaSequence, startingTime) {
const newStorage = new Map();
let newDiagnostics = '\n';
@ -27510,6 +27517,27 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
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);
}
}
/**
@ -27729,10 +27757,13 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
// 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');
}
@ -32708,7 +32739,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
if (enable !== currentlyEnabled && !incompatible) {
// Ensure the outside world knows about our changes
changePlaylistFn();
changePlaylistFn(playlist);
if (enable) {
loader.trigger('renditionenabled');
@ -33513,7 +33544,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
initPlugin(this, options);
};
var version$4 = "3.12.0";
var version$4 = "3.12.2";
var version$3 = "7.0.3";