Convert m3u8 tests to use deepEquals against a known "good" parse
Take all the remaining test cases and conver them into pairs of m3u8 and json files. Removed handlebars since it's no longer in use.
Showing
56 changed files
with
1470 additions
and
299 deletions
libs/handlebars/handlebars-v1.1.2.js
deleted
100644 → 0
This diff is collapsed.
Click to expand it.
This diff is collapsed.
Click to expand it.
test/manifest/allowCache.json
0 → 100644
1 | { | ||
2 | "targetDuration": 10, | ||
3 | "allowCache": true, | ||
4 | "mediaSequence": 0, | ||
5 | "playlistType": "VOD", | ||
6 | "segments": [{ | ||
7 | "duration": 10, | ||
8 | "byterange": { | ||
9 | "length": 522828, | ||
10 | "offset": 0 | ||
11 | }, | ||
12 | "uri": "hls_450k_video.ts" | ||
13 | }, { | ||
14 | "duration": 10, | ||
15 | "byterange": { | ||
16 | "length": 587500, | ||
17 | "offset": 522828 | ||
18 | }, | ||
19 | "uri": "hls_450k_video.ts" | ||
20 | }, { | ||
21 | "duration": 10, | ||
22 | "byterange": { | ||
23 | "length": 713084, | ||
24 | "offset": 1110328 | ||
25 | }, | ||
26 | "uri": "hls_450k_video.ts" | ||
27 | }, { | ||
28 | "duration": 10, | ||
29 | "byterange": { | ||
30 | "length": 476580, | ||
31 | "offset": 1823412 | ||
32 | }, | ||
33 | "uri": "hls_450k_video.ts" | ||
34 | }, { | ||
35 | "duration": 10, | ||
36 | "byterange": { | ||
37 | "length": 535612, | ||
38 | "offset": 2299992 | ||
39 | }, | ||
40 | "uri": "hls_450k_video.ts" | ||
41 | }, { | ||
42 | "duration": 10, | ||
43 | "byterange": { | ||
44 | "length": 207176, | ||
45 | "offset": 2835604 | ||
46 | }, | ||
47 | "uri": "hls_450k_video.ts" | ||
48 | }, { | ||
49 | "duration": 10, | ||
50 | "byterange": { | ||
51 | "length": 455900, | ||
52 | "offset": 3042780 | ||
53 | }, | ||
54 | "uri": "hls_450k_video.ts" | ||
55 | }, { | ||
56 | "duration": 10, | ||
57 | "byterange": { | ||
58 | "length": 657248, | ||
59 | "offset": 3498680 | ||
60 | }, | ||
61 | "uri": "hls_450k_video.ts" | ||
62 | }, { | ||
63 | "duration": 10, | ||
64 | "byterange": { | ||
65 | "length": 571708, | ||
66 | "offset": 4155928 | ||
67 | }, | ||
68 | "uri": "hls_450k_video.ts" | ||
69 | }, { | ||
70 | "duration": 10, | ||
71 | "byterange": { | ||
72 | "length": 485040, | ||
73 | "offset": 4727636 | ||
74 | }, | ||
75 | "uri": "hls_450k_video.ts" | ||
76 | }, { | ||
77 | "duration": 10, | ||
78 | "byterange": { | ||
79 | "length": 709136, | ||
80 | "offset": 5212676 | ||
81 | }, | ||
82 | "uri": "hls_450k_video.ts" | ||
83 | }, { | ||
84 | "duration": 10, | ||
85 | "byterange": { | ||
86 | "length": 730004, | ||
87 | "offset": 5921812 | ||
88 | }, | ||
89 | "uri": "hls_450k_video.ts" | ||
90 | }, { | ||
91 | "duration": 10, | ||
92 | "byterange": { | ||
93 | "length": 456276, | ||
94 | "offset": 6651816 | ||
95 | }, | ||
96 | "uri": "hls_450k_video.ts" | ||
97 | }, { | ||
98 | "duration": 10, | ||
99 | "byterange": { | ||
100 | "length": 468684, | ||
101 | "offset": 7108092 | ||
102 | }, | ||
103 | "uri": "hls_450k_video.ts" | ||
104 | }, { | ||
105 | "duration": 10, | ||
106 | "byterange": { | ||
107 | "length": 444996, | ||
108 | "offset": 7576776 | ||
109 | }, | ||
110 | "uri": "hls_450k_video.ts" | ||
111 | }, { | ||
112 | "duration": 10, | ||
113 | "byterange": { | ||
114 | "length": 331444, | ||
115 | "offset": 8021772 | ||
116 | }, | ||
117 | "uri": "hls_450k_video.ts" | ||
118 | }, { | ||
119 | "duration": 1.4167, | ||
120 | "byterange": { | ||
121 | "length": 44556, | ||
122 | "offset": 8353216 | ||
123 | }, | ||
124 | "uri": "hls_450k_video.ts" | ||
125 | }] | ||
126 | } |
test/manifest/allowCache.m3u8
0 → 100644
1 | #EXTM3U | ||
2 | #EXT-X-TARGETDURATION:10 | ||
3 | #EXT-X-VERSION:4 | ||
4 | #EXT-X-ALLOW-CACHE:YES | ||
5 | #EXT-X-MEDIA-SEQUENCE:0 | ||
6 | #EXT-X-PLAYLIST-TYPE:VOD | ||
7 | #EXTINF:10, | ||
8 | #EXT-X-BYTERANGE:522828@0 | ||
9 | hls_450k_video.ts | ||
10 | #EXTINF:10, | ||
11 | #EXT-X-BYTERANGE:587500@522828 | ||
12 | hls_450k_video.ts | ||
13 | #EXTINF:10, | ||
14 | #EXT-X-BYTERANGE:713084@1110328 | ||
15 | hls_450k_video.ts | ||
16 | #EXTINF:10, | ||
17 | #EXT-X-BYTERANGE:476580@1823412 | ||
18 | hls_450k_video.ts | ||
19 | #EXTINF:10, | ||
20 | #EXT-X-BYTERANGE:535612@2299992 | ||
21 | hls_450k_video.ts | ||
22 | #EXTINF:10, | ||
23 | #EXT-X-BYTERANGE:207176@2835604 | ||
24 | hls_450k_video.ts | ||
25 | #EXTINF:10, | ||
26 | #EXT-X-BYTERANGE:455900@3042780 | ||
27 | hls_450k_video.ts | ||
28 | #EXTINF:10, | ||
29 | #EXT-X-BYTERANGE:657248@3498680 | ||
30 | hls_450k_video.ts | ||
31 | #EXTINF:10, | ||
32 | #EXT-X-BYTERANGE:571708@4155928 | ||
33 | hls_450k_video.ts | ||
34 | #EXTINF:10, | ||
35 | #EXT-X-BYTERANGE:485040@4727636 | ||
36 | hls_450k_video.ts | ||
37 | #EXTINF:10, | ||
38 | #EXT-X-BYTERANGE:709136@5212676 | ||
39 | hls_450k_video.ts | ||
40 | #EXTINF:10, | ||
41 | #EXT-X-BYTERANGE:730004@5921812 | ||
42 | hls_450k_video.ts | ||
43 | #EXTINF:10, | ||
44 | #EXT-X-BYTERANGE:456276@6651816 | ||
45 | hls_450k_video.ts | ||
46 | #EXTINF:10, | ||
47 | #EXT-X-BYTERANGE:468684@7108092 | ||
48 | hls_450k_video.ts | ||
49 | #EXTINF:10, | ||
50 | #EXT-X-BYTERANGE:444996@7576776 | ||
51 | hls_450k_video.ts | ||
52 | #EXTINF:10, | ||
53 | #EXT-X-BYTERANGE:331444@8021772 | ||
54 | hls_450k_video.ts | ||
55 | #EXTINF:1.4167, | ||
56 | #EXT-X-BYTERANGE:44556@8353216 | ||
57 | hls_450k_video.ts | ||
58 | #EXT-X-ENDLIST | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | window.brightcove_playlist_data = '#EXTM3U\n'+ | ||
2 | '#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=240000,RESOLUTION=396x224\n'+ | ||
3 | 'http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824686811001&videoId=1824650741001\n'+ | ||
4 | '#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=40000\n'+ | ||
5 | 'http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824683759001&videoId=1824650741001\n'+ | ||
6 | '#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=440000,RESOLUTION=396x224\n'+ | ||
7 | 'http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824686593001&videoId=1824650741001\n'+ | ||
8 | '#EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1928000,RESOLUTION=960x540\n'+ | ||
9 | 'http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824687660001&videoId=1824650741001'; |
test/manifest/byteRange.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "targetDuration": 10, | ||
4 | "mediaSequence": 0, | ||
5 | "playlistType": "VOD", | ||
6 | "segments": [{ | ||
7 | "duration": 10, | ||
8 | "uri": "hls_450k_video.ts" | ||
9 | }, { | ||
10 | "duration": 10, | ||
11 | "byterange": { | ||
12 | "length": 587500, | ||
13 | "offset": 522828 | ||
14 | }, | ||
15 | "uri": "hls_450k_video.ts" | ||
16 | }, { | ||
17 | "duration": 10, | ||
18 | "byterange": { | ||
19 | "length": 713084, | ||
20 | "offset": 0 | ||
21 | }, | ||
22 | "uri": "hls_450k_video2.ts" | ||
23 | }, { | ||
24 | "duration": 10, | ||
25 | "byterange": { | ||
26 | "length": 476580, | ||
27 | "offset": 1823412 | ||
28 | }, | ||
29 | "uri": "hls_450k_video.ts" | ||
30 | }, { | ||
31 | "duration": 10, | ||
32 | "byterange": { | ||
33 | "length": 535612, | ||
34 | "offset": 2299992 | ||
35 | }, | ||
36 | "uri": "hls_450k_video.ts" | ||
37 | }, { | ||
38 | "duration": 10, | ||
39 | "byterange": { | ||
40 | "length": 207176, | ||
41 | "offset": 2835604 | ||
42 | }, | ||
43 | "uri": "hls_450k_video.ts" | ||
44 | }, { | ||
45 | "duration": 10, | ||
46 | "byterange": { | ||
47 | "length": 455900, | ||
48 | "offset": 3042780 | ||
49 | }, | ||
50 | "uri": "hls_450k_video.ts" | ||
51 | }, { | ||
52 | "duration": 10, | ||
53 | "byterange": { | ||
54 | "length": 657248, | ||
55 | "offset": 3498680 | ||
56 | }, | ||
57 | "uri": "hls_450k_video.ts" | ||
58 | }, { | ||
59 | "duration": 10, | ||
60 | "byterange": { | ||
61 | "length": 571708, | ||
62 | "offset": 4155928 | ||
63 | }, | ||
64 | "uri": "hls_450k_video.ts" | ||
65 | }, { | ||
66 | "duration": 10, | ||
67 | "byterange": { | ||
68 | "length": 485040, | ||
69 | "offset": 4727636 | ||
70 | }, | ||
71 | "uri": "hls_450k_video.ts" | ||
72 | }, { | ||
73 | "duration": 10, | ||
74 | "byterange": { | ||
75 | "length": 709136, | ||
76 | "offset": 5212676 | ||
77 | }, | ||
78 | "uri": "hls_450k_video.ts" | ||
79 | }, { | ||
80 | "duration": 10, | ||
81 | "byterange": { | ||
82 | "length": 730004, | ||
83 | "offset": 5921812 | ||
84 | }, | ||
85 | "uri": "hls_450k_video.ts" | ||
86 | }, { | ||
87 | "duration": 10, | ||
88 | "byterange": { | ||
89 | "length": 456276, | ||
90 | "offset": 6651816 | ||
91 | }, | ||
92 | "uri": "hls_450k_video.ts" | ||
93 | }, { | ||
94 | "duration": 10, | ||
95 | "byterange": { | ||
96 | "length": 468684, | ||
97 | "offset": 7108092 | ||
98 | }, | ||
99 | "uri": "hls_450k_video.ts" | ||
100 | }, { | ||
101 | "duration": 10, | ||
102 | "byterange": { | ||
103 | "length": 444996, | ||
104 | "offset": 7576776 | ||
105 | }, | ||
106 | "uri": "hls_450k_video.ts" | ||
107 | }, { | ||
108 | "duration": 10, | ||
109 | "byterange": { | ||
110 | "length": 331444, | ||
111 | "offset": 8021772 | ||
112 | }, | ||
113 | "uri": "hls_450k_video.ts" | ||
114 | }, { | ||
115 | "duration": 1.4167, | ||
116 | "byterange": { | ||
117 | "length": 44556, | ||
118 | "offset": 8353216 | ||
119 | }, | ||
120 | "uri": "hls_450k_video.ts" | ||
121 | }] | ||
122 | } |
test/manifest/byteRange.m3u8
0 → 100644
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 | #EXTINF:10, | ||
9 | #EXT-X-BYTERANGE:587500@522828 | ||
10 | hls_450k_video.ts | ||
11 | #EXTINF:10, | ||
12 | #EXT-X-BYTERANGE:713084 | ||
13 | hls_450k_video2.ts | ||
14 | #EXTINF:10, | ||
15 | #EXT-X-BYTERANGE:476580@1823412 | ||
16 | hls_450k_video.ts | ||
17 | #EXTINF:10, | ||
18 | #EXT-X-BYTERANGE:535612@2299992 | ||
19 | hls_450k_video.ts | ||
20 | #EXTINF:10, | ||
21 | #EXT-X-BYTERANGE:207176@2835604 | ||
22 | hls_450k_video.ts | ||
23 | #EXTINF:10, | ||
24 | #EXT-X-BYTERANGE:455900@3042780 | ||
25 | hls_450k_video.ts | ||
26 | #EXTINF:10, | ||
27 | #EXT-X-BYTERANGE:657248@3498680 | ||
28 | hls_450k_video.ts | ||
29 | #EXTINF:10, | ||
30 | #EXT-X-BYTERANGE:571708@4155928 | ||
31 | hls_450k_video.ts | ||
32 | #EXTINF:10, | ||
33 | #EXT-X-BYTERANGE:485040@4727636 | ||
34 | hls_450k_video.ts | ||
35 | #EXTINF:10, | ||
36 | #EXT-X-BYTERANGE:709136@5212676 | ||
37 | hls_450k_video.ts | ||
38 | #EXTINF:10, | ||
39 | #EXT-X-BYTERANGE:730004@5921812 | ||
40 | hls_450k_video.ts | ||
41 | #EXTINF:10, | ||
42 | #EXT-X-BYTERANGE:456276@6651816 | ||
43 | hls_450k_video.ts | ||
44 | #EXTINF:10, | ||
45 | #EXT-X-BYTERANGE:468684@7108092 | ||
46 | hls_450k_video.ts | ||
47 | #EXTINF:10, | ||
48 | #EXT-X-BYTERANGE:444996@7576776 | ||
49 | hls_450k_video.ts | ||
50 | #EXTINF:10, | ||
51 | #EXT-X-BYTERANGE:331444@8021772 | ||
52 | hls_450k_video.ts | ||
53 | #EXTINF:1.4167, | ||
54 | #EXT-X-BYTERANGE:44556@8353216 | ||
55 | hls_450k_video.ts | ||
56 | #EXT-X-ENDLIST | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
test/manifest/disallowCache.json
0 → 100644
test/manifest/disallowCache.m3u8
0 → 100644
test/manifest/emptyAllowCache.json
0 → 100644
test/manifest/emptyAllowCache.m3u8
0 → 100644
test/manifest/emptyMediaSequence.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "mediaSequence": 0, | ||
4 | "playlistType": "VOD", | ||
5 | "targetDuration": 8, | ||
6 | "segments": [{ | ||
7 | "duration": 6.64, | ||
8 | "uri": "/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts" | ||
9 | }, { | ||
10 | "duration": 6.08, | ||
11 | "uri": "/test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts" | ||
12 | }, { | ||
13 | "duration": 6.6, | ||
14 | "uri": "/test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts" | ||
15 | }, { | ||
16 | "duration": 5, | ||
17 | "uri": "/test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts" | ||
18 | }] | ||
19 | } |
test/manifest/emptyMediaSequence.m3u8
0 → 100644
1 | #EXTM3U | ||
2 | #EXT-X-PLAYLIST-TYPE:VOD | ||
3 | #EXT-X-MEDIA-SEQUENCE: | ||
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 |
test/manifest/emptyPlaylistType.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "targetDuration": 10, | ||
4 | "mediaSequence": 0, | ||
5 | "playlistType": "VOD", | ||
6 | "segments": [{ | ||
7 | "duration": 10, | ||
8 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00001.ts" | ||
9 | }, { | ||
10 | "duration": 10, | ||
11 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00002.ts" | ||
12 | }, { | ||
13 | "duration": 10, | ||
14 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00003.ts" | ||
15 | }, { | ||
16 | "duration": 10, | ||
17 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00004.ts" | ||
18 | }, { | ||
19 | "duration": 10, | ||
20 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00005.ts" | ||
21 | }, { | ||
22 | "duration": 8, | ||
23 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00006.ts" | ||
24 | }] | ||
25 | } |
test/manifest/emptyPlaylistType.m3u8
0 → 100644
1 | #EXTM3U | ||
2 | #EXT-X-PLAYLIST-TYPE: | ||
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 | #ZEN-TOTAL-DURATION:57.9911 | ||
17 | #EXT-X-ENDLIST |
test/manifest/emptyTargetDuration.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "playlists": [{ | ||
4 | "attributes": { | ||
5 | "PROGRAM-ID": 1, | ||
6 | "BANDWIDTH": 240000, | ||
7 | "RESOLUTION": { | ||
8 | "width": 396, | ||
9 | "height": 224 | ||
10 | } | ||
11 | }, | ||
12 | "uri": "http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824686811001&videoId=1824650741001" | ||
13 | }, { | ||
14 | "attributes": { | ||
15 | "PROGRAM-ID": 1, | ||
16 | "BANDWIDTH": 40000 | ||
17 | }, | ||
18 | "uri": "http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824683759001&videoId=1824650741001" | ||
19 | }, { | ||
20 | "attributes": { | ||
21 | "PROGRAM-ID": 1, | ||
22 | "BANDWIDTH": 440000, | ||
23 | "RESOLUTION": { | ||
24 | "width": 396, | ||
25 | "height": 224 | ||
26 | } | ||
27 | }, | ||
28 | "uri": "http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824686593001&videoId=1824650741001" | ||
29 | }, { | ||
30 | "attributes": { | ||
31 | "PROGRAM-ID": 1, | ||
32 | "BANDWIDTH": 1928000, | ||
33 | "RESOLUTION": { | ||
34 | "width": 960, | ||
35 | "height": 540 | ||
36 | } | ||
37 | }, | ||
38 | "uri": "http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824687660001&videoId=1824650741001" | ||
39 | }] | ||
40 | } |
test/manifest/emptyTargetDuration.m3u8
0 → 100644
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 |
test/manifest/event.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "targetDuration": 10, | ||
4 | "mediaSequence": 0, | ||
5 | "playlistType": "EVENT", | ||
6 | "segments": [{ | ||
7 | "duration": 10, | ||
8 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00001.ts" | ||
9 | }, { | ||
10 | "duration": 10, | ||
11 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00002.ts" | ||
12 | }, { | ||
13 | "duration": 10, | ||
14 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00003.ts" | ||
15 | }, { | ||
16 | "duration": 10, | ||
17 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00004.ts" | ||
18 | }, { | ||
19 | "duration": 10, | ||
20 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00005.ts" | ||
21 | }, { | ||
22 | "duration": 8, | ||
23 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00006.ts" | ||
24 | }] | ||
25 | } |
test/manifest/event.m3u8
0 → 100644
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 | #ZEN-TOTAL-DURATION:57.9911 | ||
17 | #EXT-X-ENDLIST |
test/manifest/extinf.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "targetDuration": 10, | ||
4 | "mediaSequence": 0, | ||
5 | "playlistType": "VOD", | ||
6 | "segments": [{ | ||
7 | "duration": 10, | ||
8 | "byterange": { | ||
9 | "length": 522828, | ||
10 | "offset": 0 | ||
11 | }, | ||
12 | "uri": "hls_450k_video.ts" | ||
13 | }, { | ||
14 | "byterange": { | ||
15 | "length": 587500, | ||
16 | "offset": 522828 | ||
17 | }, | ||
18 | "uri": "hls_450k_video.ts" | ||
19 | }, { | ||
20 | "duration": 5, | ||
21 | "byterange": { | ||
22 | "length": 713084, | ||
23 | "offset": 1110328 | ||
24 | }, | ||
25 | "uri": "hls_450k_video.ts" | ||
26 | }, { | ||
27 | "duration": 9.7, | ||
28 | "byterange": { | ||
29 | "length": 476580, | ||
30 | "offset": 1823412 | ||
31 | }, | ||
32 | "uri": "hls_450k_video.ts" | ||
33 | }, { | ||
34 | "duration": 10, | ||
35 | "byterange": { | ||
36 | "length": 535612, | ||
37 | "offset": 2299992 | ||
38 | }, | ||
39 | "uri": "hls_450k_video.ts" | ||
40 | }, { | ||
41 | "duration": 10, | ||
42 | "byterange": { | ||
43 | "length": 207176, | ||
44 | "offset": 2835604 | ||
45 | }, | ||
46 | "uri": "hls_450k_video.ts" | ||
47 | }, { | ||
48 | "duration": 10, | ||
49 | "byterange": { | ||
50 | "length": 455900, | ||
51 | "offset": 3042780 | ||
52 | }, | ||
53 | "uri": "hls_450k_video.ts" | ||
54 | }, { | ||
55 | "duration": 10, | ||
56 | "byterange": { | ||
57 | "length": 657248, | ||
58 | "offset": 3498680 | ||
59 | }, | ||
60 | "uri": "hls_450k_video.ts" | ||
61 | }, { | ||
62 | "duration": 10, | ||
63 | "byterange": { | ||
64 | "length": 571708, | ||
65 | "offset": 4155928 | ||
66 | }, | ||
67 | "uri": "hls_450k_video.ts" | ||
68 | }, { | ||
69 | "duration": 10, | ||
70 | "byterange": { | ||
71 | "length": 485040, | ||
72 | "offset": 4727636 | ||
73 | }, | ||
74 | "uri": "hls_450k_video.ts" | ||
75 | }, { | ||
76 | "duration": 10, | ||
77 | "byterange": { | ||
78 | "length": 709136, | ||
79 | "offset": 5212676 | ||
80 | }, | ||
81 | "uri": "hls_450k_video.ts" | ||
82 | }, { | ||
83 | "duration": 10, | ||
84 | "byterange": { | ||
85 | "length": 730004, | ||
86 | "offset": 5921812 | ||
87 | }, | ||
88 | "uri": "hls_450k_video.ts" | ||
89 | }, { | ||
90 | "duration": 10, | ||
91 | "byterange": { | ||
92 | "length": 456276, | ||
93 | "offset": 6651816 | ||
94 | }, | ||
95 | "uri": "hls_450k_video.ts" | ||
96 | }, { | ||
97 | "duration": 10, | ||
98 | "byterange": { | ||
99 | "length": 468684, | ||
100 | "offset": 7108092 | ||
101 | }, | ||
102 | "uri": "hls_450k_video.ts" | ||
103 | }, { | ||
104 | "duration": 10, | ||
105 | "byterange": { | ||
106 | "length": 444996, | ||
107 | "offset": 7576776 | ||
108 | }, | ||
109 | "uri": "hls_450k_video.ts" | ||
110 | }, { | ||
111 | "duration": 10, | ||
112 | "byterange": { | ||
113 | "length": 331444, | ||
114 | "offset": 8021772 | ||
115 | }, | ||
116 | "uri": "hls_450k_video.ts" | ||
117 | }, { | ||
118 | "byterange": { | ||
119 | "length": 44556, | ||
120 | "offset": 8353216 | ||
121 | }, | ||
122 | "uri": "hls_450k_video.ts" | ||
123 | }] | ||
124 | } |
test/manifest/extinf.m3u8
0 → 100644
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 |
test/manifest/invalidAllowCache.json
0 → 100644
test/manifest/invalidAllowCache.m3u8
0 → 100644
test/manifest/invalidMediaSequence.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "mediaSequence": 0, | ||
4 | "playlistType": "VOD", | ||
5 | "targetDuration": 8, | ||
6 | "segments": [{ | ||
7 | "duration": 6.64, | ||
8 | "uri": "/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts" | ||
9 | }, { | ||
10 | "duration": 6.08, | ||
11 | "uri": "/test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts" | ||
12 | }, { | ||
13 | "duration": 6.6, | ||
14 | "uri": "/test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts" | ||
15 | }, { | ||
16 | "duration": 5, | ||
17 | "uri": "/test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts" | ||
18 | }] | ||
19 | } |
test/manifest/invalidMediaSequence.m3u8
0 → 100644
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 |
test/manifest/invalidPlaylistType.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "targetDuration": 10, | ||
4 | "mediaSequence": 0, | ||
5 | "playlistType": "VOD", | ||
6 | "segments": [{ | ||
7 | "duration": 10, | ||
8 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00001.ts" | ||
9 | }, { | ||
10 | "duration": 10, | ||
11 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00002.ts" | ||
12 | }, { | ||
13 | "duration": 10, | ||
14 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00003.ts" | ||
15 | }, { | ||
16 | "duration": 10, | ||
17 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00004.ts" | ||
18 | }, { | ||
19 | "duration": 10, | ||
20 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00005.ts" | ||
21 | }, { | ||
22 | "duration": 8, | ||
23 | "uri": "/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00006.ts" | ||
24 | }] | ||
25 | } |
test/manifest/invalidPlaylistType.m3u8
0 → 100644
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 | #ZEN-TOTAL-DURATION:57.9911 | ||
17 | #EXT-X-ENDLIST |
test/manifest/invalidTargetDuration.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "mediaSequence": 0, | ||
4 | "playlistType": "VOD", | ||
5 | "segments": [{ | ||
6 | "duration": 10, | ||
7 | "byterange": { | ||
8 | "length": 522828, | ||
9 | "offset": 0 | ||
10 | }, | ||
11 | "uri": "hls_450k_video.ts" | ||
12 | }, { | ||
13 | "duration": 10, | ||
14 | "byterange": { | ||
15 | "length": 587500, | ||
16 | "offset": 522828 | ||
17 | }, | ||
18 | "uri": "hls_450k_video.ts" | ||
19 | }, { | ||
20 | "duration": 10, | ||
21 | "byterange": { | ||
22 | "length": 713084, | ||
23 | "offset": 1110328 | ||
24 | }, | ||
25 | "uri": "hls_450k_video.ts" | ||
26 | }, { | ||
27 | "duration": 10, | ||
28 | "byterange": { | ||
29 | "length": 476580, | ||
30 | "offset": 1823412 | ||
31 | }, | ||
32 | "uri": "hls_450k_video.ts" | ||
33 | }, { | ||
34 | "duration": 10, | ||
35 | "byterange": { | ||
36 | "length": 535612, | ||
37 | "offset": 2299992 | ||
38 | }, | ||
39 | "uri": "hls_450k_video.ts" | ||
40 | }, { | ||
41 | "duration": 10, | ||
42 | "byterange": { | ||
43 | "length": 207176, | ||
44 | "offset": 2835604 | ||
45 | }, | ||
46 | "uri": "hls_450k_video.ts" | ||
47 | }, { | ||
48 | "duration": 10, | ||
49 | "byterange": { | ||
50 | "length": 455900, | ||
51 | "offset": 3042780 | ||
52 | }, | ||
53 | "uri": "hls_450k_video.ts" | ||
54 | }, { | ||
55 | "duration": 10, | ||
56 | "byterange": { | ||
57 | "length": 657248, | ||
58 | "offset": 3498680 | ||
59 | }, | ||
60 | "uri": "hls_450k_video.ts" | ||
61 | }, { | ||
62 | "duration": 10, | ||
63 | "byterange": { | ||
64 | "length": 571708, | ||
65 | "offset": 4155928 | ||
66 | }, | ||
67 | "uri": "hls_450k_video.ts" | ||
68 | }, { | ||
69 | "duration": 10, | ||
70 | "byterange": { | ||
71 | "length": 485040, | ||
72 | "offset": 4727636 | ||
73 | }, | ||
74 | "uri": "hls_450k_video.ts" | ||
75 | }, { | ||
76 | "duration": 10, | ||
77 | "byterange": { | ||
78 | "length": 709136, | ||
79 | "offset": 5212676 | ||
80 | }, | ||
81 | "uri": "hls_450k_video.ts" | ||
82 | }, { | ||
83 | "duration": 10, | ||
84 | "byterange": { | ||
85 | "length": 730004, | ||
86 | "offset": 5921812 | ||
87 | }, | ||
88 | "uri": "hls_450k_video.ts" | ||
89 | }, { | ||
90 | "duration": 10, | ||
91 | "byterange": { | ||
92 | "length": 456276, | ||
93 | "offset": 6651816 | ||
94 | }, | ||
95 | "uri": "hls_450k_video.ts" | ||
96 | }, { | ||
97 | "duration": 10, | ||
98 | "byterange": { | ||
99 | "length": 468684, | ||
100 | "offset": 7108092 | ||
101 | }, | ||
102 | "uri": "hls_450k_video.ts" | ||
103 | }, { | ||
104 | "duration": 10, | ||
105 | "byterange": { | ||
106 | "length": 444996, | ||
107 | "offset": 7576776 | ||
108 | }, | ||
109 | "uri": "hls_450k_video.ts" | ||
110 | }, { | ||
111 | "duration": 10, | ||
112 | "byterange": { | ||
113 | "length": 331444, | ||
114 | "offset": 8021772 | ||
115 | }, | ||
116 | "uri": "hls_450k_video.ts" | ||
117 | }, { | ||
118 | "duration": 1.4167, | ||
119 | "byterange": { | ||
120 | "length": 44556, | ||
121 | "offset": 8353216 | ||
122 | }, | ||
123 | "uri": "hls_450k_video.ts" | ||
124 | }] | ||
125 | } | ||
126 |
test/manifest/invalidTargetDuration.m3u8
0 → 100644
1 | #EXTM3U | ||
2 | #EXT-X-TARGETDURATION:NaN | ||
3 | #EXT-X-VERSION:4 | ||
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:10, | ||
10 | #EXT-X-BYTERANGE:587500@522828 | ||
11 | hls_450k_video.ts | ||
12 | #EXTINF:10, | ||
13 | #EXT-X-BYTERANGE:713084@1110328 | ||
14 | hls_450k_video.ts | ||
15 | #EXTINF:10, | ||
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:10, | ||
52 | #EXT-X-BYTERANGE:331444@8021772 | ||
53 | hls_450k_video.ts | ||
54 | #EXTINF:1.4167, | ||
55 | #EXT-X-BYTERANGE:44556@8353216 | ||
56 | hls_450k_video.ts | ||
57 | #EXT-X-ENDLIST |
test/manifest/master.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "playlists": [{ | ||
4 | "attributes": { | ||
5 | "PROGRAM-ID": 1, | ||
6 | "BANDWIDTH": 240000, | ||
7 | "RESOLUTION": { | ||
8 | "width": 396, | ||
9 | "height": 224 | ||
10 | } | ||
11 | }, | ||
12 | "uri": "http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824686811001&videoId=1824650741001" | ||
13 | }, { | ||
14 | "attributes": { | ||
15 | "PROGRAM-ID": 1, | ||
16 | "BANDWIDTH": 40000 | ||
17 | }, | ||
18 | "uri": "http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824683759001&videoId=1824650741001" | ||
19 | }, { | ||
20 | "attributes": { | ||
21 | "PROGRAM-ID": 1, | ||
22 | "BANDWIDTH": 440000, | ||
23 | "RESOLUTION": { | ||
24 | "width": 396, | ||
25 | "height": 224 | ||
26 | } | ||
27 | }, | ||
28 | "uri": "http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824686593001&videoId=1824650741001" | ||
29 | }, { | ||
30 | "attributes": { | ||
31 | "PROGRAM-ID": 1, | ||
32 | "BANDWIDTH": 1928000, | ||
33 | "RESOLUTION": { | ||
34 | "width": 960, | ||
35 | "height": 540 | ||
36 | } | ||
37 | }, | ||
38 | "uri": "http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824687660001&videoId=1824650741001" | ||
39 | }] | ||
40 | } |
test/manifest/master.m3u8
0 → 100644
1 | #EXTM3U | ||
2 | #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=240000,RESOLUTION=396x224 | ||
3 | http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824686811001&videoId=1824650741001 | ||
4 | #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=40000 | ||
5 | http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824683759001&videoId=1824650741001 | ||
6 | #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=440000,RESOLUTION=396x224 | ||
7 | http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824686593001&videoId=1824650741001 | ||
8 | #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=1928000,RESOLUTION=960x540 | ||
9 | http://c.brightcove.com/services/mobile/streaming/index/rendition.m3u8?assetId=1824687660001&videoId=1824650741001 |
test/manifest/mediaSequence.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "mediaSequence": 0, | ||
4 | "playlistType": "VOD", | ||
5 | "targetDuration": 8, | ||
6 | "segments": [{ | ||
7 | "duration": 6.64, | ||
8 | "uri": "/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts" | ||
9 | }, { | ||
10 | "duration": 6.08, | ||
11 | "uri": "/test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts" | ||
12 | }, { | ||
13 | "duration": 6.6, | ||
14 | "uri": "/test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts" | ||
15 | }, { | ||
16 | "duration": 5, | ||
17 | "uri": "/test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts" | ||
18 | }] | ||
19 | } |
test/manifest/mediaSequence.m3u8
0 → 100644
1 | #EXTM3U | ||
2 | #EXT-X-PLAYLIST-TYPE:VOD | ||
3 | #EXT-X-MEDIA-SEQUENCE:0 | ||
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 |
test/manifest/missingMediaSequence.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "mediaSequence": 0, | ||
4 | "playlistType": "VOD", | ||
5 | "targetDuration": 8, | ||
6 | "segments": [{ | ||
7 | "duration": 6.64, | ||
8 | "uri": "/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts" | ||
9 | }, { | ||
10 | "duration": 6.08, | ||
11 | "uri": "/test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts" | ||
12 | }, { | ||
13 | "duration": 6.6, | ||
14 | "uri": "/test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts" | ||
15 | }, { | ||
16 | "duration": 5, | ||
17 | "uri": "/test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts" | ||
18 | }] | ||
19 | } |
test/manifest/missingMediaSequence.m3u8
0 → 100644
1 | #EXTM3U | ||
2 | #EXT-X-PLAYLIST-TYPE:VOD | ||
3 | #EXT-X-ALLOW-CACHE:YES | ||
4 | #EXT-X-TARGETDURATION:8 | ||
5 | #EXTINF:6.640,{} | ||
6 | /test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts | ||
7 | #EXTINF:6.080,{} | ||
8 | /test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts | ||
9 | #EXTINF:6.600,{} | ||
10 | /test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts | ||
11 | #EXTINF:5.000,{} | ||
12 | /test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts | ||
13 | #EXT-X-ENDLIST |
test/manifest/missingSegmentDuration.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "mediaSequence": 0, | ||
4 | "playlistType": "VOD", | ||
5 | "targetDuration": 8, | ||
6 | "segments": [{ | ||
7 | "duration": 6.64, | ||
8 | "uri": "/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts" | ||
9 | }, { | ||
10 | "uri": "/test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts" | ||
11 | }, { | ||
12 | "uri": "/test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts" | ||
13 | }, { | ||
14 | "uri": "/test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts" | ||
15 | }] | ||
16 | } |
test/manifest/missingSegmentDuration.m3u8
0 → 100644
1 | #EXTM3U | ||
2 | #EXT-X-PLAYLIST-TYPE:VOD | ||
3 | #EXT-X-MEDIA-SEQUENCE:0 | ||
4 | #EXT-X-ALLOW-CACHE:YES | ||
5 | #EXT-X-TARGETDURATION:8 | ||
6 | #EXTINF:6.640,{} | ||
7 | /test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts | ||
8 | /test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts | ||
9 | /test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts | ||
10 | /test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts | ||
11 | #EXT-X-ENDLIST |
test/manifest/negativeMediaSequence.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "mediaSequence": -11, | ||
4 | "playlistType": "VOD", | ||
5 | "targetDuration": 8, | ||
6 | "segments": [{ | ||
7 | "duration": 6.64, | ||
8 | "uri": "/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts" | ||
9 | }, { | ||
10 | "duration": 6.08, | ||
11 | "uri": "/test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts" | ||
12 | }, { | ||
13 | "duration": 6.6, | ||
14 | "uri": "/test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts" | ||
15 | }, { | ||
16 | "duration": 5, | ||
17 | "uri": "/test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts" | ||
18 | }] | ||
19 | } |
test/manifest/negativeMediaSequence.m3u8
0 → 100644
1 | #EXTM3U | ||
2 | #EXT-X-PLAYLIST-TYPE:VOD | ||
3 | #EXT-X-MEDIA-SEQUENCE:-11 | ||
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 |
test/manifest/playlistM3U8data.js
deleted
100644 → 0
1 | window.playlistM3U8data = '#EXTM3U\n'+ | ||
2 | '#EXT-X-TARGETDURATION:10\n' + | ||
3 | '#EXT-X-VERSION:4\n' + | ||
4 | '#EXT-X-MEDIA-SEQUENCE:0\n' + | ||
5 | '#EXT-X-PLAYLIST-TYPE:VOD\n' + | ||
6 | '#EXTINF:10,\n' + | ||
7 | '#EXT-X-BYTERANGE:522828@0\n' + | ||
8 | 'hls_450k_video.ts\n' + | ||
9 | '#EXTINF:10,\n' + | ||
10 | '#EXT-X-BYTERANGE:587500@522828\n' + | ||
11 | 'hls_450k_video.ts\n' + | ||
12 | '#EXTINF:10,\n' + | ||
13 | '#EXT-X-BYTERANGE:713084@1110328\n' + | ||
14 | 'hls_450k_video.ts\n' + | ||
15 | '#EXTINF:10,\n' + | ||
16 | '#EXT-X-BYTERANGE:476580@1823412\n' + | ||
17 | 'hls_450k_video.ts\n' + | ||
18 | '#EXTINF:10,\n' + | ||
19 | '#EXT-X-BYTERANGE:535612@2299992\n' + | ||
20 | 'hls_450k_video.ts\n' + | ||
21 | '#EXTINF:10,\n' + | ||
22 | '#EXT-X-BYTERANGE:207176@2835604\n' + | ||
23 | 'hls_450k_video.ts\n' + | ||
24 | '#EXTINF:10,\n' + | ||
25 | '#EXT-X-BYTERANGE:455900@3042780\n' + | ||
26 | 'hls_450k_video.ts\n' + | ||
27 | '#EXTINF:10,\n' + | ||
28 | '#EXT-X-BYTERANGE:657248@3498680\n' + | ||
29 | 'hls_450k_video.ts\n' + | ||
30 | '#EXTINF:10,\n' + | ||
31 | '#EXT-X-BYTERANGE:571708@4155928\n' + | ||
32 | 'hls_450k_video.ts\n' + | ||
33 | '#EXTINF:10,\n' + | ||
34 | '#EXT-X-BYTERANGE:485040@4727636\n' + | ||
35 | 'hls_450k_video.ts\n' + | ||
36 | '#EXTINF:10,\n' + | ||
37 | '#EXT-X-BYTERANGE:709136@5212676\n' + | ||
38 | 'hls_450k_video.ts\n' + | ||
39 | '#EXTINF:10,\n' + | ||
40 | '#EXT-X-BYTERANGE:730004@5921812\n' + | ||
41 | 'hls_450k_video.ts\n' + | ||
42 | '#EXTINF:10,\n' + | ||
43 | '#EXT-X-BYTERANGE:456276@6651816\n' + | ||
44 | 'hls_450k_video.ts\n' + | ||
45 | '#EXTINF:10,\n' + | ||
46 | '#EXT-X-BYTERANGE:468684@7108092\n' + | ||
47 | 'hls_450k_video.ts\n' + | ||
48 | '#EXTINF:10,\n' + | ||
49 | '#EXT-X-BYTERANGE:444996@7576776\n' + | ||
50 | 'hls_450k_video.ts\n' + | ||
51 | '#EXTINF:10,\n' + | ||
52 | '#EXT-X-BYTERANGE:331444@8021772\n' + | ||
53 | 'hls_450k_video.ts\n' + | ||
54 | '#EXTINF:1.4167,\n' + | ||
55 | '#EXT-X-BYTERANGE:44556@8353216\n' + | ||
56 | 'hls_450k_video.ts\n' + | ||
57 | '#EXT-X-ENDLIST'; |
1 | window.playlist_allow_cache = '#EXTM3U\n'+ | ||
2 | '#EXT-X-TARGETDURATION:10\n' + | ||
3 | '#EXT-X-VERSION:{{{version}}}\n' + | ||
4 | '{{#if allowCache}}#EXT-X-ALLOW-CACHE:{{{allowCache}}}{{/if}}\n' + | ||
5 | '#EXT-X-MEDIA-SEQUENCE:0\n' + | ||
6 | '#EXT-X-PLAYLIST-TYPE:VOD\n' + | ||
7 | '#EXTINF:10,\n' + | ||
8 | '#EXT-X-BYTERANGE:522828@0\n' + | ||
9 | 'hls_450k_video.ts\n' + | ||
10 | '#EXTINF:10,\n' + | ||
11 | '#EXT-X-BYTERANGE:587500@522828\n' + | ||
12 | 'hls_450k_video.ts\n' + | ||
13 | '#EXTINF:10,\n' + | ||
14 | '#EXT-X-BYTERANGE:713084@1110328\n' + | ||
15 | 'hls_450k_video.ts\n' + | ||
16 | '#EXTINF:10,\n' + | ||
17 | '#EXT-X-BYTERANGE:476580@1823412\n' + | ||
18 | 'hls_450k_video.ts\n' + | ||
19 | '#EXTINF:10,\n' + | ||
20 | '#EXT-X-BYTERANGE:535612@2299992\n' + | ||
21 | 'hls_450k_video.ts\n' + | ||
22 | '#EXTINF:10,\n' + | ||
23 | '#EXT-X-BYTERANGE:207176@2835604\n' + | ||
24 | 'hls_450k_video.ts\n' + | ||
25 | '#EXTINF:10,\n' + | ||
26 | '#EXT-X-BYTERANGE:455900@3042780\n' + | ||
27 | 'hls_450k_video.ts\n' + | ||
28 | '#EXTINF:10,\n' + | ||
29 | '#EXT-X-BYTERANGE:657248@3498680\n' + | ||
30 | 'hls_450k_video.ts\n' + | ||
31 | '#EXTINF:10,\n' + | ||
32 | '#EXT-X-BYTERANGE:571708@4155928\n' + | ||
33 | 'hls_450k_video.ts\n' + | ||
34 | '#EXTINF:10,\n' + | ||
35 | '#EXT-X-BYTERANGE:485040@4727636\n' + | ||
36 | 'hls_450k_video.ts\n' + | ||
37 | '#EXTINF:10,\n' + | ||
38 | '#EXT-X-BYTERANGE:709136@5212676\n' + | ||
39 | 'hls_450k_video.ts\n' + | ||
40 | '#EXTINF:10,\n' + | ||
41 | '#EXT-X-BYTERANGE:730004@5921812\n' + | ||
42 | 'hls_450k_video.ts\n' + | ||
43 | '#EXTINF:10,\n' + | ||
44 | '#EXT-X-BYTERANGE:456276@6651816\n' + | ||
45 | 'hls_450k_video.ts\n' + | ||
46 | '#EXTINF:10,\n' + | ||
47 | '#EXT-X-BYTERANGE:468684@7108092\n' + | ||
48 | 'hls_450k_video.ts' + | ||
49 | '#EXTINF:10,\n' + | ||
50 | '#EXT-X-BYTERANGE:444996@7576776\n' + | ||
51 | 'hls_450k_video.ts\n' + | ||
52 | '#EXTINF:10,\n' + | ||
53 | '#EXT-X-BYTERANGE:331444@8021772\n' + | ||
54 | 'hls_450k_video.ts\n' + | ||
55 | '#EXTINF:1.4167,\n' + | ||
56 | '#EXT-X-BYTERANGE:44556@8353216\n' + | ||
57 | 'hls_450k_video.ts\n' + | ||
58 | '#EXT-X-ENDLIST'; |
1 | #EXTM3U | ||
2 | #EXT-X-TARGETDURATION:10 | ||
3 | #EXT-X-VERSION:{{{version}}} | ||
4 | {{#if allowCache}}#EXT-X-ALLOW-CACHE:{{{allowCache}}}{{/if}} | ||
5 | #EXT-X-MEDIA-SEQUENCE:0 | ||
6 | #EXT-X-PLAYLIST-TYPE:VOD | ||
7 | #EXTINF:10, | ||
8 | #EXT-X-BYTERANGE:522828@0 | ||
9 | hls_450k_video.ts | ||
10 | #EXTINF:10, | ||
11 | #EXT-X-BYTERANGE:587500@522828 | ||
12 | hls_450k_video.ts | ||
13 | #EXTINF:10, | ||
14 | #EXT-X-BYTERANGE:713084@1110328 | ||
15 | hls_450k_video.ts | ||
16 | #EXTINF:10, | ||
17 | #EXT-X-BYTERANGE:476580@1823412 | ||
18 | hls_450k_video.ts | ||
19 | #EXTINF:10, | ||
20 | #EXT-X-BYTERANGE:535612@2299992 | ||
21 | hls_450k_video.ts | ||
22 | #EXTINF:10, | ||
23 | #EXT-X-BYTERANGE:207176@2835604 | ||
24 | hls_450k_video.ts | ||
25 | #EXTINF:10, | ||
26 | #EXT-X-BYTERANGE:455900@3042780 | ||
27 | hls_450k_video.ts | ||
28 | #EXTINF:10, | ||
29 | #EXT-X-BYTERANGE:657248@3498680 | ||
30 | hls_450k_video.ts | ||
31 | #EXTINF:10, | ||
32 | #EXT-X-BYTERANGE:571708@4155928 | ||
33 | hls_450k_video.ts | ||
34 | #EXTINF:10, | ||
35 | #EXT-X-BYTERANGE:485040@4727636 | ||
36 | hls_450k_video.ts | ||
37 | #EXTINF:10, | ||
38 | #EXT-X-BYTERANGE:709136@5212676 | ||
39 | hls_450k_video.ts | ||
40 | #EXTINF:10, | ||
41 | #EXT-X-BYTERANGE:730004@5921812 | ||
42 | hls_450k_video.ts | ||
43 | #EXTINF:10, | ||
44 | #EXT-X-BYTERANGE:456276@6651816 | ||
45 | hls_450k_video.ts | ||
46 | #EXTINF:10, | ||
47 | #EXT-X-BYTERANGE:468684@7108092 | ||
48 | hls_450k_video.ts | ||
49 | #EXTINF:10, | ||
50 | #EXT-X-BYTERANGE:444996@7576776 | ||
51 | hls_450k_video.ts | ||
52 | #EXTINF:10, | ||
53 | #EXT-X-BYTERANGE:331444@8021772 | ||
54 | hls_450k_video.ts | ||
55 | #EXTINF:1.4167, | ||
56 | #EXT-X-BYTERANGE:44556@8353216 | ||
57 | hls_450k_video.ts | ||
58 | #EXT-X-ENDLIST | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | window.playlist_byte_range = '#EXTM3U\n'+ | ||
2 | '#EXT-X-TARGETDURATION:10\n' + | ||
3 | '#EXT-X-VERSION:{{{version}}}\n' + | ||
4 | '#EXT-X-MEDIA-SEQUENCE:0\n' + | ||
5 | '#EXT-X-PLAYLIST-TYPE:VOD\n' + | ||
6 | '#EXTINF:10,\n' + | ||
7 | '{{#if byteRange}}#EXT-X-BYTERANGE:{{{byteRange}}}{{/if}}\n' + | ||
8 | //'#EXT-X-BYTERANGE:522828@0\n' + | ||
9 | 'hls_450k_video.ts\n' + | ||
10 | '#EXTINF:10,\n' + | ||
11 | '{{#if byteRange1}}#EXT-X-BYTERANGE:{{{byteRange1}}}{{/if}}\n' + | ||
12 | //'#EXT-X-BYTERANGE:587500@522828\n' + | ||
13 | 'hls_450k_video.ts\n' + | ||
14 | '#EXTINF:10,\n' + | ||
15 | '#EXT-X-BYTERANGE:713084@1110328\n' + | ||
16 | 'hls_450k_video.ts\n' + | ||
17 | '#EXTINF:10,\n' + | ||
18 | '#EXT-X-BYTERANGE:476580@1823412\n' + | ||
19 | 'hls_450k_video.ts\n' + | ||
20 | '#EXTINF:10,\n' + | ||
21 | '#EXT-X-BYTERANGE:535612@2299992\n' + | ||
22 | 'hls_450k_video.ts\n' + | ||
23 | '#EXTINF:10,\n' + | ||
24 | '#EXT-X-BYTERANGE:207176@2835604\n' + | ||
25 | 'hls_450k_video.ts\n' + | ||
26 | '#EXTINF:10,\n' + | ||
27 | '#EXT-X-BYTERANGE:455900@3042780\n' + | ||
28 | 'hls_450k_video.ts\n' + | ||
29 | '#EXTINF:10,\n' + | ||
30 | '#EXT-X-BYTERANGE:657248@3498680\n' + | ||
31 | 'hls_450k_video.ts\n' + | ||
32 | '#EXTINF:10,\n' + | ||
33 | '#EXT-X-BYTERANGE:571708@4155928\n' + | ||
34 | 'hls_450k_video.ts\n' + | ||
35 | '#EXTINF:10,\n' + | ||
36 | '#EXT-X-BYTERANGE:485040@4727636\n' + | ||
37 | 'hls_450k_video.ts\n' + | ||
38 | '#EXTINF:10,\n' + | ||
39 | '#EXT-X-BYTERANGE:709136@5212676\n' + | ||
40 | 'hls_450k_video.ts\n' + | ||
41 | '#EXTINF:10,\n' + | ||
42 | '#EXT-X-BYTERANGE:730004@5921812\n' + | ||
43 | 'hls_450k_video.ts\n' + | ||
44 | '#EXTINF:10,\n' + | ||
45 | '#EXT-X-BYTERANGE:456276@6651816\n' + | ||
46 | 'hls_450k_video.ts\n' + | ||
47 | '#EXTINF:10,\n' + | ||
48 | '#EXT-X-BYTERANGE:468684@7108092\n' + | ||
49 | 'hls_450k_video.ts\n' + | ||
50 | '#EXTINF:10,\n' + | ||
51 | '#EXT-X-BYTERANGE:444996@7576776\n' + | ||
52 | 'hls_450k_video.ts\n' + | ||
53 | '#EXTINF:10,\n' + | ||
54 | '#EXT-X-BYTERANGE:331444@8021772\n' + | ||
55 | 'hls_450k_video.ts\n' + | ||
56 | '#EXTINF:1.4167,\n' + | ||
57 | '{{#if byteRange2}}#EXT-X-BYTERANGE:{{{byteRange2}}}{{/if}}\n' + | ||
58 | //'#EXT-X-BYTERANGE:44556@8353216\n' + | ||
59 | 'hls_450k_video.ts\n' + | ||
60 | '#EXT-X-ENDLIST'; |
1 | #EXTM3U | ||
2 | #EXT-X-TARGETDURATION:10 | ||
3 | #EXT-X-VERSION:{{{version}}} | ||
4 | #EXT-X-MEDIA-SEQUENCE:0 | ||
5 | #EXT-X-PLAYLIST-TYPE:VOD | ||
6 | #EXTINF:10, | ||
7 | {{#if byteRange}}#EXT-X-BYTERANGE:{{{byteRange}}}{{/if}} | ||
8 | //#EXT-X-BYTERANGE:522828@0 | ||
9 | hls_450k_video.ts | ||
10 | #EXTINF:10, | ||
11 | {{#if byteRange1}}#EXT-X-BYTERANGE:{{{byteRange1}}}{{/if}} | ||
12 | //#EXT-X-BYTERANGE:587500@522828 | ||
13 | hls_450k_video.ts | ||
14 | #EXTINF:10, | ||
15 | #EXT-X-BYTERANGE:713084@1110328 | ||
16 | hls_450k_video.ts | ||
17 | #EXTINF:10, | ||
18 | #EXT-X-BYTERANGE:476580@1823412 | ||
19 | hls_450k_video.ts | ||
20 | #EXTINF:10, | ||
21 | #EXT-X-BYTERANGE:535612@2299992 | ||
22 | hls_450k_video.ts | ||
23 | #EXTINF:10, | ||
24 | #EXT-X-BYTERANGE:207176@2835604 | ||
25 | hls_450k_video.ts | ||
26 | #EXTINF:10, | ||
27 | #EXT-X-BYTERANGE:455900@3042780 | ||
28 | hls_450k_video.ts | ||
29 | #EXTINF:10, | ||
30 | #EXT-X-BYTERANGE:657248@3498680 | ||
31 | hls_450k_video.ts | ||
32 | #EXTINF:10, | ||
33 | #EXT-X-BYTERANGE:571708@4155928 | ||
34 | hls_450k_video.ts | ||
35 | #EXTINF:10, | ||
36 | #EXT-X-BYTERANGE:485040@4727636 | ||
37 | hls_450k_video.ts | ||
38 | #EXTINF:10, | ||
39 | #EXT-X-BYTERANGE:709136@5212676 | ||
40 | hls_450k_video.ts | ||
41 | #EXTINF:10, | ||
42 | #EXT-X-BYTERANGE:730004@5921812 | ||
43 | hls_450k_video.ts | ||
44 | #EXTINF:10, | ||
45 | #EXT-X-BYTERANGE:456276@6651816 | ||
46 | hls_450k_video.ts | ||
47 | #EXTINF:10, | ||
48 | #EXT-X-BYTERANGE:468684@7108092 | ||
49 | hls_450k_video.ts | ||
50 | #EXTINF:10, | ||
51 | #EXT-X-BYTERANGE:444996@7576776 | ||
52 | hls_450k_video.ts | ||
53 | #EXTINF:10, | ||
54 | #EXT-X-BYTERANGE:331444@8021772 | ||
55 | hls_450k_video.ts | ||
56 | #EXTINF:1.4167, | ||
57 | {{#if byteRange2}}#EXT-X-BYTERANGE:{{{byteRange2}}}{{/if}} | ||
58 | //#EXT-X-BYTERANGE:44556@8353216 | ||
59 | hls_450k_video.ts | ||
60 | #EXT-X-ENDLIST | ||
... | \ No newline at end of file | ... | \ No newline at end of file |
1 | window.playlist_extinf_template = '#EXTM3U\n'+ | ||
2 | '#EXT-X-TARGETDURATION:10\n' + | ||
3 | '#EXT-X-VERSION:{{{version}}}\n' + | ||
4 | '#EXT-X-MEDIA-SEQUENCE:0\n' + | ||
5 | '#EXT-X-PLAYLIST-TYPE:VOD\n' + | ||
6 | '{{#if extInf}}#EXTINF:{{{extInf}}}{{/if}}\n' + | ||
7 | '#EXT-X-BYTERANGE:522828@0\n' + | ||
8 | '{{#if segment}}{{{segment}}}\n{{/if}}' + | ||
9 | '{{#if extInf1}}#EXTINF:{{{extInf1}}}{{/if}}\n' + | ||
10 | '#EXT-X-BYTERANGE:587500@522828\n' + | ||
11 | 'hls_450k_video.ts\n' + | ||
12 | '#EXTINF:10,\n' + | ||
13 | '#EXT-X-BYTERANGE:713084@1110328\n' + | ||
14 | 'hls_450k_video.ts\n' + | ||
15 | '#EXTINF:10,\n' + | ||
16 | '#EXT-X-BYTERANGE:476580@1823412\n' + | ||
17 | 'hls_450k_video.ts\n' + | ||
18 | '#EXTINF:10,\n' + | ||
19 | '#EXT-X-BYTERANGE:535612@2299992\n' + | ||
20 | 'hls_450k_video.ts\n' + | ||
21 | '#EXTINF:10,\n' + | ||
22 | '#EXT-X-BYTERANGE:207176@2835604\n' + | ||
23 | 'hls_450k_video.ts\n' + | ||
24 | '#EXTINF:10,\n' + | ||
25 | '#EXT-X-BYTERANGE:455900@3042780\n' + | ||
26 | 'hls_450k_video.ts\n' + | ||
27 | '#EXTINF:10,\n' + | ||
28 | '#EXT-X-BYTERANGE:657248@3498680\n' + | ||
29 | 'hls_450k_video.ts\n' + | ||
30 | '#EXTINF:10,\n' + | ||
31 | '#EXT-X-BYTERANGE:571708@4155928\n' + | ||
32 | 'hls_450k_video.ts\n' + | ||
33 | '#EXTINF:10,\n' + | ||
34 | '#EXT-X-BYTERANGE:485040@4727636\n' + | ||
35 | 'hls_450k_video.ts\n' + | ||
36 | '#EXTINF:10,\n' + | ||
37 | '#EXT-X-BYTERANGE:709136@5212676\n' + | ||
38 | 'hls_450k_video.ts\n' + | ||
39 | '#EXTINF:10,\n' + | ||
40 | '#EXT-X-BYTERANGE:730004@5921812\n' + | ||
41 | 'hls_450k_video.ts\n' + | ||
42 | '#EXTINF:10,\n' + | ||
43 | '#EXT-X-BYTERANGE:456276@6651816\n' + | ||
44 | 'hls_450k_video.ts\n' + | ||
45 | '#EXTINF:10,\n' + | ||
46 | '#EXT-X-BYTERANGE:468684@7108092\n' + | ||
47 | 'hls_450k_video.ts' + | ||
48 | '#EXTINF:10,\n' + | ||
49 | '#EXT-X-BYTERANGE:444996@7576776\n' + | ||
50 | 'hls_450k_video.ts\n' + | ||
51 | '#EXTINF:10,\n' + | ||
52 | '#EXT-X-BYTERANGE:331444@8021772\n' + | ||
53 | 'hls_450k_video.ts\n' + | ||
54 | '{{#if extInf2}}#EXTINF:{{{extInf2}}}{{/if}}\n' + | ||
55 | '#EXT-X-BYTERANGE:44556@8353216\n' + | ||
56 | 'hls_450k_video.ts\n' + | ||
57 | '#EXT-X-ENDLIST'; |
test/manifest/playlist_extinf_template.m3u8
0 → 100644
1 | #EXTM3U | ||
2 | #EXT-X-TARGETDURATION:10 | ||
3 | #EXT-X-VERSION:{{{version}}} | ||
4 | #EXT-X-MEDIA-SEQUENCE:0 | ||
5 | #EXT-X-PLAYLIST-TYPE:VOD | ||
6 | {{#if extInf}}#EXTINF:{{{extInf}}}{{/if}} | ||
7 | #EXT-X-BYTERANGE:522828@0 | ||
8 | {{#if segment}}{{{segment}}}\n{{/if}} | ||
9 | {{#if extInf1}}#EXTINF:{{{extInf1}}}{{/if}} | ||
10 | #EXT-X-BYTERANGE:587500@522828 | ||
11 | hls_450k_video.ts | ||
12 | #EXTINF:10, | ||
13 | #EXT-X-BYTERANGE:713084@1110328 | ||
14 | hls_450k_video.ts | ||
15 | #EXTINF:10, | ||
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:10, | ||
52 | #EXT-X-BYTERANGE:331444@8021772 | ||
53 | hls_450k_video.ts | ||
54 | {{#if extInf2}}#EXTINF:{{{extInf2}}}{{/if}} | ||
55 | #EXT-X-BYTERANGE:44556@8353216 | ||
56 | hls_450k_video.ts | ||
57 | #EXT-X-ENDLIST |
1 | window.playlist_media_sequence_template = '#EXTM3U\n'+ | ||
2 | '#EXT-X-PLAYLIST-TYPE:VOD\n'+ | ||
3 | '{{#if mediaSequence}}#EXT-X-MEDIA-SEQUENCE:{{{mediaSequence}}}{{/if}}\n'+ | ||
4 | '{{#if mediaSequence1}}#EXT-X-MEDIA-SEQUENCE:{{{mediaSequence1}}}{{/if}}\n'+ | ||
5 | '#EXT-X-ALLOW-CACHE:YES\n'+ | ||
6 | '#EXT-X-TARGETDURATION:8\n'+ | ||
7 | '#EXTINF:6.640,{}\n'+ | ||
8 | '/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts\n'+ | ||
9 | '#EXTINF:6.080,{}\n'+ | ||
10 | '/test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts\n'+ | ||
11 | '#EXTINF:6.600,{}\n'+ | ||
12 | '/test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts\n'+ | ||
13 | '#EXTINF:5.000,{}\n'+ | ||
14 | '/test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts\n'+ | ||
15 | '#EXT-X-ENDLIST' |
1 | #EXTM3U | ||
2 | #EXT-X-PLAYLIST-TYPE:VOD | ||
3 | {{#if mediaSequence}}#EXT-X-MEDIA-SEQUENCE:{{{mediaSequence}}}{{/if}} | ||
4 | {{#if mediaSequence1}}#EXT-X-MEDIA-SEQUENCE:{{{mediaSequence2}}}{{/if}} | ||
5 | #EXT-X-ALLOW-CACHE:YES | ||
6 | #EXT-X-TARGETDURATION:8 | ||
7 | #EXTINF:6.640,{} | ||
8 | /test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts | ||
9 | #EXTINF:6.080,{} | ||
10 | /test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts | ||
11 | #EXTINF:6.600,{} | ||
12 | /test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts | ||
13 | #EXTINF:5.000,{} | ||
14 | /test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts | ||
15 | #EXT-X-ENDLIST |
1 | window.playlist_target_duration_template = '#EXTM3U\n'+ | ||
2 | '#EXT-X-PLAYLIST-TYPE:VOD\n'+ | ||
3 | '#EXT-X-MEDIA-SEQUENCE:0\n'+ | ||
4 | '#EXT-X-ALLOW-CACHE:YES\n'+ | ||
5 | '{{#if targetDuration}}#EXT-X-TARGETDURATION:{{{targetDuration}}}{{/if}}\n'+ | ||
6 | '#EXTINF:6.640,{}\n'+ | ||
7 | '/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts\n'+ | ||
8 | '#EXTINF:6.080,{}\n'+ | ||
9 | '/test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts\n'+ | ||
10 | '#EXTINF:6.600,{}\n'+ | ||
11 | '/test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts\n'+ | ||
12 | '#EXTINF:5.000,{}\n'+ | ||
13 | '/test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts\n'+ | ||
14 | '#EXT-X-ENDLIST' |
1 | #EXTM3U | ||
2 | #EXT-X-PLAYLIST-TYPE:VOD | ||
3 | #EXT-X-MEDIA-SEQUENCE:0 | ||
4 | #EXT-X-ALLOW-CACHE:YES | ||
5 | {{#if targetDuration}}#EXT-X-TARGETDURATION:{{{targetDuration}}}{{/if}} | ||
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 |
1 | window.playlist_type_template = '#EXTM3U\n' + | ||
2 | '{{#if playlistType}}#EXT-X-PLAYLIST-TYPE:{{{playlistType}}}{{/if}}\n' + | ||
3 | '#EXT-X-TARGETDURATION:10\n' + | ||
4 | '#EXTINF:10,\n' + | ||
5 | '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00001.ts\n' + | ||
6 | '#EXTINF:10,\n' + | ||
7 | '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00002.ts\n' + | ||
8 | '#EXTINF:10,\n' + | ||
9 | '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00003.ts\n' + | ||
10 | '#EXTINF:10,\n' + | ||
11 | '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00004.ts\n' + | ||
12 | '#EXTINF:10,\n' + | ||
13 | '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00005.ts\n' + | ||
14 | '#EXTINF:8,\n' + | ||
15 | '/test/ts-files/zencoder/haze/Haze_Mantel_President_encoded_1200-00006.ts\n' + | ||
16 | '#ZEN-TOTAL-DURATION:57.9911\n' + | ||
17 | '#EXT-X-ENDLIST'; |
test/manifest/playlist_type_template.m3u8
0 → 100644
1 | #EXTM3U | ||
2 | {{#if playlistType}}#EXT-X-PLAYLIST-TYPE:{{{playlistType}}}{{/if}} | ||
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 | #ZEN-TOTAL-DURATION:57.9911 | ||
17 | #EXT-X-ENDLIST |
test/manifest/twoMediaSequences.json
0 → 100644
1 | { | ||
2 | "allowCache": true, | ||
3 | "mediaSequence": 11, | ||
4 | "playlistType": "VOD", | ||
5 | "targetDuration": 8, | ||
6 | "segments": [{ | ||
7 | "duration": 6.64, | ||
8 | "uri": "/test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts" | ||
9 | }, { | ||
10 | "duration": 6.08, | ||
11 | "uri": "/test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts" | ||
12 | }, { | ||
13 | "duration": 6.6, | ||
14 | "uri": "/test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts" | ||
15 | }, { | ||
16 | "duration": 5, | ||
17 | "uri": "/test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts" | ||
18 | }] | ||
19 | } |
test/manifest/twoMediaSequences.m3u8
0 → 100644
1 | #EXTM3U | ||
2 | #EXT-X-PLAYLIST-TYPE:VOD | ||
3 | #EXT-X-MEDIA-SEQUENCE:0 | ||
4 | #EXT-X-MEDIA-SEQUENCE:11 | ||
5 | #EXT-X-ALLOW-CACHE:YES | ||
6 | #EXT-X-TARGETDURATION:8 | ||
7 | #EXTINF:6.640,{} | ||
8 | /test/ts-files/tvy7/8a5e2822668b5370f4eb1438b2564fb7ab12ffe1-hi720.ts | ||
9 | #EXTINF:6.080,{} | ||
10 | /test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts | ||
11 | #EXTINF:6.600,{} | ||
12 | /test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts | ||
13 | #EXTINF:5.000,{} | ||
14 | /test/ts-files/tvy7/6cfa378684ffeb1c455a64dae6c103290a1f53d4-hi720.ts | ||
15 | #EXT-X-ENDLIST |
... | @@ -7,9 +7,6 @@ | ... | @@ -7,9 +7,6 @@ |
7 | <link rel="stylesheet" href="../libs/qunit/qunit.css" media="screen"> | 7 | <link rel="stylesheet" href="../libs/qunit/qunit.css" media="screen"> |
8 | <script src="../libs/qunit/qunit.js"></script> | 8 | <script src="../libs/qunit/qunit.js"></script> |
9 | 9 | ||
10 | <!-- handlebars.js --> | ||
11 | <script src="../libs/handlebars/handlebars-v1.1.2.js"></script> | ||
12 | |||
13 | <!-- video.js --> | 10 | <!-- video.js --> |
14 | <script src="../node_modules/video.js/dist/video-js/video.js"></script> | 11 | <script src="../node_modules/video.js/dist/video-js/video.js"></script> |
15 | 12 | ||
... | @@ -25,15 +22,6 @@ | ... | @@ -25,15 +22,6 @@ |
25 | <script src="../src/m3u8/m3u8-parser.js"></script> | 22 | <script src="../src/m3u8/m3u8-parser.js"></script> |
26 | <script src="../src/manifest-controller.js"></script> | 23 | <script src="../src/manifest-controller.js"></script> |
27 | <!-- M3U8 TEST DATA --> | 24 | <!-- M3U8 TEST DATA --> |
28 | <script src="manifest/playlistM3U8data.js"></script> | ||
29 | <script src="manifest/brightcove_playlist_m3u8.js"></script> | ||
30 | <script src="manifest/playlist_type_template.js"></script> | ||
31 | <script src="manifest/playlist_media_sequence_template.js"></script> | ||
32 | <script src="manifest/playlist_target_duration_template.js"></script> | ||
33 | <script src="manifest/playlist_extinf_template.js"></script> | ||
34 | <script src="manifest/playlist_allow_cache_template.js"></script> | ||
35 | <script src="manifest/playlist_byte_range_template.js"></script> | ||
36 | |||
37 | <script src="../tmp/manifests.js"></script> | 25 | <script src="../tmp/manifests.js"></script> |
38 | <script src="../tmp/expected.js"></script> | 26 | <script src="../tmp/expected.js"></script> |
39 | 27 | ... | ... |
-
Please register or sign in to post a comment