0201bdab by Lee Whitaker

Initial tests for allow_cache, extinf, mediasequence, and byterange.

1 parent 7452d792
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 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' +
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 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';
1 window.playlist_media_sequence_template = '#EXTM3U\n'+ 1 window.playlist_media_sequence_template = '#EXTM3U\n'+
2 '#EXT-X-PLAYLIST-TYPE:VOD\n'+ 2 '#EXT-X-PLAYLIST-TYPE:VOD\n'+
3 '{{#if mediaSequence}}#EXT-X-MEDIA-SEQUENCE:{{{mediaSequence}}}{{/if}}\n'+ 3 '{{#if mediaSequence}}#EXT-X-MEDIA-SEQUENCE:{{{mediaSequence}}}{{/if}}\n'+
4 '{{#if mediaSequence2}}#EXT-X-MEDIA-SEQUENCE:{{{mediaSequence2}}}{{/if}}\n'+ 4 '{{#if mediaSequence1}}#EXT-X-MEDIA-SEQUENCE:{{{mediaSequence2}}}{{/if}}\n'+
5 '#EXT-X-ALLOW-CACHE:YES\n'+ 5 '#EXT-X-ALLOW-CACHE:YES\n'+
6 '#EXT-X-TARGETDURATION:8\n'+ 6 '#EXT-X-TARGETDURATION:8\n'+
7 '#EXTINF:6.640,{}\n'+ 7 '#EXTINF:6.640,{}\n'+
......
...@@ -32,6 +32,10 @@ ...@@ -32,6 +32,10 @@
32 <script src="manifest/playlist_type_template.js"></script> 32 <script src="manifest/playlist_type_template.js"></script>
33 <script src="manifest/playlist_media_sequence_template.js"></script> 33 <script src="manifest/playlist_media_sequence_template.js"></script>
34 <script src="manifest/playlist_target_duration_template.js"></script> 34 <script src="manifest/playlist_target_duration_template.js"></script>
35 <script src="manifest/playlist_extinf_template.js"></script>
36 <script src="manifest/playlist_allow_cache_template.js"></script>
37 <script src="manifest/playlist_byte_range_template.js"></script>
38
35 <!-- M3U8 --> 39 <!-- M3U8 -->
36 <!-- SEGMENT --> 40 <!-- SEGMENT -->
37 <script src="tsSegment-bc.js"></script> 41 <script src="tsSegment-bc.js"></script>
......