mattebox 0.17.1 → 0.18.0

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 (213) hide show
  1. package/README.md +1 -1
  2. package/dist/cdn/mattebox.dash-drm.min.js +3 -3
  3. package/dist/cdn/mattebox.dash-ll.min.js +3 -3
  4. package/dist/cdn/mattebox.dash.min.js +3 -3
  5. package/dist/cdn/mattebox.dual-drm.min.js +3 -3
  6. package/dist/cdn/mattebox.dual-ll.min.js +3 -3
  7. package/dist/cdn/mattebox.dual-ts-drm.min.js +3 -3
  8. package/dist/cdn/mattebox.dual-ts.min.js +3 -3
  9. package/dist/cdn/mattebox.dual.min.js +3 -3
  10. package/dist/cdn/mattebox.hls-drm.min.js +3 -3
  11. package/dist/cdn/mattebox.hls-ll.min.js +3 -3
  12. package/dist/cdn/mattebox.hls-ts-drm.min.js +3 -3
  13. package/dist/cdn/mattebox.hls-ts.min.js +3 -3
  14. package/dist/cdn/mattebox.hls.min.js +3 -3
  15. package/dist/cdn/mattebox.kernel.min.js +1 -1
  16. package/dist/cdn/mattebox.min.js +6 -6
  17. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/asyncToGenerator.js +1 -1
  18. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/defineProperty.js +1 -1
  19. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/objectSpread2.js +1 -1
  20. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/objectWithoutProperties.js +3 -3
  21. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/objectWithoutPropertiesLoose.js +2 -2
  22. package/dist/es2015/_virtual/_@oxc-project_runtime@0.158.0/helpers/esm/toPrimitive.js +13 -0
  23. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/toPropertyKey.js +1 -1
  24. package/dist/es2015/_virtual/{_@oxc-project_runtime@0.155.0 → _@oxc-project_runtime@0.158.0}/helpers/esm/typeof.js +1 -1
  25. package/dist/es2015/containers/codec-probe/index.js +1 -1
  26. package/dist/es2015/containers/fmp4/fit.js +1 -1
  27. package/dist/es2015/containers/id3.js +1 -1
  28. package/dist/es2015/containers/packed-audio/index.js +1 -1
  29. package/dist/es2015/containers/scte35.js +1 -1
  30. package/dist/es2015/containers/ts-transmux/demux.js +1 -1
  31. package/dist/es2015/containers/ts-transmux/h264.js +1 -1
  32. package/dist/es2015/containers/ts-transmux/h265.js +1 -1
  33. package/dist/es2015/containers/ts-transmux/index.js +3 -3
  34. package/dist/es2015/containers/ts-transmux/runner.js +2 -2
  35. package/dist/es2015/containers/ts-transmux/transmux.js +3 -3
  36. package/dist/es2015/containers/webvtt.js +1 -1
  37. package/dist/es2015/containers/wvtt.js +1 -1
  38. package/dist/es2015/eme/index.js +3 -3
  39. package/dist/es2015/index.js +10 -10
  40. package/dist/es2015/kernel/append-queue.js +1 -1
  41. package/dist/es2015/kernel/dry-run.js +1 -1
  42. package/dist/es2015/kernel/lifecycle.js +1 -1
  43. package/dist/es2015/kernel/mse.js +15 -3
  44. package/dist/es2015/kernel/prepare.js +2 -2
  45. package/dist/es2015/kernel/reducer.js +17 -5
  46. package/dist/es2015/kernel/refresh.js +1 -1
  47. package/dist/es2015/kernel/rendition-select.js +5 -5
  48. package/dist/es2015/kernel/scheduler.js +1 -1
  49. package/dist/es2015/kernel/sinks/caption-tracks.js +1 -1
  50. package/dist/es2015/kernel/sinks/text-formats.js +1 -1
  51. package/dist/es2015/kernel/timeline.js +1 -1
  52. package/dist/es2015/kernel/trace.js +1 -1
  53. package/dist/es2015/kernel/transport.js +2 -2
  54. package/dist/es2015/presets/dash/index.js +2 -1
  55. package/dist/es2015/presets/dash-drm/index.js +3 -1
  56. package/dist/es2015/presets/dash-ll/index.js +3 -1
  57. package/dist/es2015/presets/define.js +2 -2
  58. package/dist/es2015/presets/dual/index.js +3 -1
  59. package/dist/es2015/presets/dual-drm/index.js +4 -1
  60. package/dist/es2015/presets/dual-ll/index.js +4 -1
  61. package/dist/es2015/presets/dual-ts/index.js +4 -1
  62. package/dist/es2015/presets/dual-ts-drm/index.js +5 -1
  63. package/dist/es2015/presets/full/index.js +15 -10
  64. package/dist/es2015/presets/hls/index.js +2 -1
  65. package/dist/es2015/presets/hls-drm/index.js +3 -1
  66. package/dist/es2015/presets/hls-ll/index.js +3 -1
  67. package/dist/es2015/presets/hls-ts/index.js +3 -1
  68. package/dist/es2015/presets/hls-ts-drm/index.js +4 -1
  69. package/dist/es2015/presets/tiers/base.js +52 -0
  70. package/dist/es2015/presets/tiers/dash-ll.js +17 -0
  71. package/dist/es2015/presets/tiers/dash.js +14 -0
  72. package/dist/es2015/presets/tiers/drm.js +21 -0
  73. package/dist/es2015/presets/tiers/hls-ll.js +17 -0
  74. package/dist/es2015/presets/tiers/hls.js +19 -0
  75. package/dist/es2015/presets/tiers/low-latency.js +16 -0
  76. package/dist/es2015/presets/tiers/ts.js +23 -0
  77. package/dist/es2015/protocols/dash-cmaf/index.js +2 -2
  78. package/dist/es2015/protocols/dash-cmaf/parse.js +1 -1
  79. package/dist/es2015/protocols/dash-cmaf/periods-runtime.js +1 -1
  80. package/dist/es2015/protocols/dash-cmaf/periods.js +1 -1
  81. package/dist/es2015/protocols/dash-live/index.js +2 -2
  82. package/dist/es2015/protocols/dash-ll/index.js +1 -1
  83. package/dist/es2015/protocols/hls-cmaf/index.js +1 -1
  84. package/dist/es2015/protocols/hls-cmaf/parse.js +6 -4
  85. package/dist/es2015/protocols/hls-cmaf/unavailable.js +1 -1
  86. package/dist/es2015/protocols/hls-live/index.js +1 -1
  87. package/dist/es2015/protocols/hls-ll/index.js +1 -1
  88. package/dist/es2015/protocols/hls-ll/parse.js +2 -2
  89. package/dist/es2015/stages/abr/index.js +1 -1
  90. package/dist/es2015/stages/aes-128/index.js +1 -1
  91. package/dist/es2015/stages/chapters/index.js +2 -2
  92. package/dist/es2015/stages/chapters/parse.js +2 -2
  93. package/dist/es2015/stages/cmcd/index.js +1 -1
  94. package/dist/es2015/stages/codec-probe/index.js +2 -2
  95. package/dist/es2015/stages/content-steering/index.js +1 -1
  96. package/dist/es2015/stages/eme-core/index.js +4 -4
  97. package/dist/es2015/stages/eme-fairplay/index.js +1 -1
  98. package/dist/es2015/stages/eme-wiseplay/index.js +24 -0
  99. package/dist/es2015/stages/hdr/index.js +1 -1
  100. package/dist/es2015/stages/interstitials/breaks.js +1 -1
  101. package/dist/es2015/stages/interstitials/index.js +3 -3
  102. package/dist/es2015/stages/nal-scan/index.js +1 -1
  103. package/dist/es2015/stages/qoe/index.js +1 -1
  104. package/dist/es2015/stages/recovery/index.js +1 -1
  105. package/dist/es2015/stages/rendition-names/index.js +1 -1
  106. package/dist/es2015/stages/text-cea608/decode.js +1 -1
  107. package/dist/es2015/stages/text-cea708/decode.js +2 -2
  108. package/dist/es2015/stages/text-cea708/index.js +1 -1
  109. package/dist/es2015/stages/text-ttml/index.js +3 -3
  110. package/dist/es2015/stages/text-ttml/parse.js +1 -1
  111. package/dist/es2015/stages/thumbnails/index.js +2 -2
  112. package/dist/es2015/stages/timed-metadata/index.js +2 -2
  113. package/dist/es2015/stages/trick-play/index.js +5 -5
  114. package/dist/kernel/mse.d.ts.map +1 -1
  115. package/dist/kernel/mse.js +18 -2
  116. package/dist/kernel/mse.js.map +1 -1
  117. package/dist/kernel/reducer.d.ts +1 -1
  118. package/dist/kernel/reducer.d.ts.map +1 -1
  119. package/dist/kernel/reducer.js +17 -1
  120. package/dist/kernel/reducer.js.map +1 -1
  121. package/dist/presets/dash/index.d.ts.map +1 -1
  122. package/dist/presets/dash/index.js +2 -1
  123. package/dist/presets/dash/index.js.map +1 -1
  124. package/dist/presets/dash-drm/index.d.ts.map +1 -1
  125. package/dist/presets/dash-drm/index.js +3 -1
  126. package/dist/presets/dash-drm/index.js.map +1 -1
  127. package/dist/presets/dash-ll/index.d.ts.map +1 -1
  128. package/dist/presets/dash-ll/index.js +3 -1
  129. package/dist/presets/dash-ll/index.js.map +1 -1
  130. package/dist/presets/dual/index.d.ts.map +1 -1
  131. package/dist/presets/dual/index.js +3 -1
  132. package/dist/presets/dual/index.js.map +1 -1
  133. package/dist/presets/dual-drm/index.d.ts.map +1 -1
  134. package/dist/presets/dual-drm/index.js +4 -1
  135. package/dist/presets/dual-drm/index.js.map +1 -1
  136. package/dist/presets/dual-ll/index.d.ts.map +1 -1
  137. package/dist/presets/dual-ll/index.js +4 -1
  138. package/dist/presets/dual-ll/index.js.map +1 -1
  139. package/dist/presets/dual-ts/index.d.ts.map +1 -1
  140. package/dist/presets/dual-ts/index.js +4 -1
  141. package/dist/presets/dual-ts/index.js.map +1 -1
  142. package/dist/presets/dual-ts-drm/index.d.ts.map +1 -1
  143. package/dist/presets/dual-ts-drm/index.js +5 -1
  144. package/dist/presets/dual-ts-drm/index.js.map +1 -1
  145. package/dist/presets/full/index.d.ts.map +1 -1
  146. package/dist/presets/full/index.js +6 -1
  147. package/dist/presets/full/index.js.map +1 -1
  148. package/dist/presets/hls/index.d.ts.map +1 -1
  149. package/dist/presets/hls/index.js +2 -1
  150. package/dist/presets/hls/index.js.map +1 -1
  151. package/dist/presets/hls-drm/index.d.ts.map +1 -1
  152. package/dist/presets/hls-drm/index.js +3 -1
  153. package/dist/presets/hls-drm/index.js.map +1 -1
  154. package/dist/presets/hls-ll/index.d.ts.map +1 -1
  155. package/dist/presets/hls-ll/index.js +3 -1
  156. package/dist/presets/hls-ll/index.js.map +1 -1
  157. package/dist/presets/hls-ts/index.d.ts.map +1 -1
  158. package/dist/presets/hls-ts/index.js +3 -1
  159. package/dist/presets/hls-ts/index.js.map +1 -1
  160. package/dist/presets/hls-ts-drm/index.d.ts.map +1 -1
  161. package/dist/presets/hls-ts-drm/index.js +4 -1
  162. package/dist/presets/hls-ts-drm/index.js.map +1 -1
  163. package/dist/presets/tiers/base.d.ts +13 -0
  164. package/dist/presets/tiers/base.d.ts.map +1 -0
  165. package/dist/presets/tiers/base.js +51 -0
  166. package/dist/presets/tiers/base.js.map +1 -0
  167. package/dist/presets/tiers/dash-ll.d.ts +8 -0
  168. package/dist/presets/tiers/dash-ll.d.ts.map +1 -0
  169. package/dist/presets/tiers/dash-ll.js +16 -0
  170. package/dist/presets/tiers/dash-ll.js.map +1 -0
  171. package/dist/presets/tiers/dash.d.ts +4 -0
  172. package/dist/presets/tiers/dash.d.ts.map +1 -0
  173. package/dist/presets/tiers/dash.js +13 -0
  174. package/dist/presets/tiers/dash.js.map +1 -0
  175. package/dist/presets/tiers/drm.d.ts +4 -0
  176. package/dist/presets/tiers/drm.d.ts.map +1 -0
  177. package/dist/presets/tiers/drm.js +15 -0
  178. package/dist/presets/tiers/drm.js.map +1 -0
  179. package/dist/presets/tiers/hls-ll.d.ts +7 -0
  180. package/dist/presets/tiers/hls-ll.d.ts.map +1 -0
  181. package/dist/presets/tiers/hls-ll.js +16 -0
  182. package/dist/presets/tiers/hls-ll.js.map +1 -0
  183. package/dist/presets/tiers/hls.d.ts +4 -0
  184. package/dist/presets/tiers/hls.d.ts.map +1 -0
  185. package/dist/presets/tiers/hls.js +16 -0
  186. package/dist/presets/tiers/hls.js.map +1 -0
  187. package/dist/presets/tiers/low-latency.d.ts +7 -0
  188. package/dist/presets/tiers/low-latency.d.ts.map +1 -0
  189. package/dist/presets/tiers/low-latency.js +15 -0
  190. package/dist/presets/tiers/low-latency.js.map +1 -0
  191. package/dist/presets/tiers/ts.d.ts +8 -0
  192. package/dist/presets/tiers/ts.d.ts.map +1 -0
  193. package/dist/presets/tiers/ts.js +18 -0
  194. package/dist/presets/tiers/ts.js.map +1 -0
  195. package/dist/protocols/hls-cmaf/parse.d.ts.map +1 -1
  196. package/dist/protocols/hls-cmaf/parse.js +8 -0
  197. package/dist/protocols/hls-cmaf/parse.js.map +1 -1
  198. package/dist/stages/drm-shared.d.ts +1 -1
  199. package/dist/stages/drm-shared.js +1 -1
  200. package/dist/stages/eme-core/index.js +2 -2
  201. package/dist/stages/eme-wiseplay/index.d.ts +26 -0
  202. package/dist/stages/eme-wiseplay/index.d.ts.map +1 -0
  203. package/dist/stages/eme-wiseplay/index.js +29 -0
  204. package/dist/stages/eme-wiseplay/index.js.map +1 -0
  205. package/dist/types/ir.d.ts +7 -0
  206. package/dist/types/ir.d.ts.map +1 -1
  207. package/package.json +2 -2
  208. package/dist/es2015/_virtual/_@oxc-project_runtime@0.155.0/helpers/esm/toPrimitive.js +0 -13
  209. package/dist/es2015/presets/tiers.js +0 -123
  210. package/dist/presets/tiers.d.ts +0 -41
  211. package/dist/presets/tiers.d.ts.map +0 -1
  212. package/dist/presets/tiers.js +0 -112
  213. package/dist/presets/tiers.js.map +0 -1
@@ -2,7 +2,9 @@
2
2
  * The `hls-drm` preset: `hls` plus the EME stages, for protected HLS.
3
3
  */
4
4
  import { definePreset } from '../define.js';
5
- import { base, drmTier, hlsLine } from '../tiers.js';
5
+ import { base } from '../tiers/base.js';
6
+ import { drmTier } from '../tiers/drm.js';
7
+ import { hlsLine } from '../tiers/hls.js';
6
8
  const preset = definePreset('hls-drm', () => [...hlsLine(), ...base(), ...drmTier()]);
7
9
  export default preset;
8
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presets/hls-drm/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,aAAa,CAAC;AAErD,MAAM,MAAM,GAAG,YAAY,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,OAAO,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC;AACtF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presets/hls-drm/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAE1C,MAAM,MAAM,GAAG,YAAY,CAAC,SAAS,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,OAAO,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,OAAO,EAAE,CAAC,CAAC,CAAC;AACtF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presets/hls-ll/index.ts"],"names":[],"mappings":"AAOA,QAAA,MAAM,MAAM,6BAAiF,CAAC;AAC9F,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presets/hls-ll/index.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,MAAM,6BAAiF,CAAC;AAC9F,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC"}
@@ -3,7 +3,9 @@
3
3
  * live catch-up, the base. A stream without parts plays as in `hls`.
4
4
  */
5
5
  import { definePreset } from '../define.js';
6
- import { base, hlsLlLine, lowLatencyTier } from '../tiers.js';
6
+ import { base } from '../tiers/base.js';
7
+ import { hlsLlLine } from '../tiers/hls-ll.js';
8
+ import { lowLatencyTier } from '../tiers/low-latency.js';
7
9
  const preset = definePreset('hls-ll', () => [...hlsLlLine(), ...lowLatencyTier(), ...base()]);
8
10
  export default preset;
9
11
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presets/hls-ll/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,SAAS,EAAE,cAAc,EAAE,MAAM,aAAa,CAAC;AAE9D,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,SAAS,EAAE,EAAE,GAAG,cAAc,EAAE,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC;AAC9F,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presets/hls-ll/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,cAAc,EAAE,MAAM,yBAAyB,CAAC;AAEzD,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,SAAS,EAAE,EAAE,GAAG,cAAc,EAAE,EAAE,GAAG,IAAI,EAAE,CAAC,CAAC,CAAC;AAC9F,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presets/hls-ts/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM,6BAAuE,CAAC;AACpF,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presets/hls-ts/index.ts"],"names":[],"mappings":"AAQA,QAAA,MAAM,MAAM,6BAAuE,CAAC;AACpF,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC"}
@@ -2,7 +2,9 @@
2
2
  * The `hls-ts` preset: `hls` plus the MPEG-TS family, for a backend that still emits transport streams.
3
3
  */
4
4
  import { definePreset } from '../define.js';
5
- import { base, hlsLine, tsTier } from '../tiers.js';
5
+ import { base } from '../tiers/base.js';
6
+ import { hlsLine } from '../tiers/hls.js';
7
+ import { tsTier } from '../tiers/ts.js';
6
8
  const preset = definePreset('hls-ts', () => [...hlsLine(), ...base(), ...tsTier()]);
7
9
  export default preset;
8
10
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presets/hls-ts/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAEpD,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,OAAO,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC;AACpF,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presets/hls-ts/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,MAAM,MAAM,GAAG,YAAY,CAAC,QAAQ,EAAE,GAAG,EAAE,CAAC,CAAC,GAAG,OAAO,EAAE,EAAE,GAAG,IAAI,EAAE,EAAE,GAAG,MAAM,EAAE,CAAC,CAAC,CAAC;AACpF,eAAe,MAAM,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presets/hls-ts-drm/index.ts"],"names":[],"mappings":"AAMA,QAAA,MAAM,MAAM,6BAKV,CAAC;AACH,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/presets/hls-ts-drm/index.ts"],"names":[],"mappings":"AASA,QAAA,MAAM,MAAM,6BAKV,CAAC;AACH,eAAe,MAAM,CAAC;AACtB,YAAY,EAAE,MAAM,EAAE,aAAa,EAAE,kBAAkB,EAAE,MAAM,cAAc,CAAC"}
@@ -2,7 +2,10 @@
2
2
  * The `hls-ts-drm` preset: `hls-ts` plus the EME stages.
3
3
  */
4
4
  import { definePreset } from '../define.js';
5
- import { base, drmTier, hlsLine, tsTier } from '../tiers.js';
5
+ import { base } from '../tiers/base.js';
6
+ import { drmTier } from '../tiers/drm.js';
7
+ import { hlsLine } from '../tiers/hls.js';
8
+ import { tsTier } from '../tiers/ts.js';
6
9
  const preset = definePreset('hls-ts-drm', () => [
7
10
  ...hlsLine(),
8
11
  ...base(),
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presets/hls-ts-drm/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,OAAO,EAAE,OAAO,EAAE,MAAM,EAAE,MAAM,aAAa,CAAC;AAE7D,MAAM,MAAM,GAAG,YAAY,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC;IAC9C,GAAG,OAAO,EAAE;IACZ,GAAG,IAAI,EAAE;IACT,GAAG,MAAM,EAAE;IACX,GAAG,OAAO,EAAE;CACb,CAAC,CAAC;AACH,eAAe,MAAM,CAAC"}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/presets/hls-ts-drm/index.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,OAAO,EAAE,YAAY,EAAE,MAAM,cAAc,CAAC;AAC5C,OAAO,EAAE,IAAI,EAAE,MAAM,kBAAkB,CAAC;AACxC,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,OAAO,EAAE,MAAM,iBAAiB,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC,MAAM,MAAM,GAAG,YAAY,CAAC,YAAY,EAAE,GAAG,EAAE,CAAC;IAC9C,GAAG,OAAO,EAAE;IACZ,GAAG,IAAI,EAAE;IACT,GAAG,MAAM,EAAE;IACX,GAAG,OAAO,EAAE;CACb,CAAC,CAAC;AACH,eAAe,MAAM,CAAC"}
@@ -0,0 +1,13 @@
1
+ import type { Stage } from '../../types/stage.js';
2
+ /**
3
+ * What every preset carries: adaptive quality with a size cap, recovery, content steering (inert until a manifest asks for it),
4
+ * alternate audio with codec switching, WebVTT subtitles, CMAF timing (reads
5
+ * each segment's decode time so the kernel lands it at its playlist time,
6
+ * whatever clock the packager wrote), program date time from either
7
+ * protocol's anchor, the codec probe (types a SourceBuffer whose playlist
8
+ * declares no codecs, which Chrome otherwise refuses), and CEA-608 captions
9
+ * from fMP4 video. The caption scan costs per NAL unit, not per byte, and
10
+ * only when a segment has H.264 or HEVC.
11
+ */
12
+ export declare function base(): Stage[];
13
+ //# sourceMappingURL=base.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../../src/presets/tiers/base.ts"],"names":[],"mappings":"AAqBA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;;;;;;GASG;AACH,wBAAgB,IAAI,IAAI,KAAK,EAAE,CAkB9B"}
@@ -0,0 +1,51 @@
1
+ /**
2
+ * One group of the preset matrix. Each group is its own module so a preset
3
+ * imports only the groups it composes: a bundle that splits the presets into
4
+ * lazy chunks then gives each preset its stages and no others. Each group is
5
+ * a function so a preset gets fresh stage instances.
6
+ */
7
+ import abr from '../../stages/abr/index.js';
8
+ import abrCapSize from '../../stages/abr-cap-size/index.js';
9
+ import altAudio from '../../stages/alt-audio/index.js';
10
+ import cmafTiming from '../../stages/cmaf-timing/index.js';
11
+ import codecProbe from '../../stages/codec-probe/index.js';
12
+ import codecSwitch from '../../stages/codec-switch/index.js';
13
+ import contentSteering from '../../stages/content-steering/index.js';
14
+ import forcedSubtitles from '../../stages/forced-subtitles/index.js';
15
+ import mp4Box from '../../stages/mp4-box/index.js';
16
+ import nalScan from '../../stages/nal-scan/index.js';
17
+ import pdt from '../../stages/pdt/index.js';
18
+ import recovery from '../../stages/recovery/index.js';
19
+ import textCea608 from '../../stages/text-cea608/index.js';
20
+ import textWebvtt from '../../stages/text-webvtt/index.js';
21
+ import textWebvttSegmented from '../../stages/text-webvtt-segmented/index.js';
22
+ /**
23
+ * What every preset carries: adaptive quality with a size cap, recovery, content steering (inert until a manifest asks for it),
24
+ * alternate audio with codec switching, WebVTT subtitles, CMAF timing (reads
25
+ * each segment's decode time so the kernel lands it at its playlist time,
26
+ * whatever clock the packager wrote), program date time from either
27
+ * protocol's anchor, the codec probe (types a SourceBuffer whose playlist
28
+ * declares no codecs, which Chrome otherwise refuses), and CEA-608 captions
29
+ * from fMP4 video. The caption scan costs per NAL unit, not per byte, and
30
+ * only when a segment has H.264 or HEVC.
31
+ */
32
+ export function base() {
33
+ return [
34
+ abr(),
35
+ abrCapSize(),
36
+ recovery(),
37
+ contentSteering(),
38
+ codecSwitch(),
39
+ altAudio(),
40
+ textWebvtt(),
41
+ textWebvttSegmented(),
42
+ forcedSubtitles(),
43
+ cmafTiming(),
44
+ pdt(),
45
+ mp4Box(),
46
+ codecProbe(),
47
+ nalScan(),
48
+ textCea608(),
49
+ ];
50
+ }
51
+ //# sourceMappingURL=base.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"base.js","sourceRoot":"","sources":["../../../src/presets/tiers/base.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,GAAG,MAAM,2BAA2B,CAAC;AAC5C,OAAO,UAAU,MAAM,oCAAoC,CAAC;AAC5D,OAAO,QAAQ,MAAM,iCAAiC,CAAC;AACvD,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,eAAe,MAAM,wCAAwC,CAAC;AACrE,OAAO,eAAe,MAAM,wCAAwC,CAAC;AACrE,OAAO,MAAM,MAAM,+BAA+B,CAAC;AACnD,OAAO,OAAO,MAAM,gCAAgC,CAAC;AACrD,OAAO,GAAG,MAAM,2BAA2B,CAAC;AAC5C,OAAO,QAAQ,MAAM,gCAAgC,CAAC;AACtD,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,OAAO,UAAU,MAAM,mCAAmC,CAAC;AAC3D,OAAO,mBAAmB,MAAM,6CAA6C,CAAC;AAG9E;;;;;;;;;GASG;AACH,MAAM,UAAU,IAAI;IAClB,OAAO;QACL,GAAG,EAAE;QACL,UAAU,EAAE;QACZ,QAAQ,EAAE;QACV,eAAe,EAAE;QACjB,WAAW,EAAE;QACb,QAAQ,EAAE;QACV,UAAU,EAAE;QACZ,mBAAmB,EAAE;QACrB,eAAe,EAAE;QACjB,UAAU,EAAE;QACZ,GAAG,EAAE;QACL,MAAM,EAAE;QACR,UAAU,EAAE;QACZ,OAAO,EAAE;QACT,UAAU,EAAE;KACb,CAAC;AACJ,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Stage } from '../../types/stage.js';
2
+ /**
3
+ * Low-latency DASH: dash-ll in place of dash-cmaf and dash-live, which it
4
+ * contains. An MPD without low-latency signalling plays as the DASH line
5
+ * plays it.
6
+ */
7
+ export declare function dashLlLine(): Stage[];
8
+ //# sourceMappingURL=dash-ll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dash-ll.d.ts","sourceRoot":"","sources":["../../../src/presets/tiers/dash-ll.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;GAIG;AACH,wBAAgB,UAAU,IAAI,KAAK,EAAE,CAEpC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * One group of the preset matrix. Each group is its own module so a preset
3
+ * imports only the groups it composes: a bundle that splits the presets into
4
+ * lazy chunks then gives each preset its stages and no others. Each group is
5
+ * a function so a preset gets fresh stage instances.
6
+ */
7
+ import dashLl from '../../protocols/dash-ll/index.js';
8
+ /**
9
+ * Low-latency DASH: dash-ll in place of dash-cmaf and dash-live, which it
10
+ * contains. An MPD without low-latency signalling plays as the DASH line
11
+ * plays it.
12
+ */
13
+ export function dashLlLine() {
14
+ return [dashLl()];
15
+ }
16
+ //# sourceMappingURL=dash-ll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dash-ll.js","sourceRoot":"","sources":["../../../src/presets/tiers/dash-ll.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,MAAM,MAAM,kCAAkC,CAAC;AAGtD;;;;GAIG;AACH,MAAM,UAAU,UAAU;IACxB,OAAO,CAAC,MAAM,EAAE,CAAC,CAAC;AACpB,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Stage } from '../../types/stage.js';
2
+ /** DASH on demand and live. */
3
+ export declare function dashLine(): Stage[];
4
+ //# sourceMappingURL=dash.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dash.d.ts","sourceRoot":"","sources":["../../../src/presets/tiers/dash.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,+BAA+B;AAC/B,wBAAgB,QAAQ,IAAI,KAAK,EAAE,CAElC"}
@@ -0,0 +1,13 @@
1
+ /**
2
+ * One group of the preset matrix. Each group is its own module so a preset
3
+ * imports only the groups it composes: a bundle that splits the presets into
4
+ * lazy chunks then gives each preset its stages and no others. Each group is
5
+ * a function so a preset gets fresh stage instances.
6
+ */
7
+ import dashCmaf from '../../protocols/dash-cmaf/index.js';
8
+ import dashLive from '../../protocols/dash-live/index.js';
9
+ /** DASH on demand and live. */
10
+ export function dashLine() {
11
+ return [dashCmaf(), dashLive()];
12
+ }
13
+ //# sourceMappingURL=dash.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"dash.js","sourceRoot":"","sources":["../../../src/presets/tiers/dash.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,QAAQ,MAAM,oCAAoC,CAAC;AAC1D,OAAO,QAAQ,MAAM,oCAAoC,CAAC;AAG1D,+BAA+B;AAC/B,MAAM,UAAU,QAAQ;IACtB,OAAO,CAAC,QAAQ,EAAE,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClC,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Stage } from '../../types/stage.js';
2
+ /** The EME stages: sessions, CENC (Widevine, PlayReady, ClearKey), FairPlay, WisePlay. */
3
+ export declare function drmTier(): Stage[];
4
+ //# sourceMappingURL=drm.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drm.d.ts","sourceRoot":"","sources":["../../../src/presets/tiers/drm.ts"],"names":[],"mappings":"AAUA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,0FAA0F;AAC1F,wBAAgB,OAAO,IAAI,KAAK,EAAE,CAEjC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * One group of the preset matrix. Each group is its own module so a preset
3
+ * imports only the groups it composes: a bundle that splits the presets into
4
+ * lazy chunks then gives each preset its stages and no others. Each group is
5
+ * a function so a preset gets fresh stage instances.
6
+ */
7
+ import emeCenc from '../../stages/eme-cenc/index.js';
8
+ import emeCore from '../../stages/eme-core/index.js';
9
+ import emeFairplay from '../../stages/eme-fairplay/index.js';
10
+ import emeWiseplay from '../../stages/eme-wiseplay/index.js';
11
+ /** The EME stages: sessions, CENC (Widevine, PlayReady, ClearKey), FairPlay, WisePlay. */
12
+ export function drmTier() {
13
+ return [emeCore(), emeCenc(), emeFairplay(), emeWiseplay()];
14
+ }
15
+ //# sourceMappingURL=drm.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"drm.js","sourceRoot":"","sources":["../../../src/presets/tiers/drm.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,OAAO,MAAM,gCAAgC,CAAC;AACrD,OAAO,OAAO,MAAM,gCAAgC,CAAC;AACrD,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAC7D,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAG7D,0FAA0F;AAC1F,MAAM,UAAU,OAAO;IACrB,OAAO,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,WAAW,EAAE,EAAE,WAAW,EAAE,CAAC,CAAC;AAC9D,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Stage } from '../../types/stage.js';
2
+ /**
3
+ * Low-latency HLS: hls-ll in place of hls-cmaf and hls-live, which it
4
+ * contains. A playlist without parts plays as the HLS line plays it.
5
+ */
6
+ export declare function hlsLlLine(): Stage[];
7
+ //# sourceMappingURL=hls-ll.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hls-ll.d.ts","sourceRoot":"","sources":["../../../src/presets/tiers/hls-ll.ts"],"names":[],"mappings":"AAQA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;GAGG;AACH,wBAAgB,SAAS,IAAI,KAAK,EAAE,CAEnC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * One group of the preset matrix. Each group is its own module so a preset
3
+ * imports only the groups it composes: a bundle that splits the presets into
4
+ * lazy chunks then gives each preset its stages and no others. Each group is
5
+ * a function so a preset gets fresh stage instances.
6
+ */
7
+ import hlsLl from '../../protocols/hls-ll/index.js';
8
+ import aes128 from '../../stages/aes-128/index.js';
9
+ /**
10
+ * Low-latency HLS: hls-ll in place of hls-cmaf and hls-live, which it
11
+ * contains. A playlist without parts plays as the HLS line plays it.
12
+ */
13
+ export function hlsLlLine() {
14
+ return [hlsLl(), aes128()];
15
+ }
16
+ //# sourceMappingURL=hls-ll.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hls-ll.js","sourceRoot":"","sources":["../../../src/presets/tiers/hls-ll.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,KAAK,MAAM,iCAAiC,CAAC;AACpD,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAGnD;;;GAGG;AACH,MAAM,UAAU,SAAS;IACvB,OAAO,CAAC,KAAK,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;AAC7B,CAAC"}
@@ -0,0 +1,4 @@
1
+ import type { Stage } from '../../types/stage.js';
2
+ /** HLS on demand and live, with AES-128 segment decryption. */
3
+ export declare function hlsLine(): Stage[];
4
+ //# sourceMappingURL=hls.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hls.d.ts","sourceRoot":"","sources":["../../../src/presets/tiers/hls.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD,+DAA+D;AAC/D,wBAAgB,OAAO,IAAI,KAAK,EAAE,CAIjC"}
@@ -0,0 +1,16 @@
1
+ /**
2
+ * One group of the preset matrix. Each group is its own module so a preset
3
+ * imports only the groups it composes: a bundle that splits the presets into
4
+ * lazy chunks then gives each preset its stages and no others. Each group is
5
+ * a function so a preset gets fresh stage instances.
6
+ */
7
+ import hlsCmaf from '../../protocols/hls-cmaf/index.js';
8
+ import hlsLive from '../../protocols/hls-live/index.js';
9
+ import aes128 from '../../stages/aes-128/index.js';
10
+ /** HLS on demand and live, with AES-128 segment decryption. */
11
+ export function hlsLine() {
12
+ // AES-128 rides with HLS: full-segment keys are common enough on HLS, and
13
+ // the stage is a kilobyte, so no HLS deployment should meet one unprepared.
14
+ return [hlsCmaf(), hlsLive(), aes128()];
15
+ }
16
+ //# sourceMappingURL=hls.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"hls.js","sourceRoot":"","sources":["../../../src/presets/tiers/hls.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,OAAO,MAAM,mCAAmC,CAAC;AACxD,OAAO,OAAO,MAAM,mCAAmC,CAAC;AACxD,OAAO,MAAM,MAAM,+BAA+B,CAAC;AAGnD,+DAA+D;AAC/D,MAAM,UAAU,OAAO;IACrB,0EAA0E;IAC1E,4EAA4E;IAC5E,OAAO,CAAC,OAAO,EAAE,EAAE,OAAO,EAAE,EAAE,MAAM,EAAE,CAAC,CAAC;AAC1C,CAAC"}
@@ -0,0 +1,7 @@
1
+ import type { Stage } from '../../types/stage.js';
2
+ /**
3
+ * What a low-latency line needs beside it: the catch-up that holds the
4
+ * latency. It holds any live stream at its hold-back.
5
+ */
6
+ export declare function lowLatencyTier(): Stage[];
7
+ //# sourceMappingURL=low-latency.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"low-latency.d.ts","sourceRoot":"","sources":["../../../src/presets/tiers/low-latency.ts"],"names":[],"mappings":"AAOA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;GAGG;AACH,wBAAgB,cAAc,IAAI,KAAK,EAAE,CAExC"}
@@ -0,0 +1,15 @@
1
+ /**
2
+ * One group of the preset matrix. Each group is its own module so a preset
3
+ * imports only the groups it composes: a bundle that splits the presets into
4
+ * lazy chunks then gives each preset its stages and no others. Each group is
5
+ * a function so a preset gets fresh stage instances.
6
+ */
7
+ import liveCatchup from '../../stages/live-catchup/index.js';
8
+ /**
9
+ * What a low-latency line needs beside it: the catch-up that holds the
10
+ * latency. It holds any live stream at its hold-back.
11
+ */
12
+ export function lowLatencyTier() {
13
+ return [liveCatchup()];
14
+ }
15
+ //# sourceMappingURL=low-latency.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"low-latency.js","sourceRoot":"","sources":["../../../src/presets/tiers/low-latency.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,WAAW,MAAM,oCAAoC,CAAC;AAG7D;;;GAGG;AACH,MAAM,UAAU,cAAc;IAC5B,OAAO,CAAC,WAAW,EAAE,CAAC,CAAC;AACzB,CAAC"}
@@ -0,0 +1,8 @@
1
+ import type { Stage } from '../../types/stage.js';
2
+ /**
3
+ * Legacy MPEG-TS: the transmuxer and packed audio, plus ID3 metadata, which
4
+ * rides on the transport stream. The transmuxer is also a caption source for
5
+ * the base's text-cea608, next to nal-scan.
6
+ */
7
+ export declare function tsTier(): Stage[];
8
+ //# sourceMappingURL=ts.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ts.d.ts","sourceRoot":"","sources":["../../../src/presets/tiers/ts.ts"],"names":[],"mappings":"AASA,OAAO,KAAK,EAAE,KAAK,EAAE,MAAM,sBAAsB,CAAC;AAElD;;;;GAIG;AACH,wBAAgB,MAAM,IAAI,KAAK,EAAE,CAEhC"}
@@ -0,0 +1,18 @@
1
+ /**
2
+ * One group of the preset matrix. Each group is its own module so a preset
3
+ * imports only the groups it composes: a bundle that splits the presets into
4
+ * lazy chunks then gives each preset its stages and no others. Each group is
5
+ * a function so a preset gets fresh stage instances.
6
+ */
7
+ import packedAudio from '../../containers/packed-audio/index.js';
8
+ import tsTransmux from '../../containers/ts-transmux/index.js';
9
+ import metaId3 from '../../stages/meta-id3/index.js';
10
+ /**
11
+ * Legacy MPEG-TS: the transmuxer and packed audio, plus ID3 metadata, which
12
+ * rides on the transport stream. The transmuxer is also a caption source for
13
+ * the base's text-cea608, next to nal-scan.
14
+ */
15
+ export function tsTier() {
16
+ return [tsTransmux(), packedAudio(), metaId3()];
17
+ }
18
+ //# sourceMappingURL=ts.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ts.js","sourceRoot":"","sources":["../../../src/presets/tiers/ts.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AACH,OAAO,WAAW,MAAM,wCAAwC,CAAC;AACjE,OAAO,UAAU,MAAM,uCAAuC,CAAC;AAC/D,OAAO,OAAO,MAAM,gCAAgC,CAAC;AAGrD;;;;GAIG;AACH,MAAM,UAAU,MAAM;IACpB,OAAO,CAAC,UAAU,EAAE,EAAE,WAAW,EAAE,EAAE,OAAO,EAAE,CAAC,CAAC;AAClD,CAAC"}
@@ -1 +1 @@
1
- {"version":3,"file":"parse.d.ts","sourceRoot":"","sources":["../../../src/protocols/hls-cmaf/parse.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;GAUG;AAGH,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAC;AAG/D,OAAO,KAAK,EAAE,aAAa,EAAE,MAAM,sBAAsB,CAAC;AAC1D,OAAO,KAAK,EACV,SAAS,EAET,SAAS,EACT,YAAY,EACZ,cAAc,EAEd,OAAO,EAGP,UAAU,EAEV,QAAQ,EAET,MAAM,mBAAmB,CAAC;AAC3B,OAAO,KAAK,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAGxD,OAAO,KAAK,EAAE,IAAI,EAAW,MAAM,YAAY,CAAC;AAGhD,YAAY,EAAE,WAAW,EAAE,MAAM,sBAAsB,CAAC;AAExD,MAAM,WAAW,aAAa;IAC5B,QAAQ,CAAC,QAAQ,EAAE,SAAS,OAAO,EAAE,CAAC;IACtC,QAAQ,CAAC,IAAI,EAAE,UAAU,GAAG,IAAI,CAAC;IACjC,QAAQ,CAAC,cAAc,EAAE,MAAM,CAAC;IAChC,QAAQ,CAAC,aAAa,EAAE,MAAM,CAAC;IAC/B,QAAQ,CAAC,OAAO,EAAE,OAAO,CAAC;IAC1B,QAAQ,CA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AAQ,EAAE,IAAI,CAAC;IAAC,QAAQ,CAAC,KAAK,EAAE,aAAa,CAAA;CAAE,CAAC;AAE/D,yEAAyE;AACzE,wBAAgB,cAAc,CAAC,KAAK,EAAE,MAAM,EAAE,WAAW,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,GAAG,IAAI,CAQ1F;AA0DD;;;;;;;GAOG;AACH,wBAAgB,iBAAiB,CAAC,KAAK,EAAE,MAAM,GAAG,MAAM,CAIvD;AAwBD,iDAAiD;AACjD,wBAAgB,kBAAkB,CAAC,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,GAAG,mBAAmB,CAKrF;AAED,0FAA0F;AAC1F,wBAAgB,eAAe,CAAC,KAAK,EAAE,SAAS,IAAI,EAAE,EAAE,OAAO,EAAE,MAAM,GAAG,mBAAmB,CA0M5F;AAmOD,oEAAoE;AACpE,wBAAgB,KAAK,CACnB,IAAI,EAAE,MAAM,EACZ,OAAO,EAAE,MAAM,EACf,UAAU,GAAE,CAAC,IAAI,EAAE,MAAM,EAAE,GAAG,EAAE,MAAM,KAAK,mBAAwC,GAClF,WAAW,CAoXb;AA+BD;;;;;;;GAOG;AACH,wBAAgB,UAAU,CACxB,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,aAAa,GACtB,eAAe,GAAG,IAAI,CA6ExB;AAWD,uFAAuF;AACvF,wBAAgB,aAAa,CAC3B,YAAY,EAAE,YAAY,EAC1B,WAAW,EAAE,MAAM,EACnB,QAAQ,EAAE,aAAa,GACtB,YAAY,CAId"}
@@ -772,6 +772,13 @@ export function parse(text, baseUrl, parseMedia = parseMediaPlaylist) {
772
772
  : video !== null && /^dv(h1|he|a1|av)/.test(video)
773
773
  ? 'PQ'
774
774
  : undefined;
775
+ // RFC 8216bis §4.4.6.2: entries by comma, preferred first; specifiers by slash.
776
+ const layout = (variant.attributes['REQ-VIDEO-LAYOUT'] ?? '').split(',')[0]?.split('/') ?? [];
777
+ const projection = layout.includes('PROJ-EQUI')
778
+ ? 'equirectangular'
779
+ : layout.includes('PROJ-HEQU')
780
+ ? 'half-equirectangular'
781
+ : undefined;
775
782
  const pathway = variant.attributes['PATHWAY-ID'];
776
783
  let id = pathway !== undefined ? `v-${bandwidth}-${pathway}` : `v-${bandwidth}`;
777
784
  const taken = declared.get(id);
@@ -801,6 +808,7 @@ export function parse(text, baseUrl, parseMedia = parseMediaPlaylist) {
801
808
  ...(height !== undefined ? { height } : {}),
802
809
  ...(Number.isFinite(frameRate) ? { frameRate } : {}),
803
810
  ...(videoRange !== undefined ? { videoRange } : {}),
811
+ ...(projection !== undefined ? { projection } : {}),
804
812
  };
805
813
  const requires = {};
806
814
  if (variant.attributes.AUDIO !== undefined)