mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-03 09:49:28 +02:00
Add Calendar
This commit is contained in:
parent
be8ebd1227
commit
47a4532d0b
1165 changed files with 156626 additions and 11163 deletions
49
node_modules/@videojs/http-streaming/dist/videojs-http-streaming-sync-workers.js
generated
vendored
49
node_modules/@videojs/http-streaming/dist/videojs-http-streaming-sync-workers.js
generated
vendored
|
@ -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) :
|
||||
|
@ -23785,9 +23785,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;
|
||||
}
|
||||
|
||||
|
@ -27415,7 +27418,7 @@ ${segmentInfoString(segmentInfo)}`); // If there's an init segment associated wi
|
|||
constructor() {
|
||||
/**
|
||||
* @type {Map<number, SyncInfoData>}
|
||||
* @private
|
||||
* @protected
|
||||
*/
|
||||
this.storage_ = new Map();
|
||||
this.diagnostics_ = '';
|
||||
|
@ -27495,6 +27498,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';
|
||||
|
@ -27560,6 +27567,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);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
/**
|
||||
|
@ -27779,10 +27807,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');
|
||||
}
|
||||
|
@ -32758,7 +32789,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');
|
||||
|
@ -33563,7 +33594,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";
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue