mirror of
https://github.com/DanielnetoDotCom/YouPHPTube
synced 2025-10-05 02:39:46 +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
13
node_modules/mpd-parser/src/parseAttributes.js
generated
vendored
13
node_modules/mpd-parser/src/parseAttributes.js
generated
vendored
|
@ -1,3 +1,4 @@
|
|||
import { parseDivisionValue } from './utils/string';
|
||||
import { from } from './utils/list';
|
||||
import { parseDuration, parseDate } from './utils/time';
|
||||
|
||||
|
@ -131,6 +132,18 @@ export const parsers = {
|
|||
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(value) {
|
||||
return parseDivisionValue(value);
|
||||
},
|
||||
|
||||
/**
|
||||
* Specifies the number of the first Media Segment in this Representation in the Period
|
||||
*
|
||||
|
|
4
node_modules/mpd-parser/src/toM3u8.js
generated
vendored
4
node_modules/mpd-parser/src/toM3u8.js
generated
vendored
|
@ -296,6 +296,10 @@ export const formatVideoPlaylist = ({
|
|||
segments
|
||||
};
|
||||
|
||||
if (attributes.frameRate) {
|
||||
playlist.attributes['FRAME-RATE'] = attributes.frameRate;
|
||||
}
|
||||
|
||||
if (attributes.contentProtection) {
|
||||
playlist.contentProtection = attributes.contentProtection;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue