added more tests for manifest parsing
the "missing extinf" test currently blows up the test suite :)
Showing
12 changed files
with
197 additions
and
0 deletions
1 | { | ||
2 | "allowCache": true, | ||
3 | "mediaSequence": 1, | ||
4 | "playlistType":"VOD", | ||
5 | "segments": [ | ||
6 | { | ||
7 | "duration": 6.64, | ||
8 | "timeRange": { | ||
9 | "end": 6.64, | ||
10 | "start": 0 | ||
11 | }, | ||
12 | "uri": "/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts" | ||
13 | }, | ||
14 | ], | ||
15 | "targetDuration": 8, | ||
16 | "totalDuration": 6.64 | ||
17 | } |
test/manifest/manifestExtXEndlistEarly.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "mediaSequence": 0, | ||
4 | "playlistType": "VOD", | ||
5 | "segments": [ | ||
6 | { | ||
7 | "duration": 10, | ||
8 | "timeRange": { | ||
9 | "end": 10, | ||
10 | "start": 0 | ||
11 | }, | ||
12 | "uri": "/test/ts-files/zencoder/gogo/00001.ts" | ||
13 | }, | ||
14 | { | ||
15 | "duration": 10, | ||
16 | "timeRange": { | ||
17 | "end": 20, | ||
18 | "start": 10 | ||
19 | }, | ||
20 | "uri": "/test/ts-files/zencoder/gogo/00002.ts" | ||
21 | }, | ||
22 | { | ||
23 | "duration": 10, | ||
24 | "timeRange": { | ||
25 | "end": 30, | ||
26 | "start": 20 | ||
27 | }, | ||
28 | "uri": "/test/ts-files/zencoder/gogo/00003.ts" | ||
29 | }, | ||
30 | { | ||
31 | "duration": 10, | ||
32 | "timeRange": { | ||
33 | "end": 40, | ||
34 | "start": 30 | ||
35 | }, | ||
36 | "uri": "/test/ts-files/zencoder/gogo/00004.ts" | ||
37 | }, | ||
38 | { | ||
39 | "duration": 10, | ||
40 | "timeRange": { | ||
41 | "end": 50, | ||
42 | "start": 40 | ||
43 | }, | ||
44 | "uri": "/test/ts-files/zencoder/gogo/00005.ts" | ||
45 | }, | ||
46 | ], | ||
47 | "targetDuration": 10, | ||
48 | "totalDuration": 30 | ||
49 | } |
test/manifest/manifestExtXEndlistEarly.m3u8
0 → 100644
1 | #EXTM3U | ||
2 | #ZEN-TOTAL-DURATION:50 | ||
3 | #EXT-X-TARGETDURATION:10 | ||
4 | #EXTINF:10, | ||
5 | /test/ts-files/zencoder/gogo/00001.ts | ||
6 | #EXTINF:10, | ||
7 | /test/ts-files/zencoder/gogo/00002.ts | ||
8 | #EXTINF:10, | ||
9 | /test/ts-files/zencoder/gogo/00003.ts | ||
10 | #EXT-X-ENDLIST | ||
11 | #EXTINF:10, | ||
12 | /test/ts-files/zencoder/gogo/00004.ts | ||
13 | #EXTINF:10, | ||
14 | /test/ts-files/zencoder/gogo/00005.ts | ||
15 |
test/manifest/manifestNoExtM3u.json
0 → 100644
test/manifest/manifestNoExtM3u.m3u8
0 → 100644
test/manifest/missingExtinf.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "mediaSequence": 0, | ||
4 | "playlistType": "VOD", | ||
5 | "segments": [ | ||
6 | { | ||
7 | "duration": 10, | ||
8 | "timeRange": { | ||
9 | "end": 10, | ||
10 | "start": 0 | ||
11 | }, | ||
12 | "uri": "hls_450k_video.ts" | ||
13 | }, | ||
14 | { | ||
15 | "uri": "hls_450k_video.ts" | ||
16 | }, | ||
17 | { | ||
18 | "duration": 5, | ||
19 | "timeRange": { | ||
20 | "end": 30, | ||
21 | "start": 20 | ||
22 | }, | ||
23 | "uri": "hls_450k_video.ts" | ||
24 | }, | ||
25 | ], | ||
26 | "targetDuration": 10, | ||
27 | "totalDuration": 30 | ||
28 | } |
test/manifest/missingExtinf.m3u8
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "mediaSequence": 17, | ||
4 | "playlistType":"VOD", | ||
5 | "segments": [ | ||
6 | { | ||
7 | "duration": 6.64, | ||
8 | "timeRange": { | ||
9 | "end": 6.64, | ||
10 | "start": 0 | ||
11 | }, | ||
12 | "uri": "/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts" | ||
13 | }, | ||
14 | ], | ||
15 | "targetDuration": 8, | ||
16 | "totalDuration": 6.64 | ||
17 | } |
-
Please register or sign in to post a comment