First release

This commit is contained in:
Owen Quinlan 2021-07-02 19:29:34 +10:00
commit fa6c85266e
2339 changed files with 761050 additions and 0 deletions

519
node_modules/mpd-parser/test/manifests/vtt_codecs.js generated vendored Normal file
View file

@ -0,0 +1,519 @@
export const parsedManifest = {
allowCache: true,
discontinuityStarts: [],
segments: [],
endList: true,
mediaGroups: {
'AUDIO': {
audio: {
'en (main)': {
language: 'en',
autoselect: true,
default: true,
playlists: [
{
attributes: {
'NAME': '63000',
'BANDWIDTH': 63000,
'CODECS': 'mp4a.40.2',
'PROGRAM-ID': 1
},
uri: '',
endList: true,
timeline: 0,
resolvedUri: '',
targetDuration: 1.984,
segments: [
{
uri: '63000/0.m4f',
timeline: 0,
duration: 1.984,
resolvedUri: 'https://www.example.com/63000/0.m4f',
map: {
uri: '63000/init.m4f',
resolvedUri: 'https://www.example.com/63000/init.m4f'
},
number: 0
},
{
uri: '63000/1.m4f',
timeline: 0,
duration: 1.984,
resolvedUri: 'https://www.example.com/63000/1.m4f',
map: {
uri: '63000/init.m4f',
resolvedUri: 'https://www.example.com/63000/init.m4f'
},
number: 1
},
{
uri: '63000/2.m4f',
timeline: 0,
duration: 1.984,
resolvedUri: 'https://www.example.com/63000/2.m4f',
map: {
uri: '63000/init.m4f',
resolvedUri: 'https://www.example.com/63000/init.m4f'
},
number: 2
},
{
uri: '63000/3.m4f',
timeline: 0,
duration: 0.04800000000000004,
resolvedUri: 'https://www.example.com/63000/3.m4f',
map: {
uri: '63000/init.m4f',
resolvedUri: 'https://www.example.com/63000/init.m4f'
},
number: 3
}
],
mediaSequence: 0,
contentProtection: {
'com.widevine.alpha': {
attributes: {
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed'
},
pssh: new Uint8Array([181, 235, 45])
}
}
},
{
attributes: {
'NAME': '125000',
'BANDWIDTH': 125000,
'CODECS': 'mp4a.40.2',
'PROGRAM-ID': 1
},
uri: '',
endList: true,
timeline: 0,
resolvedUri: '',
targetDuration: 1.984,
segments: [
{
uri: '125000/0.m4f',
timeline: 0,
duration: 1.984,
resolvedUri: 'https://www.example.com/125000/0.m4f',
map: {
uri: '125000/init.m4f',
resolvedUri: 'https://www.example.com/125000/init.m4f'
},
number: 0
},
{
uri: '125000/1.m4f',
timeline: 0,
duration: 1.984,
resolvedUri: 'https://www.example.com/125000/1.m4f',
map: {
uri: '125000/init.m4f',
resolvedUri: 'https://www.example.com/125000/init.m4f'
},
number: 1
},
{
uri: '125000/2.m4f',
timeline: 0,
duration: 1.984,
resolvedUri: 'https://www.example.com/125000/2.m4f',
map: {
uri: '125000/init.m4f',
resolvedUri: 'https://www.example.com/125000/init.m4f'
},
number: 2
},
{
uri: '125000/3.m4f',
timeline: 0,
duration: 0.04800000000000004,
resolvedUri: 'https://www.example.com/125000/3.m4f',
map: {
uri: '125000/init.m4f',
resolvedUri: 'https://www.example.com/125000/init.m4f'
},
number: 3
}
],
mediaSequence: 0,
contentProtection: {
'com.widevine.alpha': {
attributes: {
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed'
},
pssh: new Uint8Array([181, 235, 45])
}
}
}
],
uri: ''
},
'es': {
language: 'es',
autoselect: true,
default: false,
playlists: [
{
attributes: {
'NAME': '63000',
'BANDWIDTH': 63000,
'CODECS': 'mp4a.40.2',
'PROGRAM-ID': 1
},
uri: '',
endList: true,
timeline: 0,
resolvedUri: '',
targetDuration: 1.984,
segments: [
{
uri: '63000/es/0.m4f',
timeline: 0,
duration: 1.984,
resolvedUri: 'https://www.example.com/63000/es/0.m4f',
map: {
uri: '63000/es/init.m4f',
resolvedUri: 'https://www.example.com/63000/es/init.m4f'
},
number: 0
},
{
uri: '63000/es/1.m4f',
timeline: 0,
duration: 1.984,
resolvedUri: 'https://www.example.com/63000/es/1.m4f',
map: {
uri: '63000/es/init.m4f',
resolvedUri: 'https://www.example.com/63000/es/init.m4f'
},
number: 1
},
{
uri: '63000/es/2.m4f',
timeline: 0,
duration: 1.984,
resolvedUri: 'https://www.example.com/63000/es/2.m4f',
map: {
uri: '63000/es/init.m4f',
resolvedUri: 'https://www.example.com/63000/es/init.m4f'
},
number: 2
},
{
uri: '63000/es/3.m4f',
timeline: 0,
duration: 0.04800000000000004,
resolvedUri: 'https://www.example.com/63000/es/3.m4f',
map: {
uri: '63000/es/init.m4f',
resolvedUri: 'https://www.example.com/63000/es/init.m4f'
},
number: 3
}
],
mediaSequence: 0,
contentProtection: {
'com.widevine.alpha': {
attributes: {
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed'
},
pssh: new Uint8Array([181, 235, 45])
}
}
},
{
attributes: {
'NAME': '125000',
'BANDWIDTH': 125000,
'CODECS': 'mp4a.40.2',
'PROGRAM-ID': 1
},
uri: '',
endList: true,
timeline: 0,
resolvedUri: '',
targetDuration: 1.984,
segments: [
{
uri: '125000/es/0.m4f',
timeline: 0,
duration: 1.984,
resolvedUri: 'https://www.example.com/125000/es/0.m4f',
map: {
uri: '125000/es/init.m4f',
resolvedUri: 'https://www.example.com/125000/es/init.m4f'
},
number: 0
},
{
uri: '125000/es/1.m4f',
timeline: 0,
duration: 1.984,
resolvedUri: 'https://www.example.com/125000/es/1.m4f',
map: {
uri: '125000/es/init.m4f',
resolvedUri: 'https://www.example.com/125000/es/init.m4f'
},
number: 1
},
{
uri: '125000/es/2.m4f',
timeline: 0,
duration: 1.984,
resolvedUri: 'https://www.example.com/125000/es/2.m4f',
map: {
uri: '125000/es/init.m4f',
resolvedUri: 'https://www.example.com/125000/es/init.m4f'
},
number: 2
},
{
uri: '125000/es/3.m4f',
timeline: 0,
duration: 0.04800000000000004,
resolvedUri: 'https://www.example.com/125000/es/3.m4f',
map: {
uri: '125000/es/init.m4f',
resolvedUri: 'https://www.example.com/125000/es/init.m4f'
},
number: 3
}
],
mediaSequence: 0,
contentProtection: {
'com.widevine.alpha': {
attributes: {
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed'
},
pssh: new Uint8Array([181, 235, 45])
}
}
}
],
uri: ''
}
}
},
'VIDEO': {},
'CLOSED-CAPTIONS': {},
'SUBTITLES': {
subs: {
en: {
language: 'en',
default: false,
autoselect: false,
playlists: [
{
attributes: {
'NAME': 'en',
'BANDWIDTH': 256,
'PROGRAM-ID': 1,
'CODECS': 'stpp.ttml.im1t'
},
uri: '',
endList: true,
timeline: 0,
resolvedUri: 'https://example.com/en.dash',
targetDuration: 6,
segments: [
{
uri: 'https://example.com/en.dash',
timeline: 0,
resolvedUri: 'https://example.com/en.dash',
duration: 6,
number: 0
}
],
mediaSequence: 0
}
],
uri: ''
},
es: {
language: 'es',
default: false,
autoselect: false,
playlists: [
{
attributes: {
'NAME': 'es',
'BANDWIDTH': 256,
'PROGRAM-ID': 1
},
uri: '',
endList: true,
timeline: 0,
resolvedUri: 'https://example.com/es.vtt',
targetDuration: 6,
segments: [
{
uri: 'https://example.com/es.vtt',
timeline: 0,
resolvedUri: 'https://example.com/es.vtt',
duration: 6,
number: 0
}
],
mediaSequence: 0
}
],
uri: ''
}
}
}
},
uri: '',
duration: 6,
playlists: [
{
attributes: {
'NAME': '482',
'AUDIO': 'audio',
'SUBTITLES': 'subs',
'RESOLUTION': {
width: 482,
height: 270
},
'CODECS': 'avc1.420015',
'BANDWIDTH': 449000,
'PROGRAM-ID': 1
},
uri: '',
endList: true,
timeline: 0,
resolvedUri: '',
targetDuration: 1.9185833333333333,
segments: [
{
uri: '482/0.m4f',
timeline: 0,
duration: 1.9185833333333333,
resolvedUri: 'https://www.example.com/482/0.m4f',
map: {
uri: '482/init.m4f',
resolvedUri: 'https://www.example.com/482/init.m4f'
},
number: 0
},
{
uri: '482/1.m4f',
timeline: 0,
duration: 1.9185833333333333,
resolvedUri: 'https://www.example.com/482/1.m4f',
map: {
uri: '482/init.m4f',
resolvedUri: 'https://www.example.com/482/init.m4f'
},
number: 1
},
{
uri: '482/2.m4f',
timeline: 0,
duration: 1.9185833333333333,
resolvedUri: 'https://www.example.com/482/2.m4f',
map: {
uri: '482/init.m4f',
resolvedUri: 'https://www.example.com/482/init.m4f'
},
number: 2
},
{
uri: '482/3.m4f',
timeline: 0,
duration: 0.24425000000000008,
resolvedUri: 'https://www.example.com/482/3.m4f',
map: {
uri: '482/init.m4f',
resolvedUri: 'https://www.example.com/482/init.m4f'
},
number: 3
}
],
mediaSequence: 0,
contentProtection: {
'com.widevine.alpha': {
attributes: {
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed'
},
pssh: new Uint8Array([181, 235, 45])
}
}
},
{
attributes: {
'NAME': '720',
'AUDIO': 'audio',
'SUBTITLES': 'subs',
'RESOLUTION': {
width: 720,
height: 404
},
'CODECS': 'avc1.64001e',
'BANDWIDTH': 3971000,
'PROGRAM-ID': 1
},
uri: '',
endList: true,
timeline: 0,
resolvedUri: '',
targetDuration: 1.9185833333333333,
segments: [
{
uri: '720/0.m4f',
timeline: 0,
duration: 1.9185833333333333,
resolvedUri: 'https://www.example.com/720/0.m4f',
map: {
uri: '720/init.m4f',
resolvedUri: 'https://www.example.com/720/init.m4f'
},
number: 0
},
{
uri: '720/1.m4f',
timeline: 0,
duration: 1.9185833333333333,
resolvedUri: 'https://www.example.com/720/1.m4f',
map: {
uri: '720/init.m4f',
resolvedUri: 'https://www.example.com/720/init.m4f'
},
number: 1
},
{
uri: '720/2.m4f',
timeline: 0,
duration: 1.9185833333333333,
resolvedUri: 'https://www.example.com/720/2.m4f',
map: {
uri: '720/init.m4f',
resolvedUri: 'https://www.example.com/720/init.m4f'
},
number: 2
},
{
uri: '720/3.m4f',
timeline: 0,
duration: 0.24425000000000008,
resolvedUri: 'https://www.example.com/720/3.m4f',
map: {
uri: '720/init.m4f',
resolvedUri: 'https://www.example.com/720/init.m4f'
},
number: 3
}
],
mediaSequence: 0,
contentProtection: {
'com.widevine.alpha': {
attributes: {
schemeIdUri: 'urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed'
},
pssh: new Uint8Array([181, 235, 45])
}
}
}
]
};