@blockcast/mmt-container 0.4.0-main.d5ca55d82e33 → 0.4.0-main.d69cb1233400

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 (70) hide show
  1. package/README.md +4 -2
  2. package/dist/browser-runtime.js +730 -292
  3. package/dist/browser-runtime.js.map +4 -4
  4. package/dist/carp-catalog.d.ts +5 -3
  5. package/dist/carp-catalog.d.ts.map +1 -1
  6. package/dist/carp-catalog.js +15 -5
  7. package/dist/carp-catalog.js.map +2 -2
  8. package/dist/catalog-fec-params.js.map +2 -2
  9. package/dist/delivery-catalog.js +65 -222
  10. package/dist/delivery-catalog.js.map +3 -3
  11. package/dist/fec-manager.d.ts +15 -0
  12. package/dist/fec-manager.d.ts.map +1 -1
  13. package/dist/fec-manager.js +96 -39
  14. package/dist/fec-manager.js.map +2 -2
  15. package/dist/fec-worker-setup.d.ts.map +1 -1
  16. package/dist/fec-worker-setup.js +10 -2
  17. package/dist/fec-worker-setup.js.map +2 -2
  18. package/dist/index.d.ts +2 -1
  19. package/dist/index.d.ts.map +1 -1
  20. package/dist/index.js +4 -0
  21. package/dist/index.js.map +2 -2
  22. package/dist/mmtp-container-parser.d.ts.map +1 -1
  23. package/dist/mmtp-container-parser.js +72 -9
  24. package/dist/mmtp-container-parser.js.map +2 -2
  25. package/dist/mmtp-container-parser.no-modules.js +591 -25
  26. package/dist/mmtp-container-parser.no-modules.js.map +4 -4
  27. package/dist/mmtp-decode-pipeline.js +72 -9
  28. package/dist/mmtp-decode-pipeline.js.map +2 -2
  29. package/dist/mmtp-fec-session.d.ts +156 -0
  30. package/dist/mmtp-fec-session.d.ts.map +1 -0
  31. package/dist/mmtp-fec-session.js +522 -0
  32. package/dist/mmtp-fec-session.js.map +7 -0
  33. package/dist/mmtp-router.d.ts +14 -4
  34. package/dist/mmtp-router.d.ts.map +1 -1
  35. package/dist/mmtp-router.js +132 -9
  36. package/dist/mmtp-router.js.map +2 -2
  37. package/dist/multicast-manager.d.ts +21 -2
  38. package/dist/multicast-manager.d.ts.map +1 -1
  39. package/dist/multicast-manager.js +341 -277
  40. package/dist/multicast-manager.js.map +4 -4
  41. package/dist/multicast-transport.js +65 -222
  42. package/dist/multicast-transport.js.map +3 -3
  43. package/dist/no-modules.d.ts +2 -0
  44. package/dist/no-modules.d.ts.map +1 -1
  45. package/dist/no-modules.js +542 -13
  46. package/dist/no-modules.js.map +3 -3
  47. package/dist/repair-fetch.d.ts +23 -1
  48. package/dist/repair-fetch.d.ts.map +1 -1
  49. package/dist/repair-fetch.js +35 -10
  50. package/dist/repair-fetch.js.map +2 -2
  51. package/dist/sample-combiner.d.ts +7 -1
  52. package/dist/sample-combiner.d.ts.map +1 -1
  53. package/dist/sample-combiner.js +14 -2
  54. package/dist/sample-combiner.js.map +2 -2
  55. package/dist/wasm-mmtp-container-parser.js +72 -9
  56. package/dist/wasm-mmtp-container-parser.js.map +2 -2
  57. package/package.json +5 -5
  58. package/src/carp-catalog.ts +33 -10
  59. package/src/fec-manager.ts +111 -49
  60. package/src/fec-worker-setup.ts +16 -1
  61. package/src/index.ts +16 -0
  62. package/src/mmtp-container-parser.ts +75 -7
  63. package/src/mmtp-fec-session.ts +514 -0
  64. package/src/mmtp-router.ts +101 -5
  65. package/src/multicast-manager.ts +103 -8
  66. package/src/no-modules.ts +2 -0
  67. package/src/repair-fetch.ts +79 -14
  68. package/src/sample-combiner.ts +15 -2
  69. package/test-vectors/catalog/README.md +5 -1
  70. package/test-vectors/catalog-validation.json +95 -0
package/README.md CHANGED
@@ -135,7 +135,7 @@ if (hdr.packetType === 0x00) { // MPU
135
135
 
136
136
  ### MFU reassembler (`./mfu`)
137
137
 
138
- Stateful reassembler for fragmented MFUs per ISO/IEC 23008-1:2023 §9.2.3.3 and the repository's contiguous-source producer profile. It partitions bounded continuation state by physical stream, MPU, and wrapping terminal source-packet sequence (`packet_sequence + fragment_counter`), queues FI=2/FI=3 by run and counter until FI=1 and any missing predecessor arrive, then propagates FI=1's intrinsic DU identity while draining the exact countdown. The terminal sequence is transport association only. ISO-permitted interleaving remains separated and incomplete; there is no scope, timestamp, SS_ID, or arrival-order fallback. Recovered packets use the authored u32 sequence from the reconstructed MMTP header.
138
+ Stateful reassembler for fragmented MFUs per ISO/IEC 23008-1:2023 §9.2.3.3 and the repository's contiguous-source producer profile. It partitions bounded continuation state by physical stream, MPU, and wrapping terminal source-packet sequence (`packet_sequence + fragment_counter`), queues FI=2/FI=3 by run and counter until FI=1 and any missing predecessor arrive, then propagates FI=1's intrinsic DU identity while draining the exact countdown. The terminal sequence is transport association only. ISO-permitted interleaving remains separated and incomplete; there is no scope, timestamp, SS_ID, or arrival-order fallback. The router feeds a recovered packet under the wire u32 sequence its SS_ID maps to through the stream's received FEC sources, since a hop may re-stamp the sequence after protection.
139
139
 
140
140
  ```ts
141
141
  interface MFUReassemblerOptions {
@@ -278,7 +278,7 @@ This is **project-specific**, not in any IETF draft yet. The container's switchi
278
278
  | `video/repair` | `repair` | FEC repair-symbol leg, cross-CDN federated |
279
279
  | `video` (no slash) | `single` | Legacy single-track stream (D-04) |
280
280
 
281
- Empty names, unknown suffixes, trailing slashes, and any non-ASCII / control characters all throw at parse time (T-14-01 fuzz hardening at `carp-catalog.ts:49-57`). Multi-track switching sets must include all three roles or `validateSwitchingSet` reports the missing roles.
281
+ Empty names, unknown suffixes, trailing slashes, and any non-ASCII / control characters all throw at parse time (T-14-01 fuzz hardening at `carp-catalog.ts:49-57`). Multi-track switching sets must include `base` and `repair` or `validateSwitchingSet` reports the missing roles; `delta` is optional, since base is self-decodable and a base-only set plays in base-only mode (BLO-49199).
282
282
 
283
283
  ```ts
284
284
  import { parseTrackRole, validateSwitchingSet } from "@blockcast/mmt-container/carp-catalog"
@@ -289,6 +289,8 @@ parseTrackRole("video/foo") // throws "unknown role suffix"
289
289
 
290
290
  validateSwitchingSet(["v/base", "v/delta", "v/repair"]) // { ok: true }
291
291
  validateSwitchingSet(["v/base", "v/delta"]) // { ok: false, missing: ["repair"] }
292
+ validateSwitchingSet(["v/base", "v/repair"]) // { ok: true } — base-only
293
+ validateSwitchingSet(["v/delta", "v/repair"]) // { ok: false, missing: ["base"] }
292
294
  ```
293
295
 
294
296
  ### FEC manager (`./fec-manager`)