@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.
Files changed (134) hide show
  1. package/CONTRIBUTING.md +30 -0
  2. package/LICENSE +13 -0
  3. package/README.md +388 -0
  4. package/dist/m3u8-parser.cjs.js +1563 -0
  5. package/dist/m3u8-parser.es.js +1549 -0
  6. package/dist/m3u8-parser.js +1748 -0
  7. package/dist/m3u8-parser.min.js +2 -0
  8. package/index.html +15 -0
  9. package/package.json +100 -0
  10. package/scripts/karma.conf.js +12 -0
  11. package/scripts/rollup.config.js +47 -0
  12. package/src/index.js +19 -0
  13. package/src/line-stream.js +35 -0
  14. package/src/parse-stream.js +619 -0
  15. package/src/parser.js +748 -0
  16. package/test/fixtures/integration/absoluteUris.js +31 -0
  17. package/test/fixtures/integration/absoluteUris.m3u8 +12 -0
  18. package/test/fixtures/integration/allowCache.js +165 -0
  19. package/test/fixtures/integration/allowCache.m3u8 +58 -0
  20. package/test/fixtures/integration/allowCacheInvalid.js +21 -0
  21. package/test/fixtures/integration/allowCacheInvalid.m3u8 +10 -0
  22. package/test/fixtures/integration/alternateAudio.js +56 -0
  23. package/test/fixtures/integration/alternateAudio.m3u8 +9 -0
  24. package/test/fixtures/integration/alternateVideo.js +48 -0
  25. package/test/fixtures/integration/alternateVideo.m3u8 +8 -0
  26. package/test/fixtures/integration/brightcove.js +57 -0
  27. package/test/fixtures/integration/brightcove.m3u8 +9 -0
  28. package/test/fixtures/integration/byteRange.js +161 -0
  29. package/test/fixtures/integration/byteRange.m3u8 +56 -0
  30. package/test/fixtures/integration/dateTime.js +27 -0
  31. package/test/fixtures/integration/dateTime.m3u8 +12 -0
  32. package/test/fixtures/integration/diff-init-key.js +164 -0
  33. package/test/fixtures/integration/diff-init-key.m3u8 +57 -0
  34. package/test/fixtures/integration/disallowCache.js +21 -0
  35. package/test/fixtures/integration/disallowCache.m3u8 +10 -0
  36. package/test/fixtures/integration/disc-sequence.js +32 -0
  37. package/test/fixtures/integration/disc-sequence.m3u8 +15 -0
  38. package/test/fixtures/integration/discontinuity.js +59 -0
  39. package/test/fixtures/integration/discontinuity.m3u8 +26 -0
  40. package/test/fixtures/integration/domainUris.js +31 -0
  41. package/test/fixtures/integration/domainUris.m3u8 +12 -0
  42. package/test/fixtures/integration/empty.js +5 -0
  43. package/test/fixtures/integration/empty.m3u8 +0 -0
  44. package/test/fixtures/integration/emptyAllowCache.js +21 -0
  45. package/test/fixtures/integration/emptyAllowCache.m3u8 +10 -0
  46. package/test/fixtures/integration/emptyMediaSequence.js +31 -0
  47. package/test/fixtures/integration/emptyMediaSequence.m3u8 +14 -0
  48. package/test/fixtures/integration/emptyPlaylistType.js +40 -0
  49. package/test/fixtures/integration/emptyPlaylistType.m3u8 +16 -0
  50. package/test/fixtures/integration/emptyTargetDuration.js +57 -0
  51. package/test/fixtures/integration/emptyTargetDuration.m3u8 +10 -0
  52. package/test/fixtures/integration/encrypted.js +61 -0
  53. package/test/fixtures/integration/encrypted.m3u8 +28 -0
  54. package/test/fixtures/integration/event.js +41 -0
  55. package/test/fixtures/integration/event.m3u8 +16 -0
  56. package/test/fixtures/integration/extXPlaylistTypeInvalidPlaylist.js +15 -0
  57. package/test/fixtures/integration/extXPlaylistTypeInvalidPlaylist.m3u8 +8 -0
  58. package/test/fixtures/integration/extinf.js +165 -0
  59. package/test/fixtures/integration/extinf.m3u8 +57 -0
  60. package/test/fixtures/integration/fmp4.js +44 -0
  61. package/test/fixtures/integration/fmp4.m3u8 +14 -0
  62. package/test/fixtures/integration/headerOnly.js +5 -0
  63. package/test/fixtures/integration/headerOnly.m3u8 +1 -0
  64. package/test/fixtures/integration/invalidAllowCache.js +21 -0
  65. package/test/fixtures/integration/invalidAllowCache.m3u8 +10 -0
  66. package/test/fixtures/integration/invalidMediaSequence.js +31 -0
  67. package/test/fixtures/integration/invalidMediaSequence.m3u8 +14 -0
  68. package/test/fixtures/integration/invalidPlaylistType.js +40 -0
  69. package/test/fixtures/integration/invalidPlaylistType.m3u8 +16 -0
  70. package/test/fixtures/integration/invalidTargetDuration.js +164 -0
  71. package/test/fixtures/integration/invalidTargetDuration.m3u8 +57 -0
  72. package/test/fixtures/integration/liveMissingSegmentDuration.js +25 -0
  73. package/test/fixtures/integration/liveMissingSegmentDuration.m3u8 +9 -0
  74. package/test/fixtures/integration/liveStart30sBefore.js +54 -0
  75. package/test/fixtures/integration/liveStart30sBefore.m3u8 +22 -0
  76. package/test/fixtures/integration/llhls-byte-range.js +253 -0
  77. package/test/fixtures/integration/llhls-byte-range.m3u8 +66 -0
  78. package/test/fixtures/integration/llhls-delta-byte-range.js +149 -0
  79. package/test/fixtures/integration/llhls-delta-byte-range.m3u8 +30 -0
  80. package/test/fixtures/integration/llhls.js +214 -0
  81. package/test/fixtures/integration/llhls.m3u8 +56 -0
  82. package/test/fixtures/integration/llhlsDelta.js +186 -0
  83. package/test/fixtures/integration/llhlsDelta.m3u8 +50 -0
  84. package/test/fixtures/integration/manifestExtTTargetdurationNegative.js +14 -0
  85. package/test/fixtures/integration/manifestExtTTargetdurationNegative.m3u8 +5 -0
  86. package/test/fixtures/integration/manifestExtXEndlistEarly.js +35 -0
  87. package/test/fixtures/integration/manifestExtXEndlistEarly.m3u8 +14 -0
  88. package/test/fixtures/integration/manifestNoExtM3u.js +15 -0
  89. package/test/fixtures/integration/manifestNoExtM3u.m3u8 +4 -0
  90. package/test/fixtures/integration/master-fmp4.js +465 -0
  91. package/test/fixtures/integration/master-fmp4.m3u8 +76 -0
  92. package/test/fixtures/integration/master.js +57 -0
  93. package/test/fixtures/integration/master.m3u8 +10 -0
  94. package/test/fixtures/integration/media.js +31 -0
  95. package/test/fixtures/integration/media.m3u8 +12 -0
  96. package/test/fixtures/integration/mediaSequence.js +31 -0
  97. package/test/fixtures/integration/mediaSequence.m3u8 +14 -0
  98. package/test/fixtures/integration/missingEndlist.js +19 -0
  99. package/test/fixtures/integration/missingEndlist.m3u8 +6 -0
  100. package/test/fixtures/integration/missingExtinf.js +27 -0
  101. package/test/fixtures/integration/missingExtinf.m3u8 +11 -0
  102. package/test/fixtures/integration/missingMediaSequence.js +31 -0
  103. package/test/fixtures/integration/missingMediaSequence.m3u8 +13 -0
  104. package/test/fixtures/integration/missingSegmentDuration.js +31 -0
  105. package/test/fixtures/integration/missingSegmentDuration.m3u8 +11 -0
  106. package/test/fixtures/integration/multipleAudioGroups.js +89 -0
  107. package/test/fixtures/integration/multipleAudioGroups.m3u8 +17 -0
  108. package/test/fixtures/integration/multipleAudioGroupsCombinedMain.js +88 -0
  109. package/test/fixtures/integration/multipleAudioGroupsCombinedMain.m3u8 +17 -0
  110. package/test/fixtures/integration/multipleTargetDurations.js +28 -0
  111. package/test/fixtures/integration/multipleTargetDurations.m3u8 +8 -0
  112. package/test/fixtures/integration/multipleVideo.js +74 -0
  113. package/test/fixtures/integration/multipleVideo.m3u8 +16 -0
  114. package/test/fixtures/integration/negativeMediaSequence.js +31 -0
  115. package/test/fixtures/integration/negativeMediaSequence.m3u8 +14 -0
  116. package/test/fixtures/integration/playlist.js +165 -0
  117. package/test/fixtures/integration/playlist.m3u8 +57 -0
  118. package/test/fixtures/integration/playlistMediaSequenceHigher.js +16 -0
  119. package/test/fixtures/integration/playlistMediaSequenceHigher.m3u8 +8 -0
  120. package/test/fixtures/integration/start.js +36 -0
  121. package/test/fixtures/integration/start.m3u8 +13 -0
  122. package/test/fixtures/integration/streamInfInvalid.js +24 -0
  123. package/test/fixtures/integration/streamInfInvalid.m3u8 +6 -0
  124. package/test/fixtures/integration/twoMediaSequences.js +31 -0
  125. package/test/fixtures/integration/twoMediaSequences.m3u8 +15 -0
  126. package/test/fixtures/integration/versionInvalid.js +16 -0
  127. package/test/fixtures/integration/versionInvalid.m3u8 +8 -0
  128. package/test/fixtures/integration/whiteSpace.js +31 -0
  129. package/test/fixtures/integration/whiteSpace.m3u8 +13 -0
  130. package/test/fixtures/integration/zeroDuration.js +16 -0
  131. package/test/fixtures/integration/zeroDuration.m3u8 +7 -0
  132. package/test/line-stream.test.js +80 -0
  133. package/test/parse-stream.test.js +903 -0
  134. package/test/parser.test.js +884 -0
@@ -0,0 +1,31 @@
1
+ module.exports = {
2
+ allowCache: true,
3
+ mediaSequence: 0,
4
+ playlistType: 'VOD',
5
+ segments: [
6
+ {
7
+ duration: 10,
8
+ timeline: 0,
9
+ uri: 'media-00001.ts'
10
+ },
11
+ {
12
+ duration: 10,
13
+ timeline: 0,
14
+ uri: 'media-00002.ts'
15
+ },
16
+ {
17
+ duration: 10,
18
+ timeline: 0,
19
+ uri: 'media-00003.ts'
20
+ },
21
+ {
22
+ duration: 10,
23
+ timeline: 0,
24
+ uri: 'media-00004.ts'
25
+ }
26
+ ],
27
+ targetDuration: 10,
28
+ endList: true,
29
+ discontinuitySequence: 0,
30
+ discontinuityStarts: []
31
+ };
@@ -0,0 +1,12 @@
1
+ #EXTM3U
2
+ #EXT-X-PLAYLIST-TYPE:VOD
3
+ #EXT-X-TARGETDURATION:10
4
+ #EXTINF:10,
5
+ media-00001.ts
6
+ #EXTINF:10,
7
+ media-00002.ts
8
+ #EXTINF:10,
9
+ media-00003.ts
10
+ #EXTINF:10,
11
+ media-00004.ts
12
+ #EXT-X-ENDLIST
@@ -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: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
@@ -0,0 +1,19 @@
1
+ module.exports = {
2
+ allowCache: true,
3
+ mediaSequence: 0,
4
+ segments: [
5
+ {
6
+ duration: 10,
7
+ timeline: 0,
8
+ uri: '00001.ts'
9
+ },
10
+ {
11
+ duration: 10,
12
+ timeline: 0,
13
+ uri: '00002.ts'
14
+ }
15
+ ],
16
+ targetDuration: 10,
17
+ discontinuitySequence: 0,
18
+ discontinuityStarts: []
19
+ };
@@ -0,0 +1,6 @@
1
+ #EXTM3U
2
+ #EXT-X-TARGETDURATION:10
3
+ #EXTINF:10,
4
+ 00001.ts
5
+ #EXTINF:10,
6
+ 00002.ts
@@ -0,0 +1,27 @@
1
+ module.exports = {
2
+ allowCache: true,
3
+ mediaSequence: 0,
4
+ playlistType: 'VOD',
5
+ segments: [
6
+ {
7
+ duration: 10,
8
+ timeline: 0,
9
+ uri: 'hls_450k_video.ts'
10
+ },
11
+ {
12
+ duration: 10,
13
+ timeline: 0,
14
+ uri: 'hls_450k_video.ts'
15
+ },
16
+ {
17
+ duration: 10,
18
+ timeline: 0,
19
+ uri: 'hls_450k_video.ts'
20
+ }
21
+ ],
22
+ targetDuration: 10,
23
+ endList: true,
24
+ discontinuitySequence: 0,
25
+ discontinuityStarts: [],
26
+ version: 3
27
+ };
@@ -0,0 +1,11 @@
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
@@ -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,13 @@
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
@@ -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: 8,
13
+ timeline: 0,
14
+ uri: '/test/ts-files/tvy7/56be1cef869a1c0cc8e38864ad1add17d187f051-hi720.ts'
15
+ },
16
+ {
17
+ duration: 8,
18
+ timeline: 0,
19
+ uri: '/test/ts-files/tvy7/549c8c77f55f049741a06596e5c1e01dacaa46d0-hi720.ts'
20
+ },
21
+ {
22
+ duration: 8,
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,11 @@
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
@@ -0,0 +1,89 @@
1
+ module.exports = {
2
+ allowCache: true,
3
+ discontinuityStarts: [],
4
+ mediaGroups: {
5
+ 'AUDIO': {
6
+ 'audio-lo': {
7
+ English: {
8
+ autoselect: true,
9
+ default: true,
10
+ language: 'eng',
11
+ uri: 'englo/prog_index.m3u8'
12
+ },
13
+ Français: {
14
+ autoselect: true,
15
+ default: false,
16
+ language: 'fre',
17
+ uri: 'frelo/prog_index.m3u8'
18
+ },
19
+ Espanol: {
20
+ autoselect: true,
21
+ default: false,
22
+ language: 'sp',
23
+ uri: 'splo/prog_index.m3u8'
24
+ }
25
+ },
26
+ 'audio-hi': {
27
+ English: {
28
+ autoselect: true,
29
+ default: true,
30
+ language: 'eng',
31
+ uri: 'eng/prog_index.m3u8'
32
+ },
33
+ Français: {
34
+ autoselect: true,
35
+ default: false,
36
+ language: 'fre',
37
+ uri: 'fre/prog_index.m3u8'
38
+ },
39
+ Espanol: {
40
+ autoselect: true,
41
+ default: false,
42
+ language: 'sp',
43
+ uri: 'sp/prog_index.m3u8'
44
+ }
45
+ }
46
+ },
47
+ 'VIDEO': {},
48
+ 'CLOSED-CAPTIONS': {},
49
+ 'SUBTITLES': {}
50
+ },
51
+ playlists: [{
52
+ attributes: {
53
+ 'PROGRAM-ID': 1,
54
+ 'BANDWIDTH': 195023,
55
+ 'CODECS': 'mp4a.40.5',
56
+ 'AUDIO': 'audio-lo'
57
+ },
58
+ timeline: 0,
59
+ uri: 'lo/prog_index.m3u8'
60
+ }, {
61
+ attributes: {
62
+ 'PROGRAM-ID': 1,
63
+ 'BANDWIDTH': 260000,
64
+ 'CODECS': 'avc1.42e01e,mp4a.40.2',
65
+ 'AUDIO': 'audio-lo'
66
+ },
67
+ timeline: 0,
68
+ uri: 'lo2/prog_index.m3u8'
69
+ }, {
70
+ attributes: {
71
+ 'PROGRAM-ID': 1,
72
+ 'BANDWIDTH': 591680,
73
+ 'CODECS': 'mp4a.40.2, avc1.64001e',
74
+ 'AUDIO': 'audio-hi'
75
+ },
76
+ timeline: 0,
77
+ uri: 'hi/prog_index.m3u8'
78
+ }, {
79
+ attributes: {
80
+ 'PROGRAM-ID': 1,
81
+ 'BANDWIDTH': 650000,
82
+ 'CODECS': 'avc1.42e01e,mp4a.40.2',
83
+ 'AUDIO': 'audio-hi'
84
+ },
85
+ timeline: 0,
86
+ uri: 'hi2/prog_index.m3u8'
87
+ }],
88
+ segments: []
89
+ };
@@ -0,0 +1,17 @@
1
+ #EXTM3U
2
+ #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-lo",LANGUAGE="eng",NAME="English",AUTOSELECT=YES, DEFAULT=YES,URI="englo/prog_index.m3u8"
3
+ #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-lo",LANGUAGE="fre",NAME="Français",AUTOSELECT=YES, DEFAULT=NO,URI="frelo/prog_index.m3u8"
4
+ #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-lo",LANGUAGE="sp",NAME="Espanol",AUTOSELECT=YES, DEFAULT=NO,URI="splo/prog_index.m3u8"
5
+
6
+ #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-hi",LANGUAGE="eng",NAME="English",AUTOSELECT=YES, DEFAULT=YES,URI="eng/prog_index.m3u8"
7
+ #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-hi",LANGUAGE="fre",NAME="Français",AUTOSELECT=YES, DEFAULT=NO,URI="fre/prog_index.m3u8"
8
+ #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-hi",LANGUAGE="sp",NAME="Espanol",AUTOSELECT=YES, DEFAULT=NO,URI="sp/prog_index.m3u8"
9
+
10
+ #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=195023,CODECS="mp4a.40.5", AUDIO="audio-lo"
11
+ lo/prog_index.m3u8
12
+ #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=260000,CODECS="avc1.42e01e,mp4a.40.2", AUDIO="audio-lo"
13
+ lo2/prog_index.m3u8
14
+ #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=591680,CODECS="mp4a.40.2, avc1.64001e", AUDIO="audio-hi"
15
+ hi/prog_index.m3u8
16
+ #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=650000,CODECS="avc1.42e01e,mp4a.40.2", AUDIO="audio-hi"
17
+ hi2/prog_index.m3u8
@@ -0,0 +1,88 @@
1
+ module.exports = {
2
+ allowCache: true,
3
+ discontinuityStarts: [],
4
+ mediaGroups: {
5
+ 'AUDIO': {
6
+ 'audio-lo': {
7
+ English: {
8
+ autoselect: true,
9
+ default: true,
10
+ language: 'eng'
11
+ },
12
+ Français: {
13
+ autoselect: true,
14
+ default: false,
15
+ language: 'fre',
16
+ uri: 'frelo/prog_index.m3u8'
17
+ },
18
+ Espanol: {
19
+ autoselect: true,
20
+ default: false,
21
+ language: 'sp',
22
+ uri: 'splo/prog_index.m3u8'
23
+ }
24
+ },
25
+ 'audio-hi': {
26
+ English: {
27
+ autoselect: true,
28
+ default: true,
29
+ language: 'eng',
30
+ uri: 'eng/prog_index.m3u8'
31
+ },
32
+ Français: {
33
+ autoselect: true,
34
+ default: false,
35
+ language: 'fre',
36
+ uri: 'fre/prog_index.m3u8'
37
+ },
38
+ Espanol: {
39
+ autoselect: true,
40
+ default: false,
41
+ language: 'sp',
42
+ uri: 'sp/prog_index.m3u8'
43
+ }
44
+ }
45
+ },
46
+ 'VIDEO': {},
47
+ 'CLOSED-CAPTIONS': {},
48
+ 'SUBTITLES': {}
49
+ },
50
+ playlists: [{
51
+ attributes: {
52
+ 'PROGRAM-ID': 1,
53
+ 'BANDWIDTH': 195023,
54
+ 'CODECS': 'mp4a.40.5',
55
+ 'AUDIO': 'audio-lo'
56
+ },
57
+ timeline: 0,
58
+ uri: 'lo/prog_index.m3u8'
59
+ }, {
60
+ attributes: {
61
+ 'PROGRAM-ID': 1,
62
+ 'BANDWIDTH': 260000,
63
+ 'CODECS': 'avc1.42e01e,mp4a.40.2',
64
+ 'AUDIO': 'audio-lo'
65
+ },
66
+ timeline: 0,
67
+ uri: 'lo2/prog_index.m3u8'
68
+ }, {
69
+ attributes: {
70
+ 'PROGRAM-ID': 1,
71
+ 'BANDWIDTH': 591680,
72
+ 'CODECS': 'mp4a.40.2, avc1.64001e',
73
+ 'AUDIO': 'audio-hi'
74
+ },
75
+ timeline: 0,
76
+ uri: 'hi/prog_index.m3u8'
77
+ }, {
78
+ attributes: {
79
+ 'PROGRAM-ID': 1,
80
+ 'BANDWIDTH': 650000,
81
+ 'CODECS': 'avc1.42e01e,mp4a.40.2',
82
+ 'AUDIO': 'audio-hi'
83
+ },
84
+ timeline: 0,
85
+ uri: 'hi2/prog_index.m3u8'
86
+ }],
87
+ segments: []
88
+ };
@@ -0,0 +1,17 @@
1
+ #EXTM3U
2
+ #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-lo",LANGUAGE="eng",NAME="English",AUTOSELECT=YES, DEFAULT=YES
3
+ #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-lo",LANGUAGE="fre",NAME="Français",AUTOSELECT=YES, DEFAULT=NO,URI="frelo/prog_index.m3u8"
4
+ #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-lo",LANGUAGE="sp",NAME="Espanol",AUTOSELECT=YES, DEFAULT=NO,URI="splo/prog_index.m3u8"
5
+
6
+ #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-hi",LANGUAGE="eng",NAME="English",AUTOSELECT=YES, DEFAULT=YES,URI="eng/prog_index.m3u8"
7
+ #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-hi",LANGUAGE="fre",NAME="Français",AUTOSELECT=YES, DEFAULT=NO,URI="fre/prog_index.m3u8"
8
+ #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="audio-hi",LANGUAGE="sp",NAME="Espanol",AUTOSELECT=YES, DEFAULT=NO,URI="sp/prog_index.m3u8"
9
+
10
+ #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=195023,CODECS="mp4a.40.5", AUDIO="audio-lo"
11
+ lo/prog_index.m3u8
12
+ #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=260000,CODECS="avc1.42e01e,mp4a.40.2", AUDIO="audio-lo"
13
+ lo2/prog_index.m3u8
14
+ #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=591680,CODECS="mp4a.40.2, avc1.64001e", AUDIO="audio-hi"
15
+ hi/prog_index.m3u8
16
+ #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=650000,CODECS="avc1.42e01e,mp4a.40.2", AUDIO="audio-hi"
17
+ hi2/prog_index.m3u8
@@ -0,0 +1,28 @@
1
+ module.exports = {
2
+ allowCache: true,
3
+ mediaSequence: 0,
4
+ targetDuration: 10,
5
+ segments: [
6
+ {
7
+ uri: '001.ts',
8
+ timeline: 0
9
+ },
10
+ {
11
+ uri: '002.ts',
12
+ duration: 9,
13
+ timeline: 0
14
+ },
15
+ {
16
+ uri: '003.ts',
17
+ duration: 7,
18
+ timeline: 0
19
+ },
20
+ {
21
+ uri: '004.ts',
22
+ duration: 10,
23
+ timeline: 0
24
+ }
25
+ ],
26
+ discontinuitySequence: 0,
27
+ discontinuityStarts: []
28
+ };
@@ -0,0 +1,8 @@
1
+ #EXTM3U
2
+ 001.ts
3
+ #EXT-X-TARGETDURATION:9
4
+ 002.ts
5
+ #EXTINF:7
6
+ 003.ts
7
+ #EXT-X-TARGETDURATION:10
8
+ 004.ts
@@ -0,0 +1,74 @@
1
+ module.exports = {
2
+ allowCache: true,
3
+ discontinuityStarts: [],
4
+ mediaGroups: {
5
+ 'AUDIO': {
6
+ aac: {
7
+ English: {
8
+ autoselect: true,
9
+ default: true,
10
+ language: 'eng',
11
+ uri: 'eng/prog_index.m3u8'
12
+ }
13
+ }
14
+ },
15
+ 'VIDEO': {
16
+ '200kbs': {
17
+ Angle1: {
18
+ autoselect: true,
19
+ default: true
20
+ },
21
+ Angle2: {
22
+ autoselect: true,
23
+ default: false,
24
+ uri: 'Angle2/200kbs/prog_index.m3u8'
25
+ },
26
+ Angle3: {
27
+ autoselect: true,
28
+ default: false,
29
+ uri: 'Angle3/200kbs/prog_index.m3u8'
30
+ }
31
+ },
32
+ '500kbs': {
33
+ Angle1: {
34
+ autoselect: true,
35
+ default: true
36
+ },
37
+ Angle2: {
38
+ autoselect: true,
39
+ default: false,
40
+ uri: 'Angle2/500kbs/prog_index.m3u8'
41
+ },
42
+ Angle3: {
43
+ autoselect: true,
44
+ default: false,
45
+ uri: 'Angle3/500kbs/prog_index.m3u8'
46
+ }
47
+ }
48
+ },
49
+ 'CLOSED-CAPTIONS': {},
50
+ 'SUBTITLES': {}
51
+ },
52
+ playlists: [{
53
+ attributes: {
54
+ 'PROGRAM-ID': 1,
55
+ 'BANDWIDTH': 300000,
56
+ 'CODECS': 'mp4a.40.2,avc1.4d401e',
57
+ 'AUDIO': 'aac',
58
+ 'VIDEO': '200kbs'
59
+ },
60
+ timeline: 0,
61
+ uri: 'Angle1/200kbs/prog_index.m3u'
62
+ }, {
63
+ attributes: {
64
+ 'PROGRAM-ID': 1,
65
+ 'BANDWIDTH': 754857,
66
+ 'CODECS': 'mp4a.40.2,avc1.4d401e',
67
+ 'AUDIO': 'aac',
68
+ 'VIDEO': '500kbs'
69
+ },
70
+ timeline: 0,
71
+ uri: 'Angle1/500kbs/prog_index.m3u8'
72
+ }],
73
+ segments: []
74
+ };
@@ -0,0 +1,16 @@
1
+ #EXTM3U
2
+ #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="200kbs",NAME="Angle1",AUTOSELECT=YES,DEFAULT=YES
3
+ #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="200kbs",NAME="Angle2",AUTOSELECT=YES,DEFAULT=NO,URI="Angle2/200kbs/prog_index.m3u8"
4
+ #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="200kbs",NAME="Angle3",AUTOSELECT=YES,DEFAULT=NO,URI="Angle3/200kbs/prog_index.m3u8"
5
+
6
+ #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="500kbs",NAME="Angle1",AUTOSELECT=YES,DEFAULT=YES
7
+ #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="500kbs",NAME="Angle2",AUTOSELECT=YES,DEFAULT=NO,URI="Angle2/500kbs/prog_index.m3u8"
8
+ #EXT-X-MEDIA:TYPE=VIDEO,GROUP-ID="500kbs",NAME="Angle3",AUTOSELECT=YES,DEFAULT=NO,URI="Angle3/500kbs/prog_index.m3u8"
9
+
10
+ #EXT-X-MEDIA:TYPE=AUDIO,GROUP-ID="aac",LANGUAGE="eng",NAME="English",AUTOSELECT=YES,DEFAULT=YES,URI="eng/prog_index.m3u8"
11
+
12
+ #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=300000,CODECS="mp4a.40.2,avc1.4d401e",VIDEO="200kbs",AUDIO="aac"
13
+ Angle1/200kbs/prog_index.m3u
14
+
15
+ #EXT-X-STREAM-INF:PROGRAM-ID=1,BANDWIDTH=754857,CODECS="mp4a.40.2,avc1.4d401e",VIDEO="500kbs",AUDIO="aac"
16
+ Angle1/500kbs/prog_index.m3u8
@@ -0,0 +1,31 @@
1
+ module.exports = {
2
+ allowCache: true,
3
+ mediaSequence: -11,
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:-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