@transmitlive/m3u8-parser 4.7.2-beta.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CONTRIBUTING.md +30 -0
- package/LICENSE +13 -0
- package/README.md +388 -0
- package/dist/m3u8-parser.cjs.js +1563 -0
- package/dist/m3u8-parser.es.js +1549 -0
- package/dist/m3u8-parser.js +1748 -0
- package/dist/m3u8-parser.min.js +2 -0
- package/index.html +15 -0
- package/package.json +100 -0
- package/scripts/karma.conf.js +12 -0
- package/scripts/rollup.config.js +47 -0
- package/src/index.js +19 -0
- package/src/line-stream.js +35 -0
- package/src/parse-stream.js +619 -0
- package/src/parser.js +748 -0
- package/test/fixtures/integration/absoluteUris.js +31 -0
- package/test/fixtures/integration/absoluteUris.m3u8 +12 -0
- package/test/fixtures/integration/allowCache.js +165 -0
- package/test/fixtures/integration/allowCache.m3u8 +58 -0
- package/test/fixtures/integration/allowCacheInvalid.js +21 -0
- package/test/fixtures/integration/allowCacheInvalid.m3u8 +10 -0
- package/test/fixtures/integration/alternateAudio.js +56 -0
- package/test/fixtures/integration/alternateAudio.m3u8 +9 -0
- package/test/fixtures/integration/alternateVideo.js +48 -0
- package/test/fixtures/integration/alternateVideo.m3u8 +8 -0
- package/test/fixtures/integration/brightcove.js +57 -0
- package/test/fixtures/integration/brightcove.m3u8 +9 -0
- package/test/fixtures/integration/byteRange.js +161 -0
- package/test/fixtures/integration/byteRange.m3u8 +56 -0
- package/test/fixtures/integration/dateTime.js +27 -0
- package/test/fixtures/integration/dateTime.m3u8 +12 -0
- package/test/fixtures/integration/diff-init-key.js +164 -0
- package/test/fixtures/integration/diff-init-key.m3u8 +57 -0
- package/test/fixtures/integration/disallowCache.js +21 -0
- package/test/fixtures/integration/disallowCache.m3u8 +10 -0
- package/test/fixtures/integration/disc-sequence.js +32 -0
- package/test/fixtures/integration/disc-sequence.m3u8 +15 -0
- package/test/fixtures/integration/discontinuity.js +59 -0
- package/test/fixtures/integration/discontinuity.m3u8 +26 -0
- package/test/fixtures/integration/domainUris.js +31 -0
- package/test/fixtures/integration/domainUris.m3u8 +12 -0
- package/test/fixtures/integration/empty.js +5 -0
- package/test/fixtures/integration/empty.m3u8 +0 -0
- package/test/fixtures/integration/emptyAllowCache.js +21 -0
- package/test/fixtures/integration/emptyAllowCache.m3u8 +10 -0
- package/test/fixtures/integration/emptyMediaSequence.js +31 -0
- package/test/fixtures/integration/emptyMediaSequence.m3u8 +14 -0
- package/test/fixtures/integration/emptyPlaylistType.js +40 -0
- package/test/fixtures/integration/emptyPlaylistType.m3u8 +16 -0
- package/test/fixtures/integration/emptyTargetDuration.js +57 -0
- package/test/fixtures/integration/emptyTargetDuration.m3u8 +10 -0
- package/test/fixtures/integration/encrypted.js +61 -0
- package/test/fixtures/integration/encrypted.m3u8 +28 -0
- package/test/fixtures/integration/event.js +41 -0
- package/test/fixtures/integration/event.m3u8 +16 -0
- package/test/fixtures/integration/extXPlaylistTypeInvalidPlaylist.js +15 -0
- package/test/fixtures/integration/extXPlaylistTypeInvalidPlaylist.m3u8 +8 -0
- package/test/fixtures/integration/extinf.js +165 -0
- package/test/fixtures/integration/extinf.m3u8 +57 -0
- package/test/fixtures/integration/fmp4.js +44 -0
- package/test/fixtures/integration/fmp4.m3u8 +14 -0
- package/test/fixtures/integration/headerOnly.js +5 -0
- package/test/fixtures/integration/headerOnly.m3u8 +1 -0
- package/test/fixtures/integration/invalidAllowCache.js +21 -0
- package/test/fixtures/integration/invalidAllowCache.m3u8 +10 -0
- package/test/fixtures/integration/invalidMediaSequence.js +31 -0
- package/test/fixtures/integration/invalidMediaSequence.m3u8 +14 -0
- package/test/fixtures/integration/invalidPlaylistType.js +40 -0
- package/test/fixtures/integration/invalidPlaylistType.m3u8 +16 -0
- package/test/fixtures/integration/invalidTargetDuration.js +164 -0
- package/test/fixtures/integration/invalidTargetDuration.m3u8 +57 -0
- package/test/fixtures/integration/liveMissingSegmentDuration.js +25 -0
- package/test/fixtures/integration/liveMissingSegmentDuration.m3u8 +9 -0
- package/test/fixtures/integration/liveStart30sBefore.js +54 -0
- package/test/fixtures/integration/liveStart30sBefore.m3u8 +22 -0
- package/test/fixtures/integration/llhls-byte-range.js +253 -0
- package/test/fixtures/integration/llhls-byte-range.m3u8 +66 -0
- package/test/fixtures/integration/llhls-delta-byte-range.js +149 -0
- package/test/fixtures/integration/llhls-delta-byte-range.m3u8 +30 -0
- package/test/fixtures/integration/llhls.js +214 -0
- package/test/fixtures/integration/llhls.m3u8 +56 -0
- package/test/fixtures/integration/llhlsDelta.js +186 -0
- package/test/fixtures/integration/llhlsDelta.m3u8 +50 -0
- package/test/fixtures/integration/manifestExtTTargetdurationNegative.js +14 -0
- package/test/fixtures/integration/manifestExtTTargetdurationNegative.m3u8 +5 -0
- package/test/fixtures/integration/manifestExtXEndlistEarly.js +35 -0
- package/test/fixtures/integration/manifestExtXEndlistEarly.m3u8 +14 -0
- package/test/fixtures/integration/manifestNoExtM3u.js +15 -0
- package/test/fixtures/integration/manifestNoExtM3u.m3u8 +4 -0
- package/test/fixtures/integration/master-fmp4.js +465 -0
- package/test/fixtures/integration/master-fmp4.m3u8 +76 -0
- package/test/fixtures/integration/master.js +57 -0
- package/test/fixtures/integration/master.m3u8 +10 -0
- package/test/fixtures/integration/media.js +31 -0
- package/test/fixtures/integration/media.m3u8 +12 -0
- package/test/fixtures/integration/mediaSequence.js +31 -0
- package/test/fixtures/integration/mediaSequence.m3u8 +14 -0
- package/test/fixtures/integration/missingEndlist.js +19 -0
- package/test/fixtures/integration/missingEndlist.m3u8 +6 -0
- package/test/fixtures/integration/missingExtinf.js +27 -0
- package/test/fixtures/integration/missingExtinf.m3u8 +11 -0
- package/test/fixtures/integration/missingMediaSequence.js +31 -0
- package/test/fixtures/integration/missingMediaSequence.m3u8 +13 -0
- package/test/fixtures/integration/missingSegmentDuration.js +31 -0
- package/test/fixtures/integration/missingSegmentDuration.m3u8 +11 -0
- package/test/fixtures/integration/multipleAudioGroups.js +89 -0
- package/test/fixtures/integration/multipleAudioGroups.m3u8 +17 -0
- package/test/fixtures/integration/multipleAudioGroupsCombinedMain.js +88 -0
- package/test/fixtures/integration/multipleAudioGroupsCombinedMain.m3u8 +17 -0
- package/test/fixtures/integration/multipleTargetDurations.js +28 -0
- package/test/fixtures/integration/multipleTargetDurations.m3u8 +8 -0
- package/test/fixtures/integration/multipleVideo.js +74 -0
- package/test/fixtures/integration/multipleVideo.m3u8 +16 -0
- package/test/fixtures/integration/negativeMediaSequence.js +31 -0
- package/test/fixtures/integration/negativeMediaSequence.m3u8 +14 -0
- package/test/fixtures/integration/playlist.js +165 -0
- package/test/fixtures/integration/playlist.m3u8 +57 -0
- package/test/fixtures/integration/playlistMediaSequenceHigher.js +16 -0
- package/test/fixtures/integration/playlistMediaSequenceHigher.m3u8 +8 -0
- package/test/fixtures/integration/start.js +36 -0
- package/test/fixtures/integration/start.m3u8 +13 -0
- package/test/fixtures/integration/streamInfInvalid.js +24 -0
- package/test/fixtures/integration/streamInfInvalid.m3u8 +6 -0
- package/test/fixtures/integration/twoMediaSequences.js +31 -0
- package/test/fixtures/integration/twoMediaSequences.m3u8 +15 -0
- package/test/fixtures/integration/versionInvalid.js +16 -0
- package/test/fixtures/integration/versionInvalid.m3u8 +8 -0
- package/test/fixtures/integration/whiteSpace.js +31 -0
- package/test/fixtures/integration/whiteSpace.m3u8 +13 -0
- package/test/fixtures/integration/zeroDuration.js +16 -0
- package/test/fixtures/integration/zeroDuration.m3u8 +7 -0
- package/test/line-stream.test.js +80 -0
- package/test/parse-stream.test.js +903 -0
- package/test/parser.test.js +884 -0
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
#EXTM3U
|
|
2
|
+
#EXT-X-TARGETDURATION:
|
|
3
|
+
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=240000,RESOLUTION=396x224
|
|
4
|
+
http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824686811001&videoId=1824650741001
|
|
5
|
+
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=40000
|
|
6
|
+
http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824683759001&videoId=1824650741001
|
|
7
|
+
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=440000,RESOLUTION=396x224
|
|
8
|
+
http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824686593001&videoId=1824650741001
|
|
9
|
+
#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1928000,RESOLUTION=960x540
|
|
10
|
+
http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824687660001&videoId=1824650741001
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
allowCache: true,
|
|
3
|
+
mediaSequence: 7794,
|
|
4
|
+
discontinuitySequence: 0,
|
|
5
|
+
discontinuityStarts: [],
|
|
6
|
+
segments: [
|
|
7
|
+
{
|
|
8
|
+
duration: 2.833,
|
|
9
|
+
timeline: 0,
|
|
10
|
+
key: {
|
|
11
|
+
method: 'AES-128',
|
|
12
|
+
uri: 'https://priv.example.com/key.php?r=52'
|
|
13
|
+
},
|
|
14
|
+
uri: 'http://media.example.com/fileSequence52-A.ts'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
duration: 15,
|
|
18
|
+
timeline: 0,
|
|
19
|
+
key: {
|
|
20
|
+
method: 'AES-128',
|
|
21
|
+
uri: 'https://priv.example.com/key.php?r=52'
|
|
22
|
+
},
|
|
23
|
+
uri: 'http://media.example.com/fileSequence52-B.ts'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
duration: 13.333,
|
|
27
|
+
timeline: 0,
|
|
28
|
+
key: {
|
|
29
|
+
method: 'AES-128',
|
|
30
|
+
uri: 'https://priv.example.com/key.php?r=52'
|
|
31
|
+
},
|
|
32
|
+
uri: 'http://media.example.com/fileSequence52-C.ts'
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
duration: 15,
|
|
36
|
+
timeline: 0,
|
|
37
|
+
key: {
|
|
38
|
+
method: 'AES-128',
|
|
39
|
+
uri: 'https://priv.example.com/key.php?r=53'
|
|
40
|
+
},
|
|
41
|
+
uri: 'http://media.example.com/fileSequence53-A.ts'
|
|
42
|
+
},
|
|
43
|
+
{
|
|
44
|
+
duration: 14,
|
|
45
|
+
timeline: 0,
|
|
46
|
+
key: {
|
|
47
|
+
method: 'AES-128',
|
|
48
|
+
uri: 'https://priv.example.com/key.php?r=54',
|
|
49
|
+
iv: new Uint32Array([0, 0, 331, 3063767524])
|
|
50
|
+
},
|
|
51
|
+
uri: 'http://media.example.com/fileSequence53-B.ts'
|
|
52
|
+
},
|
|
53
|
+
{
|
|
54
|
+
duration: 15,
|
|
55
|
+
timeline: 0,
|
|
56
|
+
uri: 'http://media.example.com/fileSequence53-B.ts'
|
|
57
|
+
}
|
|
58
|
+
],
|
|
59
|
+
targetDuration: 15,
|
|
60
|
+
version: 3
|
|
61
|
+
};
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
#EXTM3U
|
|
2
|
+
#EXT-X-VERSION:3
|
|
3
|
+
#EXT-X-MEDIA-SEQUENCE:7794
|
|
4
|
+
#EXT-X-TARGETDURATION:15
|
|
5
|
+
|
|
6
|
+
#EXT-X-KEY:METHOD=AES-128,URI="https://priv.example.com/key.php?r=52"
|
|
7
|
+
|
|
8
|
+
#EXTINF:2.833,
|
|
9
|
+
http://media.example.com/fileSequence52-A.ts
|
|
10
|
+
#EXTINF:15.0,
|
|
11
|
+
http://media.example.com/fileSequence52-B.ts
|
|
12
|
+
#EXTINF:13.333,
|
|
13
|
+
http://media.example.com/fileSequence52-C.ts
|
|
14
|
+
|
|
15
|
+
#EXT-X-KEY:METHOD=AES-128,URI="https://priv.example.com/key.php?r=53"
|
|
16
|
+
|
|
17
|
+
#EXTINF:15.0,
|
|
18
|
+
http://media.example.com/fileSequence53-A.ts
|
|
19
|
+
|
|
20
|
+
#EXT-X-KEY:METHOD=AES-128,URI="https://priv.example.com/key.php?r=54",IV=0x00000000000000000000014BB69D61E4
|
|
21
|
+
|
|
22
|
+
#EXTINF:14.0,
|
|
23
|
+
http://media.example.com/fileSequence53-B.ts
|
|
24
|
+
|
|
25
|
+
#EXT-X-KEY:METHOD=NONE
|
|
26
|
+
|
|
27
|
+
#EXTINF:15.0,
|
|
28
|
+
http://media.example.com/fileSequence53-B.ts
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
allowCache: true,
|
|
3
|
+
mediaSequence: 0,
|
|
4
|
+
playlistType: 'EVENT',
|
|
5
|
+
segments: [
|
|
6
|
+
{
|
|
7
|
+
duration: 10,
|
|
8
|
+
timeline: 0,
|
|
9
|
+
uri: '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00001.ts'
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
duration: 10,
|
|
13
|
+
timeline: 0,
|
|
14
|
+
uri: '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00002.ts'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
duration: 10,
|
|
18
|
+
timeline: 0,
|
|
19
|
+
uri: '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00003.ts'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
duration: 10,
|
|
23
|
+
timeline: 0,
|
|
24
|
+
uri: '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00004.ts'
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
duration: 10,
|
|
28
|
+
timeline: 0,
|
|
29
|
+
uri: '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00005.ts'
|
|
30
|
+
},
|
|
31
|
+
{
|
|
32
|
+
duration: 8,
|
|
33
|
+
timeline: 0,
|
|
34
|
+
uri: '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00006.ts'
|
|
35
|
+
}
|
|
36
|
+
],
|
|
37
|
+
targetDuration: 10,
|
|
38
|
+
endList: true,
|
|
39
|
+
discontinuitySequence: 0,
|
|
40
|
+
discontinuityStarts: []
|
|
41
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#EXTM3U
|
|
2
|
+
#EXT-X-PLAYLIST-TYPE:EVENT
|
|
3
|
+
#EXT-X-TARGETDURATION:10
|
|
4
|
+
#EXTINF:10,
|
|
5
|
+
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00001.ts
|
|
6
|
+
#EXTINF:10,
|
|
7
|
+
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00002.ts
|
|
8
|
+
#EXTINF:10,
|
|
9
|
+
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00003.ts
|
|
10
|
+
#EXTINF:10,
|
|
11
|
+
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00004.ts
|
|
12
|
+
#EXTINF:10,
|
|
13
|
+
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00005.ts
|
|
14
|
+
#EXTINF:8,
|
|
15
|
+
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00006.ts
|
|
16
|
+
#EXT-X-ENDLIST
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
allowCache: true,
|
|
3
|
+
mediaSequence: 1,
|
|
4
|
+
segments: [
|
|
5
|
+
{
|
|
6
|
+
duration: 6.64,
|
|
7
|
+
timeline: 0,
|
|
8
|
+
uri: '/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts'
|
|
9
|
+
}
|
|
10
|
+
],
|
|
11
|
+
targetDuration: 8,
|
|
12
|
+
endList: true,
|
|
13
|
+
discontinuitySequence: 0,
|
|
14
|
+
discontinuityStarts: []
|
|
15
|
+
};
|
|
@@ -0,0 +1,165 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
allowCache: true,
|
|
3
|
+
mediaSequence: 0,
|
|
4
|
+
playlistType: 'VOD',
|
|
5
|
+
segments: [
|
|
6
|
+
{
|
|
7
|
+
byterange: {
|
|
8
|
+
length: 522828,
|
|
9
|
+
offset: 0
|
|
10
|
+
},
|
|
11
|
+
duration: 10,
|
|
12
|
+
timeline: 0,
|
|
13
|
+
uri: 'hls_450k_video.ts'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
byterange: {
|
|
17
|
+
length: 587500,
|
|
18
|
+
offset: 522828
|
|
19
|
+
},
|
|
20
|
+
duration: 10,
|
|
21
|
+
timeline: 0,
|
|
22
|
+
uri: 'hls_450k_video.ts'
|
|
23
|
+
},
|
|
24
|
+
{
|
|
25
|
+
byterange: {
|
|
26
|
+
length: 713084,
|
|
27
|
+
offset: 1110328
|
|
28
|
+
},
|
|
29
|
+
duration: 5,
|
|
30
|
+
timeline: 0,
|
|
31
|
+
uri: 'hls_450k_video.ts'
|
|
32
|
+
},
|
|
33
|
+
{
|
|
34
|
+
byterange: {
|
|
35
|
+
length: 476580,
|
|
36
|
+
offset: 1823412
|
|
37
|
+
},
|
|
38
|
+
duration: 9.7,
|
|
39
|
+
timeline: 0,
|
|
40
|
+
uri: 'hls_450k_video.ts'
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
byterange: {
|
|
44
|
+
length: 535612,
|
|
45
|
+
offset: 2299992
|
|
46
|
+
},
|
|
47
|
+
duration: 10,
|
|
48
|
+
timeline: 0,
|
|
49
|
+
uri: 'hls_450k_video.ts'
|
|
50
|
+
},
|
|
51
|
+
{
|
|
52
|
+
byterange: {
|
|
53
|
+
length: 207176,
|
|
54
|
+
offset: 2835604
|
|
55
|
+
},
|
|
56
|
+
duration: 10,
|
|
57
|
+
timeline: 0,
|
|
58
|
+
uri: 'hls_450k_video.ts'
|
|
59
|
+
},
|
|
60
|
+
{
|
|
61
|
+
byterange: {
|
|
62
|
+
length: 455900,
|
|
63
|
+
offset: 3042780
|
|
64
|
+
},
|
|
65
|
+
duration: 10,
|
|
66
|
+
timeline: 0,
|
|
67
|
+
uri: 'hls_450k_video.ts'
|
|
68
|
+
},
|
|
69
|
+
{
|
|
70
|
+
byterange: {
|
|
71
|
+
length: 657248,
|
|
72
|
+
offset: 3498680
|
|
73
|
+
},
|
|
74
|
+
duration: 10,
|
|
75
|
+
timeline: 0,
|
|
76
|
+
uri: 'hls_450k_video.ts'
|
|
77
|
+
},
|
|
78
|
+
{
|
|
79
|
+
byterange: {
|
|
80
|
+
length: 571708,
|
|
81
|
+
offset: 4155928
|
|
82
|
+
},
|
|
83
|
+
duration: 10,
|
|
84
|
+
timeline: 0,
|
|
85
|
+
uri: 'hls_450k_video.ts'
|
|
86
|
+
},
|
|
87
|
+
{
|
|
88
|
+
byterange: {
|
|
89
|
+
length: 485040,
|
|
90
|
+
offset: 4727636
|
|
91
|
+
},
|
|
92
|
+
duration: 10,
|
|
93
|
+
timeline: 0,
|
|
94
|
+
uri: 'hls_450k_video.ts'
|
|
95
|
+
},
|
|
96
|
+
{
|
|
97
|
+
byterange: {
|
|
98
|
+
length: 709136,
|
|
99
|
+
offset: 5212676
|
|
100
|
+
},
|
|
101
|
+
duration: 10,
|
|
102
|
+
timeline: 0,
|
|
103
|
+
uri: 'hls_450k_video.ts'
|
|
104
|
+
},
|
|
105
|
+
{
|
|
106
|
+
byterange: {
|
|
107
|
+
length: 730004,
|
|
108
|
+
offset: 5921812
|
|
109
|
+
},
|
|
110
|
+
duration: 10,
|
|
111
|
+
timeline: 0,
|
|
112
|
+
uri: 'hls_450k_video.ts'
|
|
113
|
+
},
|
|
114
|
+
{
|
|
115
|
+
byterange: {
|
|
116
|
+
length: 456276,
|
|
117
|
+
offset: 6651816
|
|
118
|
+
},
|
|
119
|
+
duration: 10,
|
|
120
|
+
timeline: 0,
|
|
121
|
+
uri: 'hls_450k_video.ts'
|
|
122
|
+
},
|
|
123
|
+
{
|
|
124
|
+
byterange: {
|
|
125
|
+
length: 468684,
|
|
126
|
+
offset: 7108092
|
|
127
|
+
},
|
|
128
|
+
duration: 10,
|
|
129
|
+
timeline: 0,
|
|
130
|
+
uri: 'hls_450k_video.ts'
|
|
131
|
+
},
|
|
132
|
+
{
|
|
133
|
+
byterange: {
|
|
134
|
+
length: 444996,
|
|
135
|
+
offset: 7576776
|
|
136
|
+
},
|
|
137
|
+
duration: 10,
|
|
138
|
+
timeline: 0,
|
|
139
|
+
uri: 'hls_450k_video.ts'
|
|
140
|
+
},
|
|
141
|
+
{
|
|
142
|
+
byterange: {
|
|
143
|
+
length: 331444,
|
|
144
|
+
offset: 8021772
|
|
145
|
+
},
|
|
146
|
+
duration: 10,
|
|
147
|
+
timeline: 0,
|
|
148
|
+
uri: 'hls_450k_video.ts'
|
|
149
|
+
},
|
|
150
|
+
{
|
|
151
|
+
byterange: {
|
|
152
|
+
length: 44556,
|
|
153
|
+
offset: 8353216
|
|
154
|
+
},
|
|
155
|
+
duration: 10,
|
|
156
|
+
timeline: 0,
|
|
157
|
+
uri: 'hls_450k_video.ts'
|
|
158
|
+
}
|
|
159
|
+
],
|
|
160
|
+
targetDuration: 10,
|
|
161
|
+
endList: true,
|
|
162
|
+
discontinuitySequence: 0,
|
|
163
|
+
discontinuityStarts: [],
|
|
164
|
+
version: 3
|
|
165
|
+
};
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#EXTM3U
|
|
2
|
+
#EXT-X-TARGETDURATION:10
|
|
3
|
+
#EXT-X-VERSION:3
|
|
4
|
+
#EXT-X-MEDIA-SEQUENCE:0
|
|
5
|
+
#EXT-X-PLAYLIST-TYPE:VOD
|
|
6
|
+
#EXTINF:10
|
|
7
|
+
#EXT-X-BYTERANGE:522828@0
|
|
8
|
+
hls_450k_video.ts
|
|
9
|
+
#EXTINF:;asljasdfii11)))00,
|
|
10
|
+
#EXT-X-BYTERANGE:587500@522828
|
|
11
|
+
hls_450k_video.ts
|
|
12
|
+
#EXTINF:5,
|
|
13
|
+
#EXT-X-BYTERANGE:713084@1110328
|
|
14
|
+
hls_450k_video.ts
|
|
15
|
+
#EXTINF:9.7,
|
|
16
|
+
#EXT-X-BYTERANGE:476580@1823412
|
|
17
|
+
hls_450k_video.ts
|
|
18
|
+
#EXTINF:10,
|
|
19
|
+
#EXT-X-BYTERANGE:535612@2299992
|
|
20
|
+
hls_450k_video.ts
|
|
21
|
+
#EXTINF:10,
|
|
22
|
+
#EXT-X-BYTERANGE:207176@2835604
|
|
23
|
+
hls_450k_video.ts
|
|
24
|
+
#EXTINF:10,
|
|
25
|
+
#EXT-X-BYTERANGE:455900@3042780
|
|
26
|
+
hls_450k_video.ts
|
|
27
|
+
#EXTINF:10,
|
|
28
|
+
#EXT-X-BYTERANGE:657248@3498680
|
|
29
|
+
hls_450k_video.ts
|
|
30
|
+
#EXTINF:10,
|
|
31
|
+
#EXT-X-BYTERANGE:571708@4155928
|
|
32
|
+
hls_450k_video.ts
|
|
33
|
+
#EXTINF:10,
|
|
34
|
+
#EXT-X-BYTERANGE:485040@4727636
|
|
35
|
+
hls_450k_video.ts
|
|
36
|
+
#EXTINF:10,
|
|
37
|
+
#EXT-X-BYTERANGE:709136@5212676
|
|
38
|
+
hls_450k_video.ts
|
|
39
|
+
#EXTINF:10,
|
|
40
|
+
#EXT-X-BYTERANGE:730004@5921812
|
|
41
|
+
hls_450k_video.ts
|
|
42
|
+
#EXTINF:10,
|
|
43
|
+
#EXT-X-BYTERANGE:456276@6651816
|
|
44
|
+
hls_450k_video.ts
|
|
45
|
+
#EXTINF:10,
|
|
46
|
+
#EXT-X-BYTERANGE:468684@7108092
|
|
47
|
+
hls_450k_video.ts
|
|
48
|
+
#EXTINF:10,
|
|
49
|
+
#EXT-X-BYTERANGE:444996@7576776
|
|
50
|
+
hls_450k_video.ts
|
|
51
|
+
#EXTINF:22,
|
|
52
|
+
#EXTINF:10,
|
|
53
|
+
#EXT-X-BYTERANGE:331444@8021772
|
|
54
|
+
hls_450k_video.ts
|
|
55
|
+
#EXT-X-BYTERANGE:44556@8353216
|
|
56
|
+
hls_450k_video.ts
|
|
57
|
+
#EXT-X-ENDLIST
|
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
allowCache: true,
|
|
3
|
+
mediaSequence: 1,
|
|
4
|
+
playlistType: 'VOD',
|
|
5
|
+
targetDuration: 6,
|
|
6
|
+
discontinuitySequence: 0,
|
|
7
|
+
discontinuityStarts: [],
|
|
8
|
+
segments: [
|
|
9
|
+
{
|
|
10
|
+
byterange: {
|
|
11
|
+
length: 5666510,
|
|
12
|
+
offset: 720
|
|
13
|
+
},
|
|
14
|
+
duration: 6.006,
|
|
15
|
+
timeline: 0,
|
|
16
|
+
uri: 'main.mp4',
|
|
17
|
+
map: {
|
|
18
|
+
byterange: {
|
|
19
|
+
length: 720,
|
|
20
|
+
offset: 0
|
|
21
|
+
},
|
|
22
|
+
uri: 'main.mp4'
|
|
23
|
+
}
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
byterange: {
|
|
27
|
+
length: 5861577,
|
|
28
|
+
offset: 5667230
|
|
29
|
+
},
|
|
30
|
+
duration: 6.006,
|
|
31
|
+
timeline: 0,
|
|
32
|
+
uri: 'main.mp4',
|
|
33
|
+
map: {
|
|
34
|
+
byterange: {
|
|
35
|
+
length: 720,
|
|
36
|
+
offset: 0
|
|
37
|
+
},
|
|
38
|
+
uri: 'main.mp4'
|
|
39
|
+
}
|
|
40
|
+
}
|
|
41
|
+
],
|
|
42
|
+
endList: true,
|
|
43
|
+
version: 7
|
|
44
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#EXTM3U
|
|
2
|
+
#EXT-X-TARGETDURATION:6
|
|
3
|
+
#EXT-X-VERSION:7
|
|
4
|
+
#EXT-X-MEDIA-SEQUENCE:1
|
|
5
|
+
#EXT-X-PLAYLIST-TYPE:VOD
|
|
6
|
+
#EXT-X-INDEPENDENT-SEGMENTS
|
|
7
|
+
#EXT-X-MAP:URI="main.mp4",BYTERANGE="720@0"
|
|
8
|
+
#EXTINF:6.00600,
|
|
9
|
+
#EXT-X-BYTERANGE:5666510@720
|
|
10
|
+
main.mp4
|
|
11
|
+
#EXTINF:6.00600,
|
|
12
|
+
#EXT-X-BYTERANGE:5861577@5667230
|
|
13
|
+
main.mp4
|
|
14
|
+
#EXT-X-ENDLIST
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
#EXTM3U
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
allowCache: true,
|
|
3
|
+
mediaSequence: 0,
|
|
4
|
+
playlistType: 'VOD',
|
|
5
|
+
segments: [
|
|
6
|
+
{
|
|
7
|
+
byterange: {
|
|
8
|
+
length: 522828,
|
|
9
|
+
offset: 0
|
|
10
|
+
},
|
|
11
|
+
duration: 10,
|
|
12
|
+
timeline: 0,
|
|
13
|
+
uri: 'hls_450k_video.ts'
|
|
14
|
+
}
|
|
15
|
+
],
|
|
16
|
+
targetDuration: 10,
|
|
17
|
+
endList: true,
|
|
18
|
+
discontinuitySequence: 0,
|
|
19
|
+
discontinuityStarts: [],
|
|
20
|
+
version: 4
|
|
21
|
+
};
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
allowCache: true,
|
|
3
|
+
mediaSequence: 0,
|
|
4
|
+
playlistType: 'VOD',
|
|
5
|
+
segments: [
|
|
6
|
+
{
|
|
7
|
+
duration: 6.64,
|
|
8
|
+
timeline: 0,
|
|
9
|
+
uri: '/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts'
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
duration: 6.08,
|
|
13
|
+
timeline: 0,
|
|
14
|
+
uri: '/test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts'
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
duration: 6.6,
|
|
18
|
+
timeline: 0,
|
|
19
|
+
uri: '/test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts'
|
|
20
|
+
},
|
|
21
|
+
{
|
|
22
|
+
duration: 5,
|
|
23
|
+
timeline: 0,
|
|
24
|
+
uri: '/test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts'
|
|
25
|
+
}
|
|
26
|
+
],
|
|
27
|
+
targetDuration: 8,
|
|
28
|
+
endList: true,
|
|
29
|
+
discontinuitySequence: 0,
|
|
30
|
+
discontinuityStarts: []
|
|
31
|
+
};
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#EXTM3U
|
|
2
|
+
#EXT-X-PLAYLIST-TYPE:VOD
|
|
3
|
+
#EXT-X-MEDIA-SEQUENCE:gobblegobble
|
|
4
|
+
#EXT-X-ALLOW-CACHE:YES
|
|
5
|
+
#EXT-X-TARGETDURATION:8
|
|
6
|
+
#EXTINF:6.640,{}
|
|
7
|
+
/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts
|
|
8
|
+
#EXTINF:6.080,{}
|
|
9
|
+
/test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts
|
|
10
|
+
#EXTINF:6.600,{}
|
|
11
|
+
/test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts
|
|
12
|
+
#EXTINF:5.000,{}
|
|
13
|
+
/test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts
|
|
14
|
+
#EXT-X-ENDLIST
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
allowCache: true,
|
|
3
|
+
mediaSequence: 0,
|
|
4
|
+
segments: [
|
|
5
|
+
{
|
|
6
|
+
duration: 10,
|
|
7
|
+
timeline: 0,
|
|
8
|
+
uri: '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00001.ts'
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
duration: 10,
|
|
12
|
+
timeline: 0,
|
|
13
|
+
uri: '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00002.ts'
|
|
14
|
+
},
|
|
15
|
+
{
|
|
16
|
+
duration: 10,
|
|
17
|
+
timeline: 0,
|
|
18
|
+
uri: '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00003.ts'
|
|
19
|
+
},
|
|
20
|
+
{
|
|
21
|
+
duration: 10,
|
|
22
|
+
timeline: 0,
|
|
23
|
+
uri: '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00004.ts'
|
|
24
|
+
},
|
|
25
|
+
{
|
|
26
|
+
duration: 10,
|
|
27
|
+
timeline: 0,
|
|
28
|
+
uri: '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00005.ts'
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
duration: 8,
|
|
32
|
+
timeline: 0,
|
|
33
|
+
uri: '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00006.ts'
|
|
34
|
+
}
|
|
35
|
+
],
|
|
36
|
+
targetDuration: 10,
|
|
37
|
+
endList: true,
|
|
38
|
+
discontinuitySequence: 0,
|
|
39
|
+
discontinuityStarts: []
|
|
40
|
+
};
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
#EXTM3U
|
|
2
|
+
#EXT-X-PLAYLIST-TYPE:asdRASDfasdR
|
|
3
|
+
#EXT-X-TARGETDURATION:10
|
|
4
|
+
#EXTINF:10,
|
|
5
|
+
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00001.ts
|
|
6
|
+
#EXTINF:10,
|
|
7
|
+
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00002.ts
|
|
8
|
+
#EXTINF:10,
|
|
9
|
+
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00003.ts
|
|
10
|
+
#EXTINF:10,
|
|
11
|
+
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00004.ts
|
|
12
|
+
#EXTINF:10,
|
|
13
|
+
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00005.ts
|
|
14
|
+
#EXTINF:8,
|
|
15
|
+
/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00006.ts
|
|
16
|
+
#EXT-X-ENDLIST
|