webmsegments.js 4.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169
  1. export const parsedManifest = {
  2. allowCache: true,
  3. discontinuityStarts: [],
  4. segments: [],
  5. timelineStarts: [{ start: 0, timeline: 0 }],
  6. endList: true,
  7. mediaGroups: {
  8. 'AUDIO': {
  9. audio: {
  10. en: {
  11. language: 'en',
  12. autoselect: true,
  13. default: true,
  14. playlists: [
  15. {
  16. attributes: {
  17. 'NAME': '2',
  18. 'BANDWIDTH': 32000,
  19. 'CODECS': 'opus',
  20. 'PROGRAM-ID': 1
  21. },
  22. uri: '',
  23. endList: true,
  24. timeline: 0,
  25. resolvedUri: '',
  26. targetDuration: 4,
  27. segments: [
  28. {
  29. uri: 'audio/segment_0.chk',
  30. timeline: 0,
  31. duration: 4,
  32. resolvedUri: 'https://www.example.com/audio/segment_0.chk',
  33. map: {
  34. uri: 'audio/init.hdr',
  35. resolvedUri: 'https://www.example.com/audio/init.hdr'
  36. },
  37. number: 0,
  38. presentationTime: 0
  39. },
  40. {
  41. uri: 'audio/segment_1.chk',
  42. timeline: 0,
  43. duration: 4,
  44. resolvedUri: 'https://www.example.com/audio/segment_1.chk',
  45. map: {
  46. uri: 'audio/init.hdr',
  47. resolvedUri: 'https://www.example.com/audio/init.hdr'
  48. },
  49. number: 1,
  50. presentationTime: 4
  51. },
  52. {
  53. uri: 'audio/segment_2.chk',
  54. timeline: 0,
  55. duration: 4,
  56. resolvedUri: 'https://www.example.com/audio/segment_2.chk',
  57. map: {
  58. uri: 'audio/init.hdr',
  59. resolvedUri: 'https://www.example.com/audio/init.hdr'
  60. },
  61. number: 2,
  62. presentationTime: 8
  63. },
  64. {
  65. uri: 'audio/segment_3.chk',
  66. timeline: 0,
  67. duration: 4,
  68. resolvedUri: 'https://www.example.com/audio/segment_3.chk',
  69. map: {
  70. uri: 'audio/init.hdr',
  71. resolvedUri: 'https://www.example.com/audio/init.hdr'
  72. },
  73. number: 3,
  74. presentationTime: 12
  75. }
  76. ],
  77. mediaSequence: 0,
  78. timelineStarts: [{ start: 0, timeline: 0 }],
  79. discontinuitySequence: 0,
  80. discontinuityStarts: []
  81. }
  82. ],
  83. uri: ''
  84. }
  85. }
  86. },
  87. 'VIDEO': {},
  88. 'CLOSED-CAPTIONS': {},
  89. 'SUBTITLES': {}
  90. },
  91. uri: '',
  92. duration: 16,
  93. playlists: [
  94. {
  95. attributes: {
  96. 'AUDIO': 'audio',
  97. 'BANDWIDTH': 100000,
  98. 'CODECS': 'av1',
  99. 'FRAME-RATE': 24,
  100. 'NAME': '1',
  101. 'PROGRAM-ID': 1,
  102. 'RESOLUTION': {
  103. width: 480,
  104. height: 200
  105. },
  106. 'SUBTITLES': 'subs'
  107. },
  108. uri: '',
  109. endList: true,
  110. timeline: 0,
  111. resolvedUri: '',
  112. targetDuration: 4,
  113. segments: [
  114. {
  115. uri: 'video/segment_0.chk',
  116. timeline: 0,
  117. duration: 4,
  118. resolvedUri: 'https://www.example.com/video/segment_0.chk',
  119. map: {
  120. uri: 'video/init.hdr',
  121. resolvedUri: 'https://www.example.com/video/init.hdr'
  122. },
  123. number: 0,
  124. presentationTime: 0
  125. },
  126. {
  127. uri: 'video/segment_1.chk',
  128. timeline: 0,
  129. duration: 4,
  130. resolvedUri: 'https://www.example.com/video/segment_1.chk',
  131. map: {
  132. uri: 'video/init.hdr',
  133. resolvedUri: 'https://www.example.com/video/init.hdr'
  134. },
  135. number: 1,
  136. presentationTime: 4
  137. },
  138. {
  139. uri: 'video/segment_2.chk',
  140. timeline: 0,
  141. duration: 4,
  142. resolvedUri: 'https://www.example.com/video/segment_2.chk',
  143. map: {
  144. uri: 'video/init.hdr',
  145. resolvedUri: 'https://www.example.com/video/init.hdr'
  146. },
  147. number: 2,
  148. presentationTime: 8
  149. },
  150. {
  151. uri: 'video/segment_3.chk',
  152. timeline: 0,
  153. duration: 4,
  154. resolvedUri: 'https://www.example.com/video/segment_3.chk',
  155. map: {
  156. uri: 'video/init.hdr',
  157. resolvedUri: 'https://www.example.com/video/init.hdr'
  158. },
  159. number: 3,
  160. presentationTime: 12
  161. }
  162. ],
  163. mediaSequence: 0,
  164. timelineStarts: [{ start: 0, timeline: 0 }],
  165. discontinuitySequence: 0,
  166. discontinuityStarts: []
  167. }
  168. ]
  169. };