mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-04 18:29:39 +02:00
add p2p support for HLS https://github.com/Novage/p2p-media-loader
This commit is contained in:
parent
64c36d9f4e
commit
0d0338876d
1197 changed files with 121461 additions and 179724 deletions
33
node_modules/mpd-parser/dist/mpd-parser.js
generated
vendored
33
node_modules/mpd-parser/dist/mpd-parser.js
generated
vendored
|
@ -1,11 +1,11 @@
|
|||
/*! @name mpd-parser @version 0.21.1 @license Apache-2.0 */
|
||||
/*! @name mpd-parser @version 0.22.1 @license Apache-2.0 */
|
||||
(function (global, factory) {
|
||||
typeof exports === 'object' && typeof module !== 'undefined' ? factory(exports, require('@xmldom/xmldom')) :
|
||||
typeof define === 'function' && define.amd ? define(['exports', '@xmldom/xmldom'], factory) :
|
||||
(global = typeof globalThis !== 'undefined' ? globalThis : global || self, factory(global.mpdParser = {}, global.window));
|
||||
}(this, (function (exports, xmldom) { 'use strict';
|
||||
|
||||
var version = "0.21.1";
|
||||
var version = "0.22.1";
|
||||
|
||||
var isObject = function isObject(obj) {
|
||||
return !!obj && typeof obj === 'object';
|
||||
|
@ -1328,6 +1328,10 @@
|
|||
segments: segments
|
||||
};
|
||||
|
||||
if (attributes.frameRate) {
|
||||
playlist.attributes['FRAME-RATE'] = attributes.frameRate;
|
||||
}
|
||||
|
||||
if (attributes.contentProtection) {
|
||||
playlist.contentProtection = attributes.contentProtection;
|
||||
}
|
||||
|
@ -1978,6 +1982,19 @@
|
|||
return element.textContent.trim();
|
||||
};
|
||||
|
||||
/**
|
||||
* Converts the provided string that may contain a division operation to a number.
|
||||
*
|
||||
* @param {string} value - the provided string value
|
||||
*
|
||||
* @return {number} the parsed string value
|
||||
*/
|
||||
var parseDivisionValue = function parseDivisionValue(value) {
|
||||
return parseFloat(value.split('/').reduce(function (prev, current) {
|
||||
return prev / current;
|
||||
}));
|
||||
};
|
||||
|
||||
var parseDuration = function parseDuration(str) {
|
||||
var SECONDS_IN_YEAR = 365 * 24 * 60 * 60;
|
||||
var SECONDS_IN_MONTH = 30 * 24 * 60 * 60;
|
||||
|
@ -2144,6 +2161,18 @@
|
|||
return parseInt(value, 10);
|
||||
},
|
||||
|
||||
/**
|
||||
* Specifies the frame rate of the representation
|
||||
*
|
||||
* @param {string} value
|
||||
* value of attribute as a string
|
||||
* @return {number}
|
||||
* The parsed frame rate
|
||||
*/
|
||||
frameRate: function frameRate(value) {
|
||||
return parseDivisionValue(value);
|
||||
},
|
||||
|
||||
/**
|
||||
* Specifies the number of the first Media Segment in this Representation in the Period
|
||||
*
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue