74845780 by BCJwhisenant

added more tests for manifest parsing

the "missing extinf" test currently blows up the test suite :)
1 parent 58c7ad86
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 }
1 #EXTM3U
2 #EXT-X-PLAYLIST-TYPE:STRING
3 #EXT-X-MEDIA-SEQUENCE:1
4 #EXT-X-ALLOW-CACHE:YES
5 #EXT-X-TARGETDURATION:8
6 #EXTINF:6.640,{}
7 /test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts
8 #EXT-X-ENDLIST
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 "totalDuration": 10
16 }
1 #EXTM3U
2 #ZEN-TOTAL-DURATION:50
3 #EXT-X-TARGETDURATION:-10
4 #EXTINF:10,
5 /test/ts-files/zencoder/gogo/00001.ts
6 #EXT-X-ENDLIST
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 }
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
1 {
2 "allowCache": true,
3 "mediaSequence": 0,
4 "playlistType":"VOD",
5 "segments": [
6 {
7 "duration": 10.0,
8 "timeRange": {
9 "end": 10.0,
10 "start": 0
11 },
12 "uri": "/test/ts-files/zencoder/gogo/00001.ts"
13 },
14 ],
15 "targetDuration": 10,
16 "totalDuration": 10.0
17 }
1 #ZEN-TOTAL-DURATION:10
2 #EXT-X-TARGETDURATION:10
3 #EXTINF:10,
4 /test/ts-files/zencoder/gogo/00001.ts
5 #EXT-X-ENDLIST
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 }
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 hls_450k_video.ts
8 hls_450k_video.ts
9 #EXTINF:10,
10 hls_450k_video.ts
11 #EXT-X-ENDLIST
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 }
1 #EXTM3U
2 #EXT-X-PLAYLIST-TYPE:VOD
3 #EXT-X-MEDIA-SEQUENCE:17
4 #EXT-X-ALLOW-CACHE:YES
5 #EXT-X-TARGETDURATION:8
6 #EXTINF:6.640,{}
7 /test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts
8 #EXT-X-ENDLIST